apache / kvrocks

Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.
https://kvrocks.apache.org/
Apache License 2.0
3.57k stars 467 forks source link

Abort due to detaching un-joinable threads in slotmigrate_test #1123

Closed PragmaTwice closed 1 year ago

PragmaTwice commented 1 year ago

Search before asking

Version

unstable

Minimal reproduce step

https://github.com/apache/incubator-kvrocks/actions/runs/3467209459/jobs/5791922270

What did you expect to see?

PASS

What did you see instead?

--- FAIL: TestSlotMigrateFromSlave (2.18s)
    server.go:106: 
            Error Trace:    /home/runner/work/incubator-kvrocks/incubator-kvrocks/tests/gocase/integration/slotmigrate/server.go:106
                                        /home/runner/work/incubator-kvrocks/incubator-kvrocks/tests/gocase/integration/slotmigrate/server.go:112
                                        /home/runner/work/incubator-kvrocks/incubator-kvrocks/tests/gocase/integration/slotmigrate/server.go:101
                                        /home/runner/work/incubator-kvrocks/incubator-kvrocks/tests/gocase/integration/slotmigrate/slotmigrate_test.go:47
                                        /home/runner/work/incubator-kvrocks/incubator-kvrocks/tests/gocase/integration/slotmigrate/slotmigrate_test.go:65
            Error:          Received unexpected error:
                            signal: aborted (core dumped)
            Test:           TestSlotMigrateFromSlave
FAIL
E20221115 04:06:34.430215 38266 main.cc:67] ======= Ooops! kvrocks 999.999.999 @7fb3d64 got signal: Aborted (6) =======
E20221115 04:06:34.439514 38266 main.cc:85] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420) [0x7f64354c0420]
E20221115 04:06:34.439740 38266 main.cc:83] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb) [0x7f64351ae00b]                                   gsignal
E20221115 04:06:34.439891 38266 main.cc:83] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b) [0x7f643518d859]                                    abort
E20221115 04:06:34.440196 38266 main.cc:83] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0xe89a9) [0x5557203199a9]   _ZN9__gnu_cxx27__verbose_terminate_handlerEv.cold
E20221115 04:06:34.441274 38266 main.cc:83] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0x9199bc) [0x555720b4a9bc]  __cxxabiv1::__terminate()
E20221115 04:06:34.442413 38266 main.cc:85] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0x919a27) [0x555720b4aa27]
E20221115 04:06:34.443441 38266 main.cc:85] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0x919b89) [0x555720b4ab89]
E20221115 04:06:34.443967 38266 main.cc:83] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0xea6a0) [0x55572031b6a0]   std::__throw_system_error()
E20221115 04:06:34.444846 38266 main.cc:83] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0x99e4f0) [0x555720bcf4f0]  std::thread::detach()
E20221115 04:06:34.445474 38266 main.cc:83] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0x12a8a1) [0x55572035b8a1]  ReplicationThread::Stop()
E20221115 04:06:34.446453 38266 main.cc:83] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0x1ec8cf) [0x55572041d8cf]  Server::Stop()
E20221115 04:06:34.446888 38266 main.cc:83] /home/runner/work/incubator-kvrocks/incubator-kvrocks/build/kvrocks(+0x26aec8) [0x55572049bec8]  signalHandler
E20221115 04:06:34.447082 38266 main.cc:85] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420) [0x7f64354c0420]
E20221115 04:06:34.447254 38266 main.cc:83] /lib/x86_64-linux-gnu/libc.so.6(clone+0x35) [0x7f643528a[125](https://github.com/apache/incubator-kvrocks/actions/runs/3467209459/jobs/5791922270#step:13:126)]                                     clone

Anything Else?

No response

Are you willing to submit a PR?

PragmaTwice commented 1 year ago

Fixed in #1195.