Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[dbnode] Cross-block series reader #2481
[dbnode] Cross-block series reader #2481
Changes from all commits
cf04c4b
c55c21c
76f5379
6499aca
92d7758
1211434
f3dead9
3bddd14
8f68dd5
a456c95
cb60730
4a2749d
83845d2
0f41464
367551a
f1402cf
3f3b493
6a1912f
bbf26f9
8081417
dd207d1
21e4b13
a766cf4
29f3b25
28c0cab
79ee91b
e19830b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
nit: is it worth having a sanity check to see that
len(r.records) <= len(dataFileSetReaders)
? Otherwise we necessarily have a duplicate ID in one of the readersThere 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.
Good point, just that the
len(dataFileSetReaders)
is not the best indicator for duplicate ids because I invalidate (set tonull
) already exhausteddataFileSetReaders
and don't track the number of still valid ones. Instead, implemented a more direct check for duplicate ids inreadOne
(and pushed as a separate commit for clarity).Just not completely sure, for our use case, would it make more sense to return an error and fail the whole process, or to skip the duplicate. What do you think?
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.
As per our conversation, keeping the error approach, and reporting it as Invariant violation.
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.
Don't we already
defer DecRef()
inside of theDataFileSetReader
already before returning the underlying data?I also commented this on the other PR: #2465 (comment)
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.
Hmm, this needs some additional thought, I guess I'll wait for @robskillington feedback on the questions that you raised on #2465.