brandondho opened a new pull request, #327: URL: https://github.com/apache/cassandra-sidecar/pull/327
Adds cluster-wide node tracking fields to OperationalJob for CEP-53. Updates the `OperationalJob` abstract class and related components to support cluster-wide node tracking for CEP-53. Single-node jobs now automatically track their execution lifecycle through node lists (`nodesPending`, `nodesExecuting`, `nodesSucceeded`, `nodesFailed`), while future cluster-wide jobs will manage these lists directly via protected setters. ### Changes - `OperationalJob` gains a `nodeId` field and two-arg constructor. When `nodeId` is provided, node tracking lists are automatically managed through the job lifecycle in `execute()`. The single-arg constructor initializes empty lists for cluster-wide jobs to manage via protected setters. - `OperationalJob` gains `startTime` and `lastUpdate` fields, automatically set during `execute()` - `OperationalJobResponse` gains new fields (`startTime`, `nodesPending`, `nodesExecuting`, `nodesSucceeded`, `nodesFailed`, `lastUpdate`) - `CassandraAdapterDelegate` gains `hostId()` method using JMX `getLocalHostId()` to fetch the Cassandra host UUID ### Future Work This enables upcoming work on CEP-53: - Implement job coordination for cluster-wide operations ([CASSSIDECAR-377](https://issues.apache.org/jira/browse/CASSSIDECAR-377)) -- 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]

