Skip to content

Commit

Permalink
Cassandra based distributed locking mechanism # 741
Browse files Browse the repository at this point in the history
- Cassandra tables called lock and lock_priority,
 to manage task execution and synchronization across
 multiple nodes.
  • Loading branch information
Paul Chandler authored and sajid riaz committed Nov 7, 2024
1 parent 67fbcb2 commit 6a5700b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
22 changes: 0 additions & 22 deletions .gitignore

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Create New Repair Type Called "VNODE" - Issue #755
* Create ReplicaRepairGroup Class for Grouping Replicas and Token Ranges - Issue #721
* Hot Reload of Nodes List - Issue #699
* Update nodes when cluster changes, nodes removed or added #699
* Investigate Creation of RepairScheduler and ScheduleManager #714
* Implement ScheduledJobQueue for Prioritized Job Management and Execution - Issue #740
* Implement RepairGroup Class for Managing and Executing Repair Tasks - Issue #738
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public AgentNativeConnectionProvider(
.withSslEngineFactory(sslEngineFactory)
.withSchemaChangeListener(defaultRepairConfigurationProvider)
.withNodeStateListener(defaultRepairConfigurationProvider);

LOG.info("Preparing Agent Connection Config");
nativeConnectionBuilder = resolveAgentProviderBuilder(nativeConnectionBuilder, agentConnectionConfig);
LOG.info("Establishing Connection With Nodes");
Expand Down
7 changes: 3 additions & 4 deletions application/src/main/resources/ecc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,11 @@ rest_server:
cache_expiry_time_in_seconds: 30
##
## Allow to override consistency level for LWT (lightweight transactions). Possible values are:
## "DEFAULT" - Use consistency level based on remoteRouting.
## "SERIAL" - Use SERIAL consistency for LWT regardless of remoteRouting.
## "LOCAL" - Use LOCAL_SERIAL consistency for LWT regardless of remoteRouting.
##
## if you use remoteRouting: false and LOCAL then all locks will be taken locally
## in DC. I.e There's a risk that multiple nodes in different datacenters will be able to lock the
## if you use LOCAL then all locks will be taken locally in DC.
## I.e There's a risk that multiple nodes in different datacenters will be able to lock the
## same nodes causing multiple repairs on the same range/node at the same time.
##
consistencySerial: "DEFAULT"
consistencySerial: "SERIAL"

0 comments on commit 6a5700b

Please sign in to comment.