cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [cassandra] bereng commented on a change in pull request #570: CASSANDRA-13606 Improve handling of 2i initialization failures
Date Thu, 07 May 2020 07:44:22 GMT

bereng commented on a change in pull request #570:

File path: src/java/org/apache/cassandra/index/
@@ -485,14 +471,15 @@ private void buildIndexesBlocking(Collection<SSTableReader> sstables,
-  "Submitting index build of {} for data in {}",
+  "Submitting index recovery/build of {} for data in {}",
                -> i.getIndexMetadata().name).collect(Collectors.joining(",")),
             // Group all building tasks
             Map<Index.IndexBuildingSupport, Set<Index>> byType = new HashMap<>();
             for (Index index : indexes)
+                boolean isRecovery = !index.supportsLoad(Loads.ALL);

Review comment:
       This is the only contentious point imo. I don't know if we should call a `Index#isRecoveryNeeded()`
method instead rather than trying to infer it at the SIM level. The former assumes `ALL` is
mandatory for an index to the 'right', the latter allows for the index implementation to decide
that. Both make sense... It's our choice tbh and switching from one to the other in the future
it's easy enough anyway.

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.

For queries about this service, please contact Infrastructure at:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message