Skip to content

Conversation

@zhangwl9
Copy link
Contributor

@zhangwl9 zhangwl9 commented Jan 14, 2026

Why are the changes needed?

Close #4037.

Brief change log

  • The new feature involves two methods in "TableRuntimeRefreshExecutor".
    • #getNextExecutingTime()
      • When dynamic refresh interval is enabled,retrieving the latest refresh interval from "DefaultTableRuntime" to determine the next execution time for "TableRuntimeRefreshExecutor#execute"
    • #execute()
      • Depending on the evaluated results, determine whether the table requires optimization.
      • When the evaluation table requires no optimization, extend the interval for its next refresh (incrementally increasing the interval by a fixed step).
      • When evaluating table requiring optimization, shorten its next refresh interval (halving the interval each time).
  • dynamic refresh interval in [ refresh-tables.interval(1 min),max_interval(1 hour)]

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@github-actions github-actions bot added type:docs Improvements or additions to documentation module:ams-server Ams server module module:common labels Jan 14, 2026
@zhangwl9 zhangwl9 changed the title [AMORO-4037] Add support for dynamic refresh interval for table metadata refreshing [AMORO-4037] Add support for dynamic refresh interval for table metadata refreshing in TableRuntimeRefreshExecutor Jan 14, 2026
@zhangwl9 zhangwl9 force-pushed the AMORO-dynamic-refresh-interval-dev branch from 60e829e to 298152d Compare January 15, 2026 07:06
@zhangwl9
Copy link
Contributor Author

@xxubai Could you help me review it when you are free? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-server Ams server module module:common type:docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support dynamic refresh interval for refreshing table metadata

1 participant