You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "yifan-c (via GitHub)" <gi...@apache.org> on 2025/06/04 16:28:20 UTC

[PR] CASSSIDECAR-255: Fix restore ranges of failed sidecar-managed restore jobs do not persist [cassandra-sidecar]

yifan-c opened a new pull request, #221:
URL: https://github.com/apache/cassandra-sidecar/pull/221

   Patch by Yifan Cai; Reviewed by TBD for CASSSIDECAR-255


-- 
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: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Re: [PR] CASSSIDECAR-255: Fix restore ranges of failed sidecar-managed restore jobs do not persist [cassandra-sidecar]

Posted by "sarankk (via GitHub)" <gi...@apache.org>.
sarankk commented on code in PR #221:
URL: https://github.com/apache/cassandra-sidecar/pull/221#discussion_r2130668198


##########
server/src/main/java/org/apache/cassandra/sidecar/restore/RestoreJobConsistencyChecker.java:
##########
@@ -100,6 +100,7 @@ public Future<RestoreJobProgress> check(RestoreJob restoreJob, RestoreJobProgres
         RestoreJobProgressCollector collector = RestoreJobProgressCollectors.create(restoreJob, fetchPolicy);
         RestoreRangeStatus successCriteria = restoreJob.expectedNextRangeStatus();
         ConsistencyVerifier verifier = ConsistencyVerifiers.forConsistencyLevel(restoreJob.consistencyLevel, restoreJob.localDatacenter);
+        LOGGER.info("Checking restore job progress. jobId={} fetchPolicy={} successCriteria={}", restoreJob.jobId, fetchPolicy, successCriteria);

Review Comment:
   How frequently does the `/progress` endpoint get called? should we log this at debug?



-- 
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: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Re: [PR] CASSSIDECAR-255: Fix restore ranges of failed sidecar-managed restore jobs do not persist [cassandra-sidecar]

Posted by "yifan-c (via GitHub)" <gi...@apache.org>.
yifan-c merged PR #221:
URL: https://github.com/apache/cassandra-sidecar/pull/221


-- 
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: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Re: [PR] CASSSIDECAR-255: Fix restore ranges of failed sidecar-managed restore jobs do not persist [cassandra-sidecar]

Posted by "yifan-c (via GitHub)" <gi...@apache.org>.
yifan-c commented on code in PR #221:
URL: https://github.com/apache/cassandra-sidecar/pull/221#discussion_r2130690494


##########
server/src/test/java/org/apache/cassandra/sidecar/utils/SidecarClientProviderTest.java:
##########
@@ -84,29 +84,32 @@ class SidecarClientProviderTest
     @BeforeAll
     static void configureCertificates() throws Exception
     {
-        CertificateBundle certificateAuthority = new CertificateBuilder().subject("CN=Apache Cassandra Root CA, OU=Certification Authority, O=Unknown, C=Unknown")
-                                                                         .alias("fakerootca")
-                                                                         .isCertificateAuthority(true)
-                                                                         .buildSelfSigned();
+        CertificateBundle certificateAuthority = new CertificateBuilder()
+                                                 .subject("CN=Apache Cassandra Root CA, OU=Certification Authority, O=Unknown, C=Unknown")
+                                                 .alias("fakerootca")
+                                                 .isCertificateAuthority(true)
+                                                 .buildSelfSigned();

Review Comment:
   just reformatting the code. Code style complain the line being too long



-- 
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: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Re: [PR] CASSSIDECAR-255: Fix restore ranges of failed sidecar-managed restore jobs do not persist [cassandra-sidecar]

Posted by "yifan-c (via GitHub)" <gi...@apache.org>.
yifan-c commented on code in PR #221:
URL: https://github.com/apache/cassandra-sidecar/pull/221#discussion_r2132613557


##########
server/src/main/java/org/apache/cassandra/sidecar/restore/RestoreJobConsistencyChecker.java:
##########
@@ -100,6 +100,7 @@ public Future<RestoreJobProgress> check(RestoreJob restoreJob, RestoreJobProgres
         RestoreJobProgressCollector collector = RestoreJobProgressCollectors.create(restoreJob, fetchPolicy);
         RestoreRangeStatus successCriteria = restoreJob.expectedNextRangeStatus();
         ConsistencyVerifier verifier = ConsistencyVerifiers.forConsistencyLevel(restoreJob.consistencyLevel, restoreJob.localDatacenter);
+        LOGGER.info("Checking restore job progress. jobId={} fetchPolicy={} successCriteria={}", restoreJob.jobId, fetchPolicy, successCriteria);

Review Comment:
   It depends on the client. 
   In the context of Anayltics, the rate is at most once per second. I am adding this log message, because it is critical to confirm that client is requesting the consistency check. 
   We over-estimate log verbosity in some places but often under-estimate in many other places. I think this one does not fall into the under-estimate category. 



-- 
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: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org