JeetKunDoug commented on code in PR #96:
URL: https://github.com/apache/cassandra-sidecar/pull/96#discussion_r1475208805
##########
src/main/java/org/apache/cassandra/sidecar/db/RestoreJob.java:
##########
@@ -76,10 +75,13 @@ public static RestoreJob from(@NotNull Row row) throws
DataObjectMappingExceptio
.jobSecrets(decodeJobSecrets(row.getBytes("blob_secrets")))
.expireAt(row.getTimestamp("expire_at"))
.sstableImportOptions(decodeSSTableImportOptions(row.getBytes("import_options")));
+ String consistencyLevel = row.getString("consistency_level");
+ builder.manager(consistencyLevel == null ? Manager.SPARK :
Manager.SIDECAR)
Review Comment:
Took me a moment to figure out why consistencyLevel would be null if the
manager is SPARK - can we document why this is the case here please?
--
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]