Skip to content

fix(config): keep dynamic reload running after errors - #7117

Merged
lvs0075 merged 2 commits into
tronprotocol:release_v4.8.3from
xxo1shine:fix/config-reload-task-survival
Nov 20, 2026
Merged

lvs0075 merged 2 commits into
tronprotocol:release_v4.8.3from
xxo1shine:fix/config-reload-task-survival

Conversation

@xxo1shine

@xxo1shine xxo1shine commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?
Catch and log failures in the reload callback so invalid configuration cannot suppress subsequent fixed-delay executions.

Record each observed file modification before reloading so a rejected configuration is processed once and a newer saved file can be loaded.

Copy each witness address into the existing protobuf latency detail field so gRPC consumers can identify the producer associated with the reported latency and count.

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

wb added 2 commits November 19, 2026 17:19
Catch and log failures in the reload callback so invalid configuration
cannot suppress subsequent fixed-delay executions.

Record each observed file modification before reloading so a rejected
configuration is processed once and a newer saved file can be loaded.
Copy each witness address into the existing protobuf latency detail
field so gRPC consumers can identify the producer associated with the
reported latency and count.
try {
run();
} catch (Exception e) {
} catch (Throwable e) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

After this PR #7113 merges, maybe there is no need to change it, it excludes TronError.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Once #7113 is merged, it will remove the current path that throws TronError. However, keeping catch (Throwable) here is intentional. If an Error escapes a scheduleWithFixedDelay callback, subsequent executions are suppressed. Catching and logging Throwable at the reload-task boundary prevents future validation changes or dependencies that throw other Error types from silently disabling configuration reloading again. For that reason, I would keep this change.

@lvs0075
lvs0075 merged commit 4b4f3f0 into tronprotocol:release_v4.8.3 Nov 20, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants