-
Notifications
You must be signed in to change notification settings - Fork 454
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] Refactoring dbShard #2848
Merged
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f093774
[dbnode] Introduce Aggregator type
linasm 1b2ef76
Merge branch 'master' into linasm/aggregator-type
linasm f756658
Lint
linasm 92ed0bf
mock gen
linasm 086a007
Merge branch 'master' into linasm/aggregator-type
linasm f276767
[dbnode] Refactoring dbShard
linasm 58547ab
Merge branch 'master' into linasm/aggregator-type
linasm 553771e
[dbnode] Refactor wide query path (#2826)
arnikola 799d9ef
Rename Aggregator to TileAggregator
linasm 8fc49db
Merge branch 'master' into linasm/aggregator-type
linasm 26fe4a9
mock gen
linasm c816f86
Merge remote-tracking branch 'origin/linasm/aggregator-type' into lin…
linasm e01d4d4
Fix
linasm d8cc5fd
Formatting
linasm 00e3304
[dbnode] Introduce Aggregator type (#2840)
linasm 13c093d
Merge branch 'master' into linasm/refactor-dbShard
linasm 959e503
Merge branch 'master' into linasm/refactor-dbShard
linasm 3b47328
Address PR feedback
linasm 40f9b17
Merge branch 'master' into linasm/refactor-dbShard
linasm 9488bc5
Change error msg
linasm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2676,7 +2676,9 @@ func (s *dbShard) AggregateTiles( | |
openBlockReaders := make([]fs.DataFileSetReader, 0, len(blockReaders)) | ||
defer func() { | ||
for _, reader := range openBlockReaders { | ||
_ = reader.Close() | ||
if err := reader.Close(); err != nil { | ||
s.logger.Error("error closing DataFileSetReader", zap.Error(err)) | ||
} | ||
} | ||
}() | ||
|
||
|
@@ -2737,6 +2739,7 @@ func (s *dbShard) AggregateTiles( | |
processedTileCount, err := s.tileAggregator.AggregateTiles( | ||
opts, targetNs, s.ID(), openBlockReaders, writer) | ||
if err != nil { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: add a comment here that we still need to do cleanup etc and should log any errors from that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
// NB: cannot return on the error here, must finish writing. | ||
multiErr = multiErr.Add(err) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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: typically no
error
in go error returns, change to something like "could not close DataFileSetReader"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.
👍