-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: do NOT add delete entries in commit log when expired keys are deleted #1713
Conversation
@srieteja We have a chicken and egg scenario here; until we can be sure that most apps are using the latest AtClient, those clients will still be dependent on the commit log and sync responses to trigger deletion on the client side. Therefore for now we need to
At some time in the future, we can change the config to enable this feature by default. I'd suggest create a ticket for that and reference that new ticket in the description of #1660 and we'll keep assigning the ticket to the "sprint after next" until we think we're ready to go. Make sense? cc @murali-shris @sitaram-kalluri |
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.
See comment I left
Added flags in hive_manages/scheduleKeyExpiryTask() and hive_keystore/deleteExpiredKeys() to enable the feature being written in this PR. Also introduced config in AtSecondaryServer/AtSecondaryConfig and passed the same to the hive_manager/keystore to enable the feature in the PR (see #1727) |
I have tested the functionality and how this feature interacts with the client. @purnimavenkatasubbu has tested this along with #1727 and atsign-foundation/at_client_sdk#1187 with buzz and wavi. Everything seems to be working fine, Ready to be reviewed |
@srieteja in the PR description you say that you
that is only true for notificationKeyStore. In hiveKeyStore deleteExpiredKeys takes an "optimizeCommits" flag |
packages/at_persistence_secondary_server/lib/src/keystore/hive_keystore.dart
Outdated
Show resolved
Hide resolved
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. Nice work on the tests
@srieteja Please can you correct the PR description so it is accurate |
Updated the PR description @gkc |
closes #1660
- What I did
- How I did it
- How to verify it
- Description for the changelog
feat: do NOT add delete entries in commit log when expired keys are deleted