Skip to content

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Jul 29, 2025

Allows the system to capture the "source" and the "node" for chain seal markers. There is also a new --reason flag to restatectl log seal to specify the reason, and the reason + the node id will be printed in restatectl logs describe <id> output.


Stack created with Sapling. Best reviewed with ReviewStack.

Copy link

github-actions bot commented Jul 29, 2025

Test Results

  7 files  ±0    7 suites  ±0   2m 59s ⏱️ - 2m 9s
 54 tests ±0   53 ✅ ±0  1 💤 ±0  0 ❌ ±0 
223 runs  ±0  220 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit 0cbb10f. ± Comparison against base commit e67c936.

♻️ This comment has been updated with latest results.

@AhmedSoliman AhmedSoliman requested a review from pcholakov July 29, 2025 15:19
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

LGTM. +1 for merging :-)

Copy link
Contributor

@pcholakov pcholakov left a comment

Choose a reason for hiding this comment

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

Very nice addition, thank you @AhmedSoliman!

The PR introduces two changes:
- `Bifrost::find_tail()` will only attempt to seal the chain if FindTailOpts asks for consistent result; we don't need to cripple the fast path for find-tail.
- Find tail will eagerly seal the chain without grace period. This is to avoid unnecessary startup delays for single-node setups.

The fact that chain sealing is idempotent makes it lighterweight to perform as it'll coalesce nicely with other reconfigurations that might be happening concurrently.
Allows the system to capture the "source" and the "node" for chain seal markers. There is also a new `--reason` flag to `restatectl log seal` to specify the reason, and the reason + the node id will be printed in `restatectl logs describe <id>` output.
@AhmedSoliman AhmedSoliman merged commit 0cbb10f into main Jul 30, 2025
27 checks passed
@AhmedSoliman AhmedSoliman deleted the pr3596 branch July 30, 2025 14:27
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants