Caideyipi opened a new pull request, #19110: URL: https://github.com/apache/iotdb/pull/19110
## Description Resetting a table TTL with `ALTER TABLE ... SET PROPERTIES ttl=DEFAULT` can leave DataNodes enforcing an infinite TTL while ConfigNode reports the finite database default. For example, after resetting a table to a one-day database TTL, `SHOW TABLES` reports one day but queries still return two-day-old rows. Resolve the database default before filtering unchanged properties and constructing the table snapshot sent to DataNodes. This keeps the pre-release snapshot and committed metadata consistent, preserves unset/infinite defaults, and avoids unnecessary procedures when the effective TTL is unchanged. Add unit coverage for finite, unset, and infinite defaults and a regression test covering expired reads, expired-write rejection through every DataNode, explicit table overrides, and resetting back to infinite TTL. ## Validation - Formatting and IT selection checks passed. - The regression test reproduced the stale TTL behavior on the previous implementation in the table cluster profile. - Updated unit tests and the regression test in `TableClusterIT` and `TableSimpleIT` are pending validation. - Independent review is pending; this PR is intentionally a draft. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
