-
Notifications
You must be signed in to change notification settings - Fork 22
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
CNDB-12406: Make CachedReplicaRows thresholds flexible to be set via … #1551
base: main
Are you sure you want to change the base?
Conversation
Checklist before you submit for review
|
|
✔️ Build ds-cassandra-pr-gate/PR-1551 approved by ButlerApproved by Butler |
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.
Please consider the suggestion that will make it easier to port to main-5.0
.
if (System.getProperty(CACHED_REPLICA_ROWS_FAIL_THRESHOLD.getKey()) != null) | ||
this.cachedRowsFailThreshold = Integer.getInteger(CACHED_REPLICA_ROWS_FAIL_THRESHOLD.getKey()); | ||
else | ||
this.cachedRowsFailThreshold = cachedRowsFailThreshold; |
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 this could be something like:
this.cachedRowsWarnThreshold = CACHED_REPLICA_ROWS_WARN_THRESHOLD.getInt(cachedRowsWarnThreshold);
this.cachedRowsFailThreshold = CACHED_REPLICA_ROWS_FAIL_THRESHOLD.getInt(cachedRowsFailThreshold);
This will make it easier to port to main-5.0
where checkstyle will complain about using System.getProperty
... :)
What is the issue
cached_replica_rows_[warn,fail]_threshold can only be set at in the yaml or via JMX.
What does this PR fix and why was it fixed
Adds system properties for these.