andresbeckruiz opened a new pull request, #360:
URL: https://github.com/apache/cassandra-sidecar/pull/360
## [CASSSIDECAR-377](https://issues.apache.org/jira/browse/CASSSIDECAR-377)
Original PR made against
[CASSSIDECAR-373](https://github.com/apache/cassandra-sidecar/pull/339) branch
with review comments:
https://github.com/andresbeckruiz/cassandra-sidecar/pull/2.
### Changes
- `OperationalJobCoordinator` interface
- `StorageOperationalJobCoordinator`: Implementation that delegates to
`StorageProvider`'s compare and set based methods to acquire a lock for an
active operation
- `OperationalJob.operationType()`: New abstract method returning
`OperationType` enum, implemented by all concrete jobs
- `OperationalJobManager` integration: If a job requires coordination, the
manager acquires the active lock via the coordinator before execution; throws
`OperationalJobConflictException` if rejected
- Unit tests for `StorageOperationalJobCoordinator` and coordinator
integration in `OperationalJobManagerTest`
This ticket only covers the job activation path when a job is submitted to
be executed immediately. Clearing locks after completion and status update
activation will be implemented in later tickets (CASSSIDECAR-378,
CASSSIDECAR-379).
### Future Work
-
[CASSSIDECAR-378](https://issues.apache.org/jira/browse/CASSSIDECAR-378): Add
support for creation and coordination of local Sidecar Jobs
-
[CASSSIDECAR-379](https://issues.apache.org/jira/browse/CASSSIDECAR-379): Add
PATCH operational-jobs/{id} API to update status of existing operational jobs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]