-
Notifications
You must be signed in to change notification settings - Fork 22
[CASSANDRA-19272] Adds integration testing for blocklist handling #32
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
Conversation
frankgh
left a comment
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.
Looks good, I've left a few comments in the PR
| * support mixed case and reserved keyword names for these fields. | ||
| */ | ||
| QUOTE_IDENTIFIERS, | ||
| BLOCKED_INSTANCES, |
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.
how about calling them BLOCKED_SIDECAR_INSTANCES to be explicit about which instances are blocked. Also, I think we should add javadocs to all these properties (in a different jira); but in the context of this PR, we should add javadocs to the property that is being added.
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.
on second thought these are actually Cassandra instances, correct? I think we should maybe explicitly call them BLOCKED_CASSANDRA_INSTANCES maybe? I don't think Sidecar itself is blocked, but rather specific Cassandra instances, right?
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.
Sure, doesn't hurt to make it more explicit.
...ics-integration-tests/src/test/java/org/apache/cassandra/analytics/BlockedInstancesTest.java
Outdated
Show resolved
Hide resolved
| { | ||
| if (method.isAnnotationPresent(Test.class)) | ||
| { | ||
| createTestTable(new QualifiedName(TEST_KEYSPACE, method.getName().toLowerCase()), CREATE_TEST_TABLE_STATEMENT); |
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.
there are some limitations on valid keyspace/table names in Cassandra, including length, so we need to be a bit careful there. but this looks like a clever approach to setup schemas
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.
good point. Added a class level javadoc describing what we're doing for now.
...ics-integration-tests/src/test/java/org/apache/cassandra/analytics/BlockedInstancesTest.java
Outdated
Show resolved
Hide resolved
...ics-integration-tests/src/test/java/org/apache/cassandra/analytics/BlockedInstancesTest.java
Outdated
Show resolved
Hide resolved
...ics-integration-tests/src/test/java/org/apache/cassandra/analytics/BlockedInstancesTest.java
Outdated
Show resolved
Hide resolved
...ics-integration-tests/src/test/java/org/apache/cassandra/analytics/BlockedInstancesTest.java
Outdated
Show resolved
Hide resolved
...ics-integration-tests/src/test/java/org/apache/cassandra/analytics/BlockedInstancesTest.java
Outdated
Show resolved
Hide resolved
frankgh
left a comment
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.
+1 Looks good to me
|
Closed via fa6df8e |
Changes
blocked_instances