Tinykv2b shutdown is stuck

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tinykv2b shutdown被卡住

| username: TiDBer_QCAkzObI

When running 2b, n.system.shutDown() is called in raftstore/node.go

After closeCh is closed, select should be able to go through this path

However, the actual situation is that it gets stuck in an infinite loop

I hope the experts can provide some guidance.

| username: IoCing | Original post link

I encountered something similar before. Check the callback handling process, and discard any unused callbacks. There’s no need to respond. I got stuck before because I responded to an error.

| username: sunznx | Original post link

I replied in the group, updating here:

The situation when I encountered this problem myself was: the region information was not updated or updated incorrectly during confchange.

Solution:
First, write a minimal reproducible TestCase, then debug it slowly.
I did:
remove 2
add 2
remove 2
then sleep for 10 seconds
and it can be reproduced.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.