Skip to content
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

fix: at_commons remove isPaginated check in sync verb builder #738

Open
wants to merge 8 commits into
base: trunk
Choose a base branch
from

Conversation

murali-shris
Copy link
Member

@murali-shris murali-shris commented Dec 11, 2024

- What I did

  • remove isPaginated check in sync verb builder so limit: is always sent since server expects this value in sync:from verb
    - How I did it
  • removed isPaginated logic in SyncVerbBuilder
  • deprecated sync: verb since sync:from is used on server
    - How to verify it
  • AtClient tests should pass
    fix: remove sync verb builder deprecated params at_client_sdk#1450

@murali-shris murali-shris changed the title fix: Atlookup Add default values sync verb builder deprecated params fix: Atlookup - add default values sync verb builder deprecated params Dec 11, 2024
@murali-shris murali-shris requested review from gkc, srieteja and sitaram-kalluri and removed request for srieteja December 11, 2024 17:23
srieteja
srieteja previously approved these changes Dec 11, 2024
Copy link
Contributor

@gkc gkc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@murali-shris I know in the other comment I said a PR in at_lookup to change SyncVerbBuilder but I meant a PR in at_commons since SyncVerbBuilder is in at_commons

@murali-shris murali-shris changed the title fix: Atlookup - add default values sync verb builder deprecated params fix: at_commons remove isPaginated check in sync verb builder Dec 12, 2024
@murali-shris murali-shris requested review from gkc and srieteja December 12, 2024 15:55
@murali-shris
Copy link
Member Author

@murali-shris I know in the other comment I said a PR in at_lookup to change SyncVerbBuilder but I meant a PR in at_commons since SyncVerbBuilder is in at_commons

Completed the changes.

if (isPaginated) {
serverCommandBuffer.write(':limit:$limit');
}
serverCommandBuffer.write(':limit:$limit');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the comment on line 15 mean that limit is ignored on the atServer? If so, then perhaps we shouldn't deprecate limit but instead respect it on the atServer side?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in SyncProgressiveVerbHandler, only fromCommitId and regex are read from verb params. limit is not read.
There are two options

  1. rely on default limit - 25 that is configured in SyncProgressiveVerbHandler --> commitLog.getEntries and deprecate limit param in sync verb builder
  2. Keep limit param in sync verb builder and modify SyncProgressiveVerbHandler to read limit from verb params and pass the limit to commitLog.getEntries

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@murali-shris Option 2 please, and change the default in the SyncVerbBuilder to be in line with whatever the current default is on the server (25)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@murali-shris murali-shris requested a review from gkc December 12, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants