Skip to content

Conversation

@arjunashok
Copy link
Contributor

Changes

  • Adds spark config with default empty list for blocked_instances
  • Adds tests for blocked instances

Copy link
Contributor

@frankgh frankgh left a 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,
Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

{
if (method.isAnnotationPresent(Test.class))
{
createTestTable(new QualifiedName(TEST_KEYSPACE, method.getName().toLowerCase()), CREATE_TEST_TABLE_STATEMENT);
Copy link
Contributor

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

Copy link
Contributor Author

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.

@arjunashok arjunashok changed the title Adds integration testing for blocklist handling [CASSANDRA-19257] Adds integration testing for blocklist handling Jan 17, 2024
Copy link
Contributor

@frankgh frankgh left a 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

@arjunashok arjunashok changed the title [CASSANDRA-19257] Adds integration testing for blocklist handling [CASSANDRA-19272] Adds integration testing for blocklist handling Jan 17, 2024
@frankgh
Copy link
Contributor

frankgh commented Jan 17, 2024

Closed via fa6df8e

@frankgh frankgh closed this Jan 17, 2024
@frankgh frankgh deleted the CASSANDRA-19272 branch January 17, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants