Skip to content

Fix ISM and other timestamp fields typed as integer instead of int64 causing numeric overflow#2039

Open
gingeekrishna wants to merge 2 commits into
opensearch-project:mainfrom
gingeekrishna:fix/1717-1898-timestamp-fields-int-to-long
Open

Fix ISM and other timestamp fields typed as integer instead of int64 causing numeric overflow#2039
gingeekrishna wants to merge 2 commits into
opensearch-project:mainfrom
gingeekrishna:fix/1717-1898-timestamp-fields-int-to-long

Conversation

@gingeekrishna

Copy link
Copy Markdown

Fixes #1717, Fixes #1898

Epoch-millisecond timestamps were typed as plain integer in the spec with no format: int64, so the codegen emitted Integer (max ~2.1B) instead of Long. Any real timestamp value (e.g. 1755915614485) overflows int and Jackson raises:

Numeric value out of range of int (-2147483648 - 2147483647)

Fix: Add format: int64 to affected fields — IsmTemplate.last_updated_time, Policy.last_updated_time, and the same fields in flow_framework and SM — and update the two generated ISM Java classes from Integer/integerDeserializer to Long/longDeserializer.

…nt64

Epoch-millisecond timestamps were typed as plain integer in the spec,
causing the codegen to emit Integer (max ~2.1B) instead of Long for:
  - IsmTemplate.lastUpdatedTime   (fixes opensearch-project#1717, opensearch-project#1898)
  - Policy.lastUpdatedTime        (fixes opensearch-project#1717, opensearch-project#1898)
  - flow_framework created_time / last_updated_time  (same root cause)
  - SM policy last_updated_time

Any timestamp after ~2038-01-19 in milliseconds overflows int and
Jackson raises: Numeric value out of range of int.

Add format: int64 to all affected last_updated_time / created_time
fields in opensearch-openapi.yaml and update the two generated ISM
Java classes from Integer/integerDeserializer to Long/longDeserializer.

Fixes opensearch-project#1717
Fixes opensearch-project#1898

Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>
Copilot AI review requested due to automatic review settings July 5, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants