Skip to content

Conversation

@maedhroz
Copy link
Contributor

@maedhroz maedhroz commented Jan 30, 2023

patch by Caleb Rackliffe; reviewed by David Capwell for CASSANDRA-18195

@maedhroz
Copy link
Contributor Author

@maedhroz
Copy link
Contributor Author

maedhroz commented Jan 30, 2023

This patch adds a cassandra.yaml flag that, by default, does the following:

1.) At startup, prevents...
a.) ...Accord virtual tables from being created
b.) ...the Accord system keyspace/tables from being created
c.) ...the AccordService from being initialized, along w/ the threads it owns. (The implementation involving a no-op IAccordService might be up for discussion, but the idea seems to have been agreed to on the Jira already.)
d.) ...operators from enabling Accord-based CAS operations while Accord itself is disabled.

2.) In general, prevents any CQL Accord transaction from executing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda wish we could just return Node, but since that is what owns the threads... I doubt we can =(

Copy link
Contributor

@dcapwell dcapwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small comment about jvm-default, but overall LGTM +1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't you need to change this config for JVM dtest as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it in AccordTestBase, of course, but outside that, my goal was to keep the rest of the in-JVM test landscape running w/ the default, which right now means accord_transactions_enabled: false. Right trade-off, or am I thinking about it wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know what...I think you're right. It's probably better to have all of this active in a testing context so we ferret out problems earlier. Changing...

@maedhroz
Copy link
Contributor Author

Fixed a couple test failures related to the simulator and LOCAL_SYSTEM_KEYSPACE_NAMES...tests running again...

@maedhroz maedhroz force-pushed the CASSANDRA-18195 branch 2 times, most recently from 3dc3e89 to 2511255 Compare January 31, 2023 16:42
Copy link
Contributor

@dcapwell dcapwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

patch by Caleb Rackliffe; reviewed by David Capwell for CASSANDRA-18195
@maedhroz
Copy link
Contributor Author

maedhroz commented Feb 1, 2023

Committed as 2e680a3

@maedhroz maedhroz closed this Feb 1, 2023
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