Skip to content

Commit

Permalink
Disable Request Streams Gate for New Clusters (#610)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Guo <[email protected]>
  • Loading branch information
d-guo and Daniel Guo authored Jan 30, 2025
1 parent 21b87b0 commit eeafc0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/org/apache/cassandra/service/StorageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
{
private static final Logger logger = LoggerFactory.getLogger(StorageService.class);
private static final boolean DISABLE_WAIT_TO_BOOTSTRAP = Boolean.getBoolean("palantir_cassandra.disable_wait_to_bootstrap");
private static final boolean DISABLE_WAIT_TO_REQUEST_STREAMS = Boolean.getBoolean("palantir_cassandra.disable_wait_to_request_streams");
// the startRequestStreamsCondition gate is disabled for new clusters because they are not expected to receive client requests yet
private static final boolean DISABLE_WAIT_TO_REQUEST_STREAMS = Boolean.getBoolean("palantir_cassandra.disable_wait_to_request_streams") || Boolean.getBoolean("palantir_cassandra.is_new_cluster");
private static final boolean DISABLE_WAIT_TO_FINISH_BOOTSTRAP = Boolean.getBoolean("palantir_cassandra.disable_wait_to_finish_bootstrap");
private static final Integer STREAMS_REQUEST_SAFETY_CHECK_GRACE_PERIOD_MINUTES = Integer.getInteger("palantir_cassandra.streams_request_safety_check_grace_period_minutes", 30);
private static final Integer BOOTSTRAP_SAFETY_CHECK_GRACE_PERIOD_MINUTES = Integer.getInteger("palantir_cassandra.bootstrap_safety_check_grace_period_minutes", 30);
Expand Down

0 comments on commit eeafc0e

Please sign in to comment.