[ 
https://issues.apache.org/jira/browse/CASSANDRA-14092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paulo Motta updated CASSANDRA-14092:
------------------------------------
    Description: 
CASSANDRA-4771 added a max value of 20 years for ttl to protect against [year 
2038 overflow bug|https://en.wikipedia.org/wiki/Year_2038_problem] for 
{{localDeletionTime}}.

It turns out that next year the {{localDeletionTime}} will start overflowing 
with the maximum ttl of 20 years ({{System.currentTimeMillis() + ttl(20 years) 
> Integer.MAX_VALUE}}), so we should remove this limitation.

  was:
CASSANDRA-4771 added a max value of 20 years for ttl to protect against [year 
2038 overflow bug|https://en.wikipedia.org/wiki/Year_2038_problem] for 
{{localDeletionTime}}, when {{System.currentTimeMillis() + ttl(20 years) > 
Integer.MAX_VALUE}}

It turns out that next year the {{localDeletionTime}} will start overflowing 
with the maximum ttl of 20 years, so we should remove this limitation.


> Max ttl of 20 years will overflow localDeletionTime
> ---------------------------------------------------
>
>                 Key: CASSANDRA-14092
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14092
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Paulo Motta
>
> CASSANDRA-4771 added a max value of 20 years for ttl to protect against [year 
> 2038 overflow bug|https://en.wikipedia.org/wiki/Year_2038_problem] for 
> {{localDeletionTime}}.
> It turns out that next year the {{localDeletionTime}} will start overflowing 
> with the maximum ttl of 20 years ({{System.currentTimeMillis() + ttl(20 
> years) > Integer.MAX_VALUE}}), so we should remove this limitation.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to