Skip to content
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

Merged
merged 3 commits into from
Jun 1, 2023
Merged

Conversation

davidby-influx
Copy link
Contributor

Series file indices monotonically grew even
when series were deleted.

Partially
closes https://github.com/influxdata/EAR/issues/3643

@davidby-influx davidby-influx self-assigned this Nov 15, 2022
@davidby-influx davidby-influx marked this pull request as ready for review May 25, 2023 22:15
@davidby-influx davidby-influx requested a review from dgnorton May 25, 2023 22:20
Series file indices monotonically grew even
when series were deleted.

Partially
closes influxdata/EAR#3643
@davidby-influx davidby-influx requested a review from gwossum June 1, 2023 15:32
Comment on lines +587 to +589
seriesCount := seriesN
for {
seriesN = seriesCount
Copy link
Member

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.

Copy link
Member

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.

@davidby-influx davidby-influx requested a review from gwossum June 1, 2023 17:20
Copy link
Member

@gwossum gwossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidby-influx davidby-influx merged commit 53856cd into master-1.x Jun 1, 2023
@davidby-influx davidby-influx deleted the DSB_series_compress branch June 1, 2023 17:49
davidby-influx added a commit that referenced this pull request Jun 1, 2023
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)
davidby-influx added a commit that referenced this pull request Jun 1, 2023
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)
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 11, 2024
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
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 27, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants