Uh oh!
There was an error while loading. Please reload this page.
HBASE-27920:Skipping compact for this region if the table disable compaction - #5273
Conversation
Apache-HBase
commented
Jun 7, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 7, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 7, 2023
🎊 +1 overall
This message was automatically generated. |
wchevreuil
left a comment
There was a problem hiding this comment.
Is this a bug, or are we actually skipping compaction later on?
Jira says it affects 2.3 and 2.4, but this PR is intended to master. Can you clarify which actual versions are affected and make sure we target the correct branches?
Please add UT for this extra condition.
guluo2016
commented
Jun 8, 2023
It is not a bug and would skip compaction later. see code in here: Skipping compaction if we donot need it In here, I mean we only skip early before we foreach |
guluo2016
commented
Jun 8, 2023
Sorry for this. What I described here is inaccurate. |
guluo2016
commented
Jun 9, 2023
I think it is difficult,beacause I just skip early for avoiding useless loop later. We can get information whether the table enable compaction by calling |
Apache9
commented
Jun 16, 2023
Please add more comments to say that this is just for skipping compaction earlier, and we also have other checks in other places. |
| for (Region r : this.instance.onlineRegions.values()) { | ||
| // Skip compaction if region is read only | ||
| if (r == null || r.isReadOnly()) { | ||
| // Skip compaction if region is read only or table disable compaction |
There was a problem hiding this comment.
Let's be more clear:// If region is read only or compaction is disabled at table level, there's no need to iterate through region's stores
wchevreuil
commented
Jun 20, 2023
Thanks for explaining it. Makes sense to me, approved this, just had a suggestion to "reword" the comment. |
guluo2016
commented
Jun 20, 2023
In here,chore() is periodically called,The code call process is that: And, There are no checks for compaction before calling chore()
Yes, there are checks when iterating through region's stores |
guluo2016
commented
Jun 20, 2023
Thanks for your comments, I will update later |
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 20, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jun 20, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 5, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 5, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 5, 2023
💔 -1 overall
This message was automatically generated. |
Apache9
commented
Jul 6, 2023
The failed UT is not related. Let me merge. |
…paction (apache#5273) Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> (cherry picked from commit d1f29d0) (cherry picked from commit 94f8424) Change-Id: Id79569919da544c90a473a2c2987420461909218
Details see: HBASE-27920