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

Tablet splitting: Crash during generating TSHeartbeat report after split #7397

Closed
bmatican opened this issue Feb 26, 2021 · 0 comments
Closed
Assignees
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/high High Priority

Comments

@bmatican
Copy link
Contributor

Program terminated with signal 11, Segmentation fault.
#0  yb::tserver::TSTabletManager::GenerateTabletReport (this=0x182c880, report=report@entry=0x32944e0, include_bootstrap=include_bootstrap@entry=true) at ../../src/yb/tserver/ts_tablet_manager.cc:1972
1972	../../src/yb/tserver/ts_tablet_manager.cc: No such file or directory.
(gdb) bt
#0  yb::tserver::TSTabletManager::GenerateTabletReport (this=0x182c880, report=report@entry=0x32944e0, include_bootstrap=include_bootstrap@entry=true) at ../../src/yb/tserver/ts_tablet_manager.cc:1972
#1  0x00007f556c97b99d in yb::tserver::Heartbeater::Thread::TryHeartbeat (this=this@entry=0x14cc900) at ../../src/yb/tserver/heartbeater.cc:369
#2  0x00007f556c97d1c3 in yb::tserver::Heartbeater::Thread::DoHeartbeat (this=this@entry=0x14cc900) at ../../src/yb/tserver/heartbeater.cc:520
#3  0x00007f556c97d595 in yb::tserver::Heartbeater::Thread::RunThread (this=0x14cc900) at ../../src/yb/tserver/heartbeater.cc:566
#4  0x00007f5562599cff in operator() (this=0x1a28718) at /home/yugabyte/yb-software/yugabyte-2.5.2.0-b104-centos-x86_64/linuxbrew-xxxxxxxxxxxx/Cellar/gcc/5.5.0_4/include/c++/5.5.0/functional:2267
#5  yb::Thread::SuperviseThread (arg=0x1a286c0) at ../../src/yb/util/thread.cc:771
#6  0x00007f555dcb5694 in start_thread (arg=0x7f554f516700) at pthread_create.c:333
#7  0x00007f555d3f241d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

If I understand correctly, we're just not using tablet_peer->shared_tablet() ?

cc @ttyusupov @robertsami

@bmatican bmatican added area/docdb YugabyteDB core features priority/high High Priority labels Feb 26, 2021
mikhpolitov added a commit that referenced this issue Mar 4, 2021
…after split

Summary: Use shared_ptr and check its value to aviod crash during generating TSHeartbeat report after split

Test Plan: ybd --cxx-test tablet-split-itest -n 100 -- -p 2

Reviewers: timur, bogdan

Reviewed By: bogdan

Subscribers: ybase

Differential Revision: https://phabricator.dev.yugabyte.com/D10765
mikhpolitov added a commit that referenced this issue Mar 5, 2021
…artbeat report after split

Summary:
Use shared_ptr and check its value to aviod crash during generating TSHeartbeat report after split
Original commit: D10765 / 90e3e46

Test Plan: Jenkins: rebase: 2.4

Reviewers: timur, bogdan

Reviewed By: bogdan

Subscribers: ybase

Differential Revision: https://phabricator.dev.yugabyte.com/D10805
polarweasel pushed a commit to lizayugabyte/yugabyte-db that referenced this issue Mar 9, 2021
… report after split

Summary: Use shared_ptr and check its value to aviod crash during generating TSHeartbeat report after split

Test Plan: ybd --cxx-test tablet-split-itest -n 100 -- -p 2

Reviewers: timur, bogdan

Reviewed By: bogdan

Subscribers: ybase

Differential Revision: https://phabricator.dev.yugabyte.com/D10765
@ttyusupov ttyusupov added the kind/bug This issue is a bug label Jul 29, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features kind/bug This issue is a bug priority/high High Priority
Projects
None yet
Development

No branches or pull requests

3 participants