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

meta crash after create space #3624

Closed
HarrisChu opened this issue Jan 4, 2022 · 2 comments · Fixed by #3660
Closed

meta crash after create space #3624

HarrisChu opened this issue Jan 4, 2022 · 2 comments · Fixed by #3660
Assignees
Labels
priority/hi-pri Priority: high type/bug Type: something is unexpected
Milestone

Comments

@HarrisChu
Copy link
Contributor

steps:

  1. add hosts into 3 zones, z1,z2,z3.
  2. stop storage in zone z3
  3. CREATE SPACE space1(vid_type=int, replica_factor=3, partition_num=10) on "z1","z2","z3"

expect result:
"Invalid param!" error

actual result:
"Leader changed!"

and then I found the meta is crashed.

(gdb) bt
#0  0x00007ffbc7031387 in raise () from /lib64/libc.so.6
#1  0x00007ffbc7032a78 in abort () from /lib64/libc.so.6
#2  0x000000000244a9ba in google::LogMessage::Fail() ()
#3  0x000000000244dab4 in google::LogMessage::SendToLog() ()
#4  0x000000000244a489 in google::LogMessage::Flush() ()
#5  0x000000000244e169 in google::LogMessageFatal::~LogMessageFatal() ()
#6  0x0000000001105d8d in _ZNR6nebula8EitherOrINS_4cpp29ErrorCodeENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE5rightEv ()
#7  0x000000000110caa3 in nebula::meta::CreateSpaceProcessor::process(nebula::meta::cpp2::CreateSpaceReq const&) ()
#8  0x00000000010d23a0 in nebula::meta::MetaServiceHandler::future_createSpace(nebula::meta::cpp2::CreateSpaceReq const&) ()
#9  0x00000000016bcfef in nebula::meta::cpp2::MetaServiceSvIf::async_tm_createSpace(std::unique_ptr<apache::thrift::HandlerCallback<nebula::meta::cpp2::ExecResp>, std::default_delete<apache::thrift::HandlerCallback<nebula::meta::cpp2::ExecResp> > >, nebula::meta::cpp2::CreateSpaceReq const&) ()
#10 0x00000000017751ef in void nebula::meta::cpp2::MetaServiceAsyncProcessor::process_createSpace<apache::thrift::CompactProtocolReader, apache::thrift::CompactProtocolWriter>(std::unique_ptr<apache::thrift::ResponseChannelRequest, apache::thrift::RequestsRegistry::Deleter>, apache::thrift::SerializedCompressedRequest&&, apache::thrift::Cpp2RequestContext*, folly::EventBase*, apache::thrift::concurrency::ThreadManager*) ()
#11 0x00000000016cfa03 in apache::thrift::RequestTask<nebula::meta::cpp2::MetaServiceAsyncProcessor>::run() ()
#12 0x0000000001fa0ba7 in virtual thunk to apache::thrift::concurrency::FunctionRunner::run() ()
#13 0x00000000020fe868 in apache::thrift::concurrency::ThreadManager::Impl::Worker::run() ()
#14 0x000000000210096e in apache::thrift::concurrency::PthreadThread::threadMain(void*) ()
#15 0x00007ffbc73d0ea5 in start_thread () from /lib64/libpthread.so.0
@HarrisChu HarrisChu added type/bug Type: something is unexpected priority/hi-pri Priority: high labels Jan 4, 2022
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Jan 4, 2022
@darionyaphet
Copy link
Contributor

It seems to be caused by this problem Add more check about parse host result But I don't test the leader change case...

@HarrisChu
Copy link
Contributor Author

still has this issue.

steps:

  1. 3 metad,and no add hosts
  2. execute ADD HOSTS 127.0.0.1:13788; CREATE SPACE test(vid_type=int, replica_factor=1, partition_num=10)
  3. meta crash
    https://github.com/vesoft-inc/nebula/runs/4714314642?check_suite_focus=true

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/hi-pri Priority: high type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants