From 89dda66170e59d0d6d7a9217500712712c3f9723 Mon Sep 17 00:00:00 2001 From: Bereng Date: Fri, 12 May 2023 10:45:04 +0200 Subject: [PATCH] FF moved to yaml --- ttl_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttl_test.py b/ttl_test.py index 64325a666f..c7ee5d9a79 100644 --- a/ttl_test.py +++ b/ttl_test.py @@ -370,7 +370,7 @@ def _base_expiration_overflow_policy_test(self, default_ttl, policy): @jira_ticket CASSANDRA-14092 and CASSANDRA-14227 """ # Post 5.0 TTL may overflow in 2038 (legacy) or 2106 C14227 - overflow_policy_applies = "NONE" != os.getenv("cassandra.storage_compatibility_mode", "CASSANDRA_4")\ + overflow_policy_applies = "NONE" != self.cluster.nodelist()[0].get_conf_option("storage_compatibility_mode") \ or datetime.date.today().year >= 2086 MAX_TTL = 20 * 365 * 24 * 60 * 60 # 20 years in seconds default_time_to_live = MAX_TTL if default_ttl else None