Uh oh!
There was an error while loading. Please reload this page.
HBASE-28754 verify the first argument passed to compaction_switch - #6119
Conversation
Verify the first argument passed to compaction_switch to prevent incorrect inputs from accidentally disabling compaction.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Apache9
commented
Jul 27, 2024
Is this the correct jira issue number? |
Uh oh!
There was an error while loading. Please reload this page.
ether1984
commented
Jul 27, 2024
|
change error message from compactionSwitch to compaction_switch
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Apache9
commented
Jul 30, 2024
Can we add a UT to verify the added code actually works? Thanks. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ether1984
commented
Aug 8, 2024
@Apache9 UT has been added. The UT verifies both illegal and correct arguments, and returns the expected result. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Apache9
commented
Nov 21, 2024
Missed this one. Let me kick the pre commit again. |
Apache-HBase
commented
Nov 21, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Nov 21, 2024
🎊 +1 overall
This message was automatically generated. |
guluo2016
commented
Mar 26, 2025
This PR seems to have been ready for a long time. @Apache9 |
) Co-authored-by: wangjue <ether1984@163.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Reviewed-by: guluo <lupeng_nwpu@qq.com> Reviewed-by: Chandra Sekhar K <chandrasekhar188k@gmail.com> (cherry picked from commit b625bda)
) Co-authored-by: wangjue <ether1984@163.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Reviewed-by: guluo <lupeng_nwpu@qq.com> Reviewed-by: Chandra Sekhar K <chandrasekhar188k@gmail.com> (cherry picked from commit b625bda)
) Co-authored-by: wangjue <ether1984@163.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Reviewed-by: guluo <lupeng_nwpu@qq.com> Reviewed-by: Chandra Sekhar K <chandrasekhar188k@gmail.com> (cherry picked from commit b625bda)
) Co-authored-by: wangjue <ether1984@163.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Reviewed-by: guluo <lupeng_nwpu@qq.com> Reviewed-by: Chandra Sekhar K <chandrasekhar188k@gmail.com> (cherry picked from commit b625bda)
…ache#6119) Co-authored-by: wangjue <ether1984@163.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Reviewed-by: guluo <lupeng_nwpu@qq.com> Reviewed-by: Chandra Sekhar K <chandrasekhar188k@gmail.com> (cherry picked from commit b625bda)
…ache#6119) Co-authored-by: wangjue <ether1984@163.com> Signed-off-by: Duo Zhang <zhangduo@apache.org> Reviewed-by: guluo <lupeng_nwpu@qq.com> Reviewed-by: Chandra Sekhar K <chandrasekhar188k@gmail.com> (cherry picked from commit b625bda)
Sometimes, users may inadvertently attempt to use compaction_switch; therefore, it is advisable to implement a verification step for the first argument passed to this function, ensuring that incorrect inputs do not accidentally disable compaction.