Mansi Khara created CASSSIDECAR-454:
---------------------------------------

             Summary: Sidecar should wake up immediately on the instance 
receiving a phase signal instead of waiting for the discovery loop
                 Key: CASSSIDECAR-454
                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-454
             Project: Sidecar for Apache Cassandra
          Issue Type: Improvement
            Reporter: Mansi Khara


UpdateRestoreJobHandler writes phase signals (STAGE_READY, IMPORT_READY) to the 
DB and returns 200 with no further action, leaving the receiving instance idle 
until its next discovery cycle (up to 5–10 minutes). For IMPORT_READY, inject 
RestoreJobManagerGroup into UpdateRestoreJobHandler and call the existing 
updateRestoreJob() immediately after the DB write — staged ranges will unblock 
on the next RestoreProcessor tick (~1 second). For STAGE_READY, expose a 
package-level processJobNow(RestoreJob) method on RestoreJobDiscoverer that 
runs the same updateRestoreJob + processSidecarManagedJobMaybe sequence the 
discovery loop already executes, and call it from UpdateRestoreJobHandler after 
the DB write. Both calls are additive and safe to miss- the DB write remains 
the durable source of truth.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to