Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/worker/registration: Clear deregister flag when deregistered #4580

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

Yawning
Copy link
Contributor

@Yawning Yawning commented Mar 21, 2022

When gracefully halting the node after the node's registration
expires, to ensure that the deregistration and shutdown occurs,
the node will persist the fact that it is mid-shutdown in a flag.

Previously, this flag had to be cleared manually by the node operator
which, while serving to ensure that the node does not get restarted
and re-register, is sub-optimal as it required manual intervention.

Instead, if the node is deregistered cleanly, we will clear the flag
under the assumption that the operator can configure whatever
automation they are using to do the right thing.

@Yawning Yawning force-pushed the yawning/fix/shutdown-status branch from ab716a3 to 8fc0c73 Compare March 21, 2022 08:12
When gracefully halting the node after the node's registration
expires, to ensure that the deregistration and shutdown occurs,
the node will persist the fact that it is mid-shutdown in a flag.

Previously, this flag had to be cleared manually by the node operator
which, while serving to ensure that the node does not get restarted
and re-register, is sub-optimal as it required manual intervention.

Instead, if the node is deregistered cleanly, we will clear the flag
under the assumption that the operator can configure whatever
automation they are using to do the right thing.
@Yawning Yawning force-pushed the yawning/fix/shutdown-status branch from fbb08de to afabfc6 Compare March 21, 2022 09:33
@Yawning Yawning marked this pull request as ready for review March 21, 2022 09:36
@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #4580 (afabfc6) into master (e7d18c1) will decrease coverage by 0.22%.
The diff coverage is 20.75%.

@@            Coverage Diff             @@
##           master    #4580      +/-   ##
==========================================
- Coverage   67.08%   66.86%   -0.23%     
==========================================
  Files         424      424              
  Lines       48030    48069      +39     
==========================================
- Hits        32223    32141      -82     
- Misses      11882    11982     +100     
- Partials     3925     3946      +21     
Impacted Files Coverage Δ
go/oasis-node/cmd/control/control.go 19.23% <2.94%> (-4.54%) ⬇️
go/worker/registration/worker.go 67.18% <52.63%> (-0.53%) ⬇️
...onsensus/tendermint/apps/beacon/state/state_vrf.go 73.33% <0.00%> (-13.34%) ⬇️
go/consensus/tendermint/abci/state/state.go 61.53% <0.00%> (-7.70%) ⬇️
go/worker/beacon/tx_retry.go 90.47% <0.00%> (-4.77%) ⬇️
go/consensus/tendermint/apps/beacon/state/state.go 68.81% <0.00%> (-4.31%) ⬇️
go/consensus/tendermint/apps/beacon/beacon.go 70.49% <0.00%> (-3.28%) ⬇️
go/runtime/txpool/txpool.go 76.61% <0.00%> (-3.24%) ⬇️
go/common/grpc/grpc.go 81.95% <0.00%> (-2.96%) ⬇️
go/runtime/nodes/nodes.go 84.09% <0.00%> (-2.28%) ⬇️
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c16d9eb...afabfc6. Read the comment docs.

@Yawning Yawning merged commit aac71d6 into master Mar 21, 2022
@Yawning Yawning deleted the yawning/fix/shutdown-status branch March 21, 2022 10:18
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.

None yet

2 participants