You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2016/08/24 00:35:20 UTC

[jira] [Commented] (KUDU-1074) KuduClient::ListTables() does not retry

    [ https://issues.apache.org/jira/browse/KUDU-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433943#comment-15433943 ] 

Todd Lipcon commented on KUDU-1074:
-----------------------------------

[~adar] since this uses SyncLeaderMasterRPC, this should be fixed now, right?

> KuduClient::ListTables() does not retry
> ---------------------------------------
>
>                 Key: KUDU-1074
>                 URL: https://issues.apache.org/jira/browse/KUDU-1074
>             Project: Kudu
>          Issue Type: Bug
>          Components: client
>    Affects Versions: Feature Complete
>            Reporter: Mike Percy
>            Assignee: Mike Percy
>            Priority: Minor
>
> I am running into an issue in the test environment where KuduClient::ListTables is returning me a ServiceUnavailable error.
> In the test environment, it looks like this: if an ExternalMiniCluster is started, and then TestWorkload::Setup() is immediately called, there is a race between the master completing startup and marking itself as leader (even with LocalConsensus) and the call by TestWorkload to check if the table it's about to create exists. If the Master is in the middle of starting up then we get an error that looks like this, because ListTables() doesn't retry up to some timeout.
> {noformat}
> F0826 21:17:02.727133  3067 test_workload.cc:144] Check failed: _s.ok() Bad status: Service unavailable: Leader not yet ready to serve requests
> *** Check failure stack trace: ***
>     @           0x5bd79d  google::LogMessage::Fail() at /data1/jenkins-workspace/kudu-gerrit/BUILD_TYPE/RELEASE/label/kudu-gerrit-slaves/thirdparty/glog-0.3.3/src/logging.cc:1458
>     @           0x5c1c7d  google::LogMessage::SendToLog() at /data1/jenkins-workspace/kudu-gerrit/BUILD_TYPE/RELEASE/label/kudu-gerrit-slaves/thirdparty/glog-0.3.3/src/logging.cc:1412
>     @           0x5bfaeb  google::LogMessage::Flush() at /data1/jenkins-workspace/kudu-gerrit/BUILD_TYPE/RELEASE/label/kudu-gerrit-slaves/thirdparty/glog-0.3.3/src/logging.cc:1282
>     @           0x5bfe11  google::LogMessageFatal::~LogMessageFatal() at /data1/jenkins-workspace/kudu-gerrit/BUILD_TYPE/RELEASE/label/kudu-gerrit-slaves/thirdparty/glog-0.3.3/src/logging.cc:1985
>     @           0x5ba747  kudu::TestWorkload::Setup() at /data1/jenkins-workspace/kudu-gerrit/BUILD_TYPE/RELEASE/label/kudu-gerrit-slaves/src/kudu/integration-tests/test_workload.cc:141
>     @           0x5905a7  kudu::DeleteTableTest_TestDeleteTableWithConcurrentWrites_Test::TestBody() at /data1/jenkins-workspace/kudu-gerrit/BUILD_TYPE/RELEASE/label/kudu-gerrit-slaves/src/kudu/integration-tests/delete_table-test.cc:313
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)