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 Wed, 06 May 2020 14:26:28 GMT

bereng commented on a change in pull request #570:

File path: src/java/org/apache/cassandra/index/
@@ -136,6 +135,7 @@
 public interface Index
+    public static enum Loads {READS, WRITES, ALL, NONE};

Review comment:
       I think it's a personal style thing. Rather than having 2 booleans and having to reason
about them, the Enum makes it more 'in your face' imo: `ALL` is clear what it means vs 2 booleans
etc. :shrug:
   Also maybe I have too much imagination, but I can think of 'DELETE' as a load. You could
have 'append-only' indexes in the future that don't support deletes. Maybe premature optimization
is being my enemy here... Or sthg with statics for custom indexes...
   I prefer you decide what is best here :-). I'll rename to singulars meanwhile in case we
kept that option.

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