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: avoid compaction queue stats flutter #22245

Merged
merged 3 commits into from
Aug 18, 2021
Merged

Conversation

davidby-influx
Copy link
Contributor

@davidby-influx davidby-influx commented Aug 17, 2021

When the compaction planner runs, if it cannot acquire
a lock on the files it plans to compact, it returns a
nil list of compaction groups. This, in turn, sets the
engine statistics for compactions queues to zero,
which is incorrect. Instead, use the length of pending
files which would have been returned.

closes #22138

(cherry picked from commit 7d3efe1)

closes #22141

(cherry picked from commit 9923d2e)

closes #22142

When the compaction planner runs, if it cannot acquire
a lock on the files it plans to compact, it returns a
nil list of compaction groups. This, in turn, sets the
engine statistics for compactions queues to zero,
which is incorrect. Instead, use the length of pending
files which would have been returned.

closes #22138

(cherry picked from commit 7d3efe1)

closes #22141

(cherry picked from commit 9923d2e)

closes #22142
@danxmoran danxmoran changed the title fix: avoid compaction queue stats flutter (#22235) fix: avoid compaction queue stats flutter Aug 18, 2021
@davidby-influx davidby-influx merged commit 1ac3471 into 2.0 Aug 18, 2021
@davidby-influx davidby-influx deleted the DSB_compact_stats branch August 18, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants