Skip to content

fix(downsampler): replace Kamon.stopModules() with Thread.sleep to av…#2283

Merged
yu-shipit merged 3 commits into
filodb:mainfrom
yu-shipit:main
Jun 11, 2026
Merged

fix(downsampler): replace Kamon.stopModules() with Thread.sleep to av…#2283
yu-shipit merged 3 commits into
filodb:mainfrom
yu-shipit:main

Conversation

@yu-shipit

Copy link
Copy Markdown
Contributor

…oid double shutdown (#2281)

KamonShutdownHook.registerShutdownHook() is already registered, so calling Kamon.stopModules() a second time caused a conflict. Use Thread.sleep instead to preserve the metrics flush delay.

Pull Request checklist

  • The commit(s) message(s) follows the contribution guidelines ?
  • Tests for the changes have been added (for bug fixes / features) ?
  • Docs have been added / updated (for bug fixes / features) ?

Current behavior : (link exiting issues here : https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests)

New behavior :

BREAKING CHANGES

If this PR contains a breaking change, please describe the impact and migration
path for existing applications.
If not please remove this section.

Breaking changes may include:

  • Any schema changes to any Cassandra tables
  • The serialized format for Dataset and Column (see .toString methods)
  • Over the wire formats for Akka messages / case classes
  • Changes to the HTTP public API
  • Changes to query parsing / PromQL parsing

Other information:

yu-shipit and others added 2 commits June 8, 2026 12:34
…oid double shutdown (filodb#2281)

KamonShutdownHook.registerShutdownHook() is already registered, so calling
Kamon.stopModules() a second time caused a conflict. Use Thread.sleep instead
to preserve the metrics flush delay.

Co-authored-by: Yu Zhang <yzhang999272@apple.com>
alextheimer
alextheimer previously approved these changes Jun 9, 2026
@alextheimer alextheimer dismissed their stale review June 9, 2026 17:14

version

@alextheimer alextheimer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, but make sure you bump the version

@yu-shipit yu-shipit merged commit ad3984d into filodb:main Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants