Skip to content

Commit ec220ca

Browse files
authored
Cherry pick #3627 from Cadence (#839)
1 parent f3e0b03 commit ec220ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/persistence/cassandra/cassandraVisibilityPersistence.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const (
4444
defaultCloseTTLSeconds = 86400
4545
openExecutionTTLBuffer = int64(86400) // setting it to a day to account for shard going down
4646

47-
maxCassandraTTL = int64(630720000) // Cassandra TTL maximum, 20 years in second
47+
// ref: https://docs.datastax.com/en/dse-trblshoot/doc/troubleshooting/recoveringTtlYear2038Problem.html
48+
maxCassandraTTL = int64(315360000) // Cassandra max support time is 2038-01-19T03:14:06+00:00. Updated this to 10 years to support until year 2028
4849
)
4950

5051
const (

0 commit comments

Comments
 (0)