-
Couldn't load subscription status.
- Fork 3.4k
HBASE-26987 The length of compact queue grows too big when the compac… #4390
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
base: master
Are you sure you want to change the base?
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
rebase |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
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.
Mind explaining more about your solution?
| final LongAdder compactionsFailed = new LongAdder(); | ||
| final LongAdder compactionNumFilesCompacted = new LongAdder(); | ||
| final LongAdder compactionNumBytesCompacted = new LongAdder(); | ||
| final LongAdder compactionsQueued = new LongAdder(); |
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.
It seems a bit strange that we only move this field to HStore but still keep other compaction related metrics in HRegion...
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.
Yeah, you are right, i thought about it too, but did not find a better way, maybe all that metrics should be moved to HStore?
Thanks.
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 think moving compaction metrics to HStore would be better.
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 think moving compaction metrics to HStore would be better.
I can move the other compaction metrics in a follow-on issue.
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.
Then is it possible to not include the metrics moving but still fix the problem here? It is not a good idea to land a half done work, so I prefer either we do not move any of them, or move them all at once.
Yeah, the problem here is we put too many compactions to queue, so i think the solution for it is to find how many is suitable. |
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.
The idea looks good overall. @bsglz do you have any recommendation on the max files to compact value?
| final LongAdder compactionsFailed = new LongAdder(); | ||
| final LongAdder compactionNumFilesCompacted = new LongAdder(); | ||
| final LongAdder compactionNumBytesCompacted = new LongAdder(); | ||
| final LongAdder compactionsQueued = new LongAdder(); |
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 think moving compaction metrics to HStore would be better.
Do you mean the value for hbase.hstore.compaction.max? The default value is 10, i think its ok. |
|
+1 overall, also the idea seems good. @bsglz let's wait for one more review? |
No prob, thanks a lot. |
|
@Apache9 Can i have +1 from you, or any more issues? Thanks a lot. |
|
|
||
| @Override | ||
| public boolean needsCompaction() { | ||
| // For some system compacting, we set selectNow to false, and the files do not |
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.
In general I do not fully understand what is the problem here...
The problem is we schedule too many compactions, because of how we know whether there is a compaction running is through the filesCompacting? This is only true for system compaction? Then why not change the logic of requesting system compaction?
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.
The current logic is an improvement introduced by HBASE-8665, which could get better store file selection.
I think that patch is useful, just bring some side effect, and this patch want to fix it.
BTW, skimming that patch maybe helpful to understand.
Thanks a lot.
|
rebase |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
Ping @Apache9 |
…ting is slow