-
Notifications
You must be signed in to change notification settings - Fork 57
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: invalid cursor returning messages #2724
Conversation
This PR may contain changes to database schema of one of the drivers. If you are introducing any changes to the schema, make sure the upgrade from the latest release to this change passes without any errors/issues. Please make sure the label |
You can find the image built from this PR at
Built from 9494293 |
You can find the image built from this PR at
Built from 9494293 |
There's something I don't quite understand. In 3 different tests/files, sending an invalid cursor returns different things.
Why the different behavior in those cases? Especially the one that doesn't return an error, I guess that the error message depends on the driver |
Yes that is a good point that will be addressed by my driver refactor. I plan to consolidate driver error handling. |
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.
Thanks so much!
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! Thanks for it! 💯
response.data.messages.len == 0 | ||
|
||
await restServer.stop() | ||
await restServer.closeWait() |
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.
Interesting. Did you need that to avoid a possible crash?
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.
I'm not sure. It's just a copy pasta of another test.
Co-authored-by: Ivan FB <[email protected]>
Store v3 queries with invalid cursors will no longer return messages. I also added more/better tests.
Fixing the issue for real this time 💯 % pinky promise, I swear! 🤣