You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/08/18 23:11:01 UTC

[jira] [Commented] (TRAFODION-2717) DCSMaster can't solve error data send from odbc and hang

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

ASF GitHub Bot commented on TRAFODION-2717:
-------------------------------------------

Github user selvaganesang commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/1209#discussion_r134071493
  
    --- Diff: dcs/src/main/java/org/trafodion/dcs/master/listener/RequestUnknown.java ---
    @@ -76,7 +76,11 @@ ClientData processRequest(ClientData clientData, Socket s) {
                 clientData.hdr = hdr;
             } catch (UnsupportedEncodingException ue){
                 if(LOG.isErrorEnabled())
    -                LOG.error("Exception in RequestUnknown: " + s.getRemoteSocketAddress() + ": " + ue.getMessage() );
    +                LOG.error("UnsupportedEncodingException in RequestUnknown: " + s.getRemoteSocketAddress() + ": " + ue.getMessage(), ue);
    +            cancelConnection = true;
    +        } catch (Exception e){
    --- End diff --
    
    ditto the earlier comment


> DCSMaster can't solve error data send from odbc and hang
> --------------------------------------------------------
>
>                 Key: TRAFODION-2717
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2717
>             Project: Apache Trafodion
>          Issue Type: Bug
>            Reporter: mashengchen
>            Assignee: mashengchen
>
> odbc give a wrong length for dcsmaster when do new byte[length], then throw exception, but not catch it, this lead to client can't get response, and dcsmaster hang.
> 2017-08-09 18:13:57,497, ERROR, org.trafodion.dcs.master.listener.ListenerWorker, Node Number: , CPU: , PID: , Process Name: , , ,Unexpected Exception
> java.nio.BufferUnderflowException
>         at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:151)
>         at org.trafodion.dcs.master.listener.Util.extractString(Util.java:59)
>         at org.trafodion.dcs.master.listener.ConnectionContext.extractFromByteBuffer(ConnectionContext.java:170)
>         at org.trafodion.dcs.master.listener.RequestGetObjectRef.buildConnectReply(RequestGetObjectRef.java:96)
>         at org.trafodion.dcs.master.listener.RequestGetObjectRef.processRequest(RequestGetObjectRef.java:61)
>         at org.trafodion.dcs.master.listener.ListenerWorker.run(ListenerWorker.java:113)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)