Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0C9CE200CC4 for ; Thu, 13 Jul 2017 17:05:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0B80F16C330; Thu, 13 Jul 2017 15:05:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5A31F16C33C for ; Thu, 13 Jul 2017 17:05:04 +0200 (CEST) Received: (qmail 31756 invoked by uid 500); 13 Jul 2017 15:05:03 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 31527 invoked by uid 99); 13 Jul 2017 15:05:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jul 2017 15:05:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E40EF1A026C for ; Thu, 13 Jul 2017 15:05:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fMoYk_KJdkg3 for ; Thu, 13 Jul 2017 15:05:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B5C315F5B8 for ; Thu, 13 Jul 2017 15:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 30A89E0DCF for ; Thu, 13 Jul 2017 15:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 57E2524746 for ; Thu, 13 Jul 2017 15:05:00 +0000 (UTC) Date: Thu, 13 Jul 2017 15:05:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5659) C++ Client (master) behavior is unstable resulting incorrect result or exception in API calls MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 13 Jul 2017 15:05:05 -0000 [ https://issues.apache.org/jira/browse/DRILL-5659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085828#comment-16085828 ] ASF GitHub Bot commented on DRILL-5659: --------------------------------------- GitHub user parthchandra opened a pull request: https://github.com/apache/drill/pull/876 DRILL-5659: Fix error code checking in reading from socket Check if errorcode is set before checking if the error code is EINTR. Also, check for error first thing after making the read_some or write_some calls. This fixes the case when we read (or write) only a part of the data in a call to read from or write to the socket. Tested for the issue on Mac/Centos. Not tested on Windows. Not tested for the case with SASL encryption. You can merge this pull request into a Git repository by running: $ git pull https://github.com/parthchandra/drill DRILL-5659 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/876.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #876 ---- commit 0a29ced81dc935b926e734ea169eb884a2cbe40f Author: Parth Chandra Date: 2017-07-12T21:39:17Z DRILL-5659: Fix error code checking in reading from socket ---- > C++ Client (master) behavior is unstable resulting incorrect result or exception in API calls > --------------------------------------------------------------------------------------------- > > Key: DRILL-5659 > URL: https://issues.apache.org/jira/browse/DRILL-5659 > Project: Apache Drill > Issue Type: Bug > Reporter: Rob Wu > Fix For: 1.11.0 > > Attachments: 1-10cppClient-1.10.0Drillbit-hive.log, 1-10cppClient-1.10.0Drillbit-metadata and catalog test.log, 1-10cppClient-1.9.0Drillbit-dfs.log, 1-10cppClient-1.9.0Drillbit-hive.log, 1-10cppClient-1.9.0Drillbit-metadata and catalog test.log, 1-11cppClient-1.10.0Drillbit-hive.log, 1-11cppClient-1.10.0Drillbit-metadata and catalog test.log, 1-11cppClient-1.9.0Drillbit-dfs.log, 1-11cppClient-1.9.0Drillbit-hive.log, 1-11cppClient-1.9.0Drillbit-metadata and catalog test.log > > > I recently compiled the C++ client (on windows) from master and tested against a 1.9.0 drillbit. The client's behavior does not meet the stable release requirement. > Some API functionalities are broken and should be investigated. > Most noticeable is the getColumns(...) call. It will throw an exception with "Cannot decode getcolumns results" when the number of rows (column records) exceeds a certain number. > I also noticed that: during query execution + data retrieval, if the table is large enough, the result coming back will start to become NULL or empty. > I will see if I can generate some drillclient logs to put in the attachment. > I will also compile and test on other platforms. -- This message was sent by Atlassian JIRA (v6.4.14#64029)