You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Robert Hou (JIRA)" <ji...@apache.org> on 2017/04/03 00:31:41 UTC
[jira] [Commented] (DRILL-5316) C++ Client Crashes When
drillbitsVector.count is 0 after zoo_get_children completed with ZOK
[ https://issues.apache.org/jira/browse/DRILL-5316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952900#comment-15952900 ]
Robert Hou commented on DRILL-5316:
-----------------------------------
How can I verify that the C++ Client crashed?
This is what I have done so far.
1) Set cluster-id in drill-override.conf file to
"____---------alakjdslkfjlskjdflkasdoiweuroiweurHKJQAIUW---------______________ksldjfYIUEWUIkljdsfoIOUOIUjlkjklj-_"
2) reboot Drill
3) Set cluster-id to "rhou1_com.drillbits.com.org"
4) reboot Drill
5) From Windows, connect using Drill Explorer. Set cluster-id to /drill/drillbits1
Drill Explorer pops a window that says:
{code}
An error occurred while communicating with the data source.
ERROR [HY000] [MapR][Drill] (10) Failure occurred while trying to connect to zk=10.10.100.186:5181/drill/drillbits1
ERROR [HY000] [MapR][Drill] (10) Failure occurred while trying to connect to zk=10.10.100.186:5181/drill/drillbits1
{code}
> C++ Client Crashes When drillbitsVector.count is 0 after zoo_get_children completed with ZOK
> --------------------------------------------------------------------------------------------
>
> Key: DRILL-5316
> URL: https://issues.apache.org/jira/browse/DRILL-5316
> Project: Apache Drill
> Issue Type: Bug
> Components: Client - C++
> Reporter: Rob Wu
> Assignee: Chun Chang
> Priority: Critical
> Labels: ready-to-commit
> Fix For: 1.11.0
>
>
> When connecting to drillbit with Zookeeper, occasionally the C++ client would crash without any reason.
> A further look into the code revealed that during this call
> rc=zoo_get_children(p_zh.get(), m_path.c_str(), 0, &drillbitsVector);
> zoo_get_children returns ZOK (0) but drillbitsVector.count is 0.
> This causes drillbits to stay empty and thus
> causes err = zook.getEndPoint(drillbits[drillbits.size() -1], endpoint); to crash
> Size check should be done to prevent this from happening
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)