-
Notifications
You must be signed in to change notification settings - Fork 359
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: CosmosDB EntriesIterator #8367
Conversation
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
pkg/kv/cosmosdb/store.go
Outdated
if e.entry != nil { | ||
e.startKey = e.entry.Key | ||
} |
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.
just a thought - but maybe we would want to log it in case this happens - just to help understand the case and how to reproduce
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.
That's a great idea!
Closes #8366
Change Description
Background
lakeFS panics due to nil pointer dereference in CosmosDB's EntriesIterator
Bug Fix
The cause of the bug is trying to access a member of a pointer without checking pointer validity
As hard as I tried, I was not able to reproduce the issue and therefore fixed the code itself but not the reason for it.
This might not be reproducible using the CosmosDB emulator.
On the bright side - I've re-enabled the CosmosDB acceptance tests in the hope that this will improve our quality
Testing Details
Ran the CosmosDB KV acceptance tests
Breaking Change?
No