You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "dcapwell (via GitHub)" <gi...@apache.org> on 2023/04/04 16:54:55 UTC

[GitHub] [cassandra] dcapwell commented on a diff in pull request #2258: CASSANDRA-18221: Add AccordConfig to track accord specific configs

dcapwell commented on code in PR #2258:
URL: https://github.com/apache/cassandra/pull/2258#discussion_r1157521084


##########
src/java/org/apache/cassandra/service/accord/AccordService.java:
##########
@@ -137,7 +139,9 @@ private AccordService()
         this.messageSink = new AccordMessageSink();
         this.configService = new AccordConfigurationService(localId);
         this.scheduler = new AccordScheduler();
+        this.config = new AccordConfig(DatabaseDescriptor.getAccordSchedulerDelayInMS());

Review Comment:
   this pattern isn't something we can maintain; every new config comes with a massive burden to update this constructor; IMO we should push this logic into the YAML layer



##########
src/java/org/apache/cassandra/config/Config.java:
##########
@@ -596,6 +596,7 @@ public MemtableOptions()
     public volatile boolean use_statements_enabled = true;
 
     public boolean accord_transactions_enabled = false;
+    public long accord_scheduler_delay_in_ms = 200L;

Review Comment:
   agree with this comment, `DurationSpec` (or one of the ones that limit the domain) is what we should do; `in_ms` should be avoided 



-- 
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