-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: series file index compaction #23916
Conversation
Series file indices monotonically grew even when series were deleted. Partially closes influxdata/EAR#3643
76bb9ba
to
34ec21c
Compare
seriesCount := seriesN | ||
for { | ||
seriesN = seriesCount |
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 a little confused by what's going on here. Part of this may be due to changing the value of the input parameter seriesN
. This changes the meaning of seriesN
in the function call vs the function body. Copying to a different variable before using might help. A comment explaining what seriesN
and seriesCount
represent as the function runs would also help.
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 helps. Weird whitespace, but not going to worry about that.
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
Series file indices monotonically grew even when series were deleted. Also stop ignoring error in series index recovery Partially closes influxdata/EAR#3643 (cherry picked from commit 53856cd)
Series file indices monotonically grew even when series were deleted. Also stop ignoring error in series index recovery Partially closes influxdata/EAR#3643 (cherry picked from commit 53856cd)
Series file indices monotonically grew even when series were deleted. Also stop ignoring error in series index recovery Partially closes https://github.com/influxdata/EAR/issues/3643
Series file indices monotonically grew even when series were deleted. Also stop ignoring error in series index recovery Partially closes https://github.com/influxdata/EAR/issues/3643
Series file indices monotonically grew even
when series were deleted.
Partially
closes https://github.com/influxdata/EAR/issues/3643