Skip to content

[DocDB][SQLsmith] ERROR: errstart was not called / Already marked as completed #11066

@def-

Description

@def-

Description

Code state: 518246e (January 11)
Reproduced with:

bin/yugabyted start
bin/ysqlsh
CREATE DATABASE yb_demo;
\c yb_demo
\i 'sample/schema.sql';
select
  ref_0.tmplinline as c0
from
  pg_catalog.pg_pltemplate as ref_0
where ref_0.tmplname !~ ref_0.tmplhandler
limit 77
 for share;

This unexpectedly fails with ERROR: errstart was not called. A new FATAL master log file is written containing:

F20220112 16:58:04 ../../src/yb/rpc/inbound_call.cc:168] 0x0000000116e7d0d8 -> Call yb.tserver.TabletServerService.Read 127.0.0.1:50463 => 127.0.0.1:7100 (request call id 929): Already marked as completed
    @        0x106ab9894  google::LogDestination::LogToSinks()
    @        0x106ab89cc  google::LogMessage::SendToLog()
    @        0x106ab9388  google::LogMessage::Flush()
    @        0x106ab919c  google::LogMessage::~LogMessage()
    @        0x11276a620  yb::rpc::InboundCall::RecordHandlingCompleted()
    @        0x112829114  yb::rpc::RpcContext::RespondSuccess()
    @        0x105454438  yb::tserver::SetupErrorAndRespond()
    @        0x1054546a4  yb::tserver::SetupErrorAndRespond()
    @        0x10550dbd0  yb::tserver::ReadOperationCompletionCallback::operator()()
    @        0x10550db48  _ZNSt3__1L8__invokeIRN2yb7tserver31ReadOperationCompletionCallbackEJRKNS1_6StatusEEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOS8_DpOS9_
    @        0x10550dae4  std::__1::__invoke_void_return_wrapper<>::__call<>()
    @        0x10550daa4  std::__1::__function::__alloc_func<>::operator()()
    @        0x10550c610  std::__1::__function::__func<>::operator()()
    @        0x10550e260  std::__1::__function::__value_func<>::operator()()
    @        0x1054b7b44  std::__1::function<>::operator()()
    @        0x10a850968  yb::tablet::WriteQuery::Complete()
    @        0x10a850244  yb::tablet::WriteQuery::Cancel()
    @        0x10a84ffa4  yb::tablet::WriteQuery::DoStartSynchronization()
    @        0x10a5c669c  yb::tablet::WriteQuery::StartSynchronization()
    @        0x10a850b10  yb::tablet::WriteQuery::SimpleExecuteDone()
    @        0x10a8509fc  yb::tablet::WriteQuery::ExecuteDone()
    @        0x10a853df8  yb::tablet::WriteQuery::Execute()
    @        0x10a5c6508  yb::tablet::Tablet::AcquireLocksAndPerformDocOperations()
    @        0x10a6941d0  yb::tablet::TabletPeer::WriteAsync()
    @        0x1054b4684  yb::tserver::TabletServiceImpl::Read()
    @        0x109715378  _ZZZN2yb7tserver21TabletServerServiceIf11InitMethodsERK13scoped_refptrINS_12MetricEntityEEENK3$_1clENSt3__110shared_ptrINS_3rpc11InboundCallEEEENKUlPKNS0_13ReadRequestPBEPNS0_14ReadResponsePBENSA_10RpcContextEE_clESF_SH_SI_
    @        0x109715128  _ZN2yb3rpc10HandleCallINS0_19RpcCallPBParamsImplINS_7tserver13ReadRequestPBENS3_14ReadResponsePBEEEZZNS3_21TabletServerServiceIf11InitMethodsERK13scoped_refptrINS_12MetricEntityEEENK3$_1clENSt3__110shared_ptrINS0_11InboundCallEEEEUlPKS4_PS5_NS0_10RpcContextEE_EEDaSH_T0_
    @        0x109714e40  yb::tserver::TabletServerServiceIf::InitMethods()::$_1::operator()()
    @        0x109714d84  _ZNSt3__1L8__invokeIRZN2yb7tserver21TabletServerServiceIf11InitMethodsERK13scoped_refptrINS1_12MetricEntityEEE3$_1JNS_10shared_ptrINS1_3rpc11InboundCallEEEEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSF_DpOSG_
    @        0x109714d10  std::__1::__invoke_void_return_wrapper<>::__call<>()
    @        0x109714cd0  std::__1::__function::__alloc_func<>::operator()()
    @        0x109713884  std::__1::__function::__func<>::operator()()

For context: The query comes from SQLsmith, I didn't come up on my own.

Metadata

Metadata

Assignees

Labels

area/docdbYugabyteDB core features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions