-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-28754 verify the first argument passed to compaction_switch #6119
base: master
Are you sure you want to change the base?
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.
Is this the correct jira issue number? |
|
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.
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.
@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.
Missed this one. Let me kick the pre commit again. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
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.