-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-28627 REST ScannerModel doesn't support includeStartRow/include… #6374
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thank you. The thorny issue here backwards-forward compatibility. i.e. What happens if a client without this patch tries to run a scan on server with this change, and vice versa, with all three (json,xml,protobuf) encodings. Unfortnuately, the easiest way to test that is bringing up an old/new cluster (can be a single process one), and trying a scan with the new/old client manually for all six cases. To be clear, it's fine for the old server to fail when the new parameters are set, but it should work if they are not set, or are at the default value. |
i have tested for JSON with new server and new/old clients, i will test for other combinations also and update the test results. |
I have tested for all the combinations and results are fine. |
d6a342f
to
a2e0e1e
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a2e0e1e
to
2d3a36d
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Thanks. Can you please do a backport PR for branch-2 @chandrasekhar-188k ? |
okay |
backport PR raised for branch-2, please review |
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.
+1 LGTM
After commiting this (a little late), I realized that I have more questions: I see this annotation on ScannerModel:
and
Doesn't that mean that the new attributes will get serialized regardless of their values to JSON, You matrix shows this as passing, but I can't see how that can happen. |
you are correct, when we serialize the ScannerModel the new attributes are also included and causing the deserilization to fail at old server. For solving the issue wrt JSON, I think we can have two approaches
I think the 2nd approach is better for this. I will raise an addendum PR for this..Let me know if you have any other suggestions.. |
…StopRow (#6374) Signed-off-by: Istvan Toth <[email protected]> (cherry picked from commit f9ec1dc)
addendum PR raised for this fix, Please review |
…StopRow