diff --git a/CHANGES.txt b/CHANGES.txt index b6d140c27d..522edf8a2b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -14,6 +14,10 @@ * Add documentation for Java 11 support in Cassandra (CASSANDRA-15428) * Integrate SJK into nodetool (CASSANDRA-12197) * Ensure that empty clusterings with kind==CLUSTERING are Clustering.EMPTY (CASSANDRA-15498) + * The flag 'cross_node_timeout' has been set as true by default. This change + is done under the assumption that users have setup NTP on their clusters or + otherwise synchronize their clocks, and that clocks are mostly in sync, since + this is a requirement for general correctness of last write wins. (CASSANDRA-15216) Merged from 3.11: * Fix nodetool compactionstats showing extra pending task for TWCS - patch implemented (CASSANDRA-15409) * Fix SELECT JSON formatting for the "duration" type (CASSANDRA-15075) diff --git a/NEWS.txt b/NEWS.txt index 86de7a444d..e51203f0dc 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -218,6 +218,12 @@ Upgrading have been set as false by default. Operators should modify them to allow the creation of new views and SASI indexes, the existing ones will continue working. See CASSANDRA-14866 for details. + - CASSANDRA-15216 - The flag 'cross_node_timeout' has been set as true by default. + This change is done under the assumption that users have setup NTP on + their clusters or otherwise synchronize their clocks, and that clocks are + mostly in sync, since this is a requirement for general correctness of + last write wins. + Materialized Views ------------------- diff --git a/conf/cassandra.yaml b/conf/cassandra.yaml index 9a79f24d7e..f1e5864804 100644 --- a/conf/cassandra.yaml +++ b/conf/cassandra.yaml @@ -923,9 +923,9 @@ slow_query_log_timeout_in_ms: 500 # under overload conditions we will waste that much extra time processing # already-timed-out requests. # -# Warning: before enabling this property make sure to ntp is installed -# and the times are synchronized between the nodes. -cross_node_timeout: false +# Warning: It is generally assumed that users have setup NTP on their clusters, and that clocks are modestly in sync, +# since this is a requirement for general correctness of last write wins. +#cross_node_timeout: true # Set keep-alive period for streaming # This node will send a keep-alive message periodically with this period. diff --git a/src/java/org/apache/cassandra/config/Config.java b/src/java/org/apache/cassandra/config/Config.java index 8fa8e72b98..2d744263e2 100644 --- a/src/java/org/apache/cassandra/config/Config.java +++ b/src/java/org/apache/cassandra/config/Config.java @@ -108,7 +108,7 @@ public class Config public Integer streaming_connections_per_host = 1; public Integer streaming_keep_alive_period_in_secs = 300; //5 minutes - public boolean cross_node_timeout = false; + public boolean cross_node_timeout = true; public volatile long slow_query_log_timeout_in_ms = 500L;