-
Notifications
You must be signed in to change notification settings - Fork 42
[ECO-5447][LiveObjects] Use server-provided timestamp to sweep old tombstones #1134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ECO-5447][LiveObjects] Use server-provided timestamp to sweep old tombstones #1134
Conversation
1. Updated MsgpackSerialization accordingly. 2. Updated LiveMapManagerTests, added few more tests related to changes
WalkthroughThe changes introduce an optional Changes
Sequence Diagram(s)sequenceDiagram
participant Server
participant ObjectsManager
participant BaseLiveObject
participant LiveCounterManager/LiveMapManager
Server->>ObjectsManager: Sends ObjectMessage (with optional serialTimestamp)
ObjectsManager->>BaseLiveObject: applyObjectSync(ObjectMessage)
BaseLiveObject->>LiveCounterManager/LiveMapManager: applyState(ObjectState, serialTimestamp)
LiveCounterManager/LiveMapManager->>BaseLiveObject: tombstone(serialTimestamp)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes detected. Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used🧠 Learnings (8)📓 Common learnings📚 Learning: in the ably-java liveobjects test code, extension properties with capital letter names (like `state`...Applied to files:
📚 Learning: in livemapmanagertest.kt, the private field `livemapmanager` is used extensively in the `shouldcalcu...Applied to files:
📚 Learning: in livemapmanagertest.kt, the private field `livemapmanager` is used in the `shouldcalculatemapdiffe...Applied to files:
📚 Learning: in defaultlivemaptest.kt integration tests, operations are performed sequentially one after another,...Applied to files:
📚 Learning: in the ably-java liveobjects test code, an extension property `state` (capital s) is defined on the ...Applied to files:
📚 Learning: in test utility code for the ably java live objects module, the team prefers to keep reflection-base...Applied to files:
📚 Learning: in the ably-java codebase, the defaultliveobjectserializer class methods like writemsgpackarray will...Applied to files:
🧬 Code Graph Analysis (1)live-objects/src/test/kotlin/io/ably/lib/objects/integration/DefaultLiveObjectsTest.kt (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
🔇 Additional comments (8)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…mestamp 1. Updated LiveMap and LiveCounter impl to accept serialTimestamp from ObjectMessage 2. Updated unit tests for both LiveMap and LiveCounter
…ded-tombstone-serial
…ded-tombstone-serial
8b6f64f to
332ac0a
Compare
…ated testObjectDelete test
332ac0a to
97f55f7
Compare
ttypic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- Added extra assertion for deleting of "valuesMap"
|
closing in favor of #1140 |
Summary by CodeRabbit
New Features
Bug Fixes
Tests