-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
During shutdown, generate snapshot before closing raft node. #5476
Conversation
This will prevent trySnapshot from trying to send a range to the index range channel before it's closed.
638d06c
to
acfbf8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @manishrjain and @vvbalaji-dgraph)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @martinmr and @vvbalaji-dgraph)
dgraph/cmd/zero/run.go, line 296 at r1 (raw file):
_ = httpListener.Close() // Try to generate a snapshot before the shutdown. st.node.trySnapshot(0)
We could do it after the node.closer and before the store closer, I think. Ask @ashish-goswami .
Ideally, we finish up whatever the node had, and take a snapshot after.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @ashish-goswami, @manishrjain, and @vvbalaji-dgraph)
dgraph/cmd/zero/run.go, line 296 at r1 (raw file):
Previously, manishrjain (Manish R Jain) wrote…
We could do it after the node.closer and before the store closer, I think. Ask @ashish-goswami .
Ideally, we finish up whatever the node had, and take a snapshot after.
Done.
This will prevent trySnapshot from trying to send a range to the index range channel before it's closed.
This will prevent trySnapshot from trying to send a range to the index range channel before it's closed.
…deinc#5476) This will prevent trySnapshot from trying to send a range to the index range channel before it's closed.
This will prevent trySnapshot from trying to send a range to the index
range channel before it's closed.
Fixes DGRAPH-1574
This change is