You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] ISM types lastUpdatedTime is susceptible to int overflow #1898
Policy and IsmTemplate have fields called lastUpdatedTime, stored as an Integer.
These fields get epoch millis as their values, which are larger than MAX_INTEGER.
If using a JacksonJsonpMapper, then I get an exception like this:
Caused by: com.fasterxml.jackson.core.exc.InputCoercionException: Numeric value (1772134315305) out of range of int (-2147483648 - 2147483647)
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 253]
Using Jackson config like DeserializationFeature.USE_BIG_INTEGER_FOR_INTS does not help, because the target type (eg Policy) explicitly has an an Integer type.
If using a JsonbJsonpMapper, then the value silently overflows and I get a negative timestamp.
Opened PR #2039 (same root cause as #1717). Fix adds format: int64 to the spec for IsmTemplate.last_updated_time and Policy.last_updated_time and updates the generated classes to Long/longDeserializer.
Hi, I'd like to fix this. The issue is clear: lastUpdatedTime in Policy.java and IsmTemplate.java is typed as Integer but stores epoch milliseconds which overflow Integer.MAX_VALUE. The fix is to change the type to Long. I'll investigate whether this is in generated code and how to correctly make that change, then submit a PR.
Activity
Fix opensearch-project#1898: change last_updated_time to int64/Long i…
andrross commentedon Mar 30, 2026
Catch All Triage - 1 2
fix(ism): change lastUpdatedTime from Integer to Long to prevent epoc…
gingeekrishna commentedon Jul 5, 2026
Opened PR #2039 (same root cause as #1717). Fix adds
format: int64to the spec forIsmTemplate.last_updated_timeandPolicy.last_updated_timeand updates the generated classes toLong/longDeserializer.sahasan95 commentedon Jul 23, 2026
Hi, I'd like to fix this. The issue is clear: lastUpdatedTime in Policy.java and IsmTemplate.java is typed as Integer but stores epoch milliseconds which overflow Integer.MAX_VALUE. The fix is to change the type to Long. I'll investigate whether this is in generated code and how to correctly make that change, then submit a PR.
Fix ISM/flow-framework/SM timestamp fields using integer instead of i…
Fix ISM/flow-framework/SM timestamp fields using integer instead of i…
Fix ISM/flow-framework/SM timestamp fields using integer instead of i…