You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org> on 2011/06/03 02:04:47 UTC

[jira] [Created] (HBASE-3950) IndexOutOfBoundsException reading results

IndexOutOfBoundsException reading results
-----------------------------------------

                 Key: HBASE-3950
                 URL: https://issues.apache.org/jira/browse/HBASE-3950
             Project: HBase
          Issue Type: Bug
            Reporter: Jean-Daniel Cryans
            Priority: Critical


I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.

When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:

{quote}
2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
java.lang.IndexOutOfBoundsException
        at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
        at java.io.DataInputStream.readFully(DataInputStream.java:178)
        at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
        at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
        at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
        at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
        at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
        at sun.nio.ch.IOUtil.read(IOUtil.java:206)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
        at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

{quote}

It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:

{quote}
numKeys 3
0 keyLen 687
0 offset 55551
1 keyLen 127
1 offset 56242
2 keyLen 130
2 offset 56373
numKeys 3
0 keyLen 666
0 offset 56511
1 keyLen 120
1 offset 57181
2 keyLen 123
2 offset 57305
numKeys 1768842863
0 keyLen 1919248233
0 offset 57436
{quote}

Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043355#comment-13043355 ] 

Ted Yu commented on HBASE-3950:
-------------------------------

>From my experience, certain test only fails if complete test suite is run.
I don't know how to trigger tests surrounding the underlying test without running whole suite.

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044189#comment-13044189 ] 

stack commented on HBASE-3950:
------------------------------

I ran into this randomly messing on TRUNK (showed up in shell trying to list tables).  Lets back out 3899 for now, at least until we branch for 0.92.

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043234#comment-13043234 ] 

dhruba borthakur commented on HBASE-3950:
-----------------------------------------

I cannot reproduce this bug on my test machine. Can you produce it reliably? Maybe we should revert HBASE-3899 until the time we can fix it?

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044368#comment-13044368 ] 

stack commented on HBASE-3950:
------------------------------

I backed out hbase-3899 for now.

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043156#comment-13043156 ] 

Jean-Daniel Cryans commented on HBASE-3950:
-------------------------------------------

I looked at all the Jenkins failures for the last 20 days and it seems we started seeing the issue after HBASE-3899 was committed.

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "Lars Hofhansl (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Hofhansl resolved HBASE-3950.
----------------------------------

    Resolution: Fixed

HBASE-3899 was reapplied, so I assume this is fixed now.
                
> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044118#comment-13044118 ] 

Andrew Purtell commented on HBASE-3950:
---------------------------------------

I saw this exception when fiddling with the HBASE-3899 patch but thought I had misapplied it (did it by hand, and it clobbered our secure RPC changes, though I did try nonsecure).

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043225#comment-13043225 ] 

dhruba borthakur commented on HBASE-3950:
-----------------------------------------

I am taking a look at this one.

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043153#comment-13043153 ] 

Jean-Daniel Cryans commented on HBASE-3950:
-------------------------------------------

TestHFileOutputFormat failed yesterday and it has the same stack trace: 

https://builds.apache.org/job/HBase-TRUNK/1948/artifact/trunk/target/surefire-reports/org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat-output.txt/*view*/

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3950) IndexOutOfBoundsException reading results

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044106#comment-13044106 ] 

Jean-Daniel Cryans commented on HBASE-3950:
-------------------------------------------

I can make TestFromClientSide fail 50% of the time when running it alone but on two different machines it fails on two different test; always the same tests, with the same IndexOutOfBoundsException.

I think we should revert HBASE-3899 until this is figured out.

> IndexOutOfBoundsException reading results
> -----------------------------------------
>
>                 Key: HBASE-3950
>                 URL: https://issues.apache.org/jira/browse/HBASE-3950
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Priority: Critical
>
> I discovered this while testing out HBASE-3789, I can recreate this bug without my patch.
> When running TestFromClient, I get failures in testListTables and testJiraTest867. The assertion error is on a number mismatch, but when you look at the log you see:
> {quote}
> 2011-06-02 16:51:24,602 WARN  [IPC Client (47) connection to hbasedev/10.10.1.177:56606 from an unknown user] ipc.HBaseClient$Connection(489): Unexpected exception receiving call responses
> java.lang.IndexOutOfBoundsException
>         at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
>         at java.io.DataInputStream.readFully(DataInputStream.java:178)
>         at org.apache.hadoop.hbase.client.Result.readArray(Result.java:652)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:540)
>         at org.apache.hadoop.hbase.io.HbaseObjectWritable.readFields(HbaseObjectWritable.java:288)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.receiveResponse(HBaseClient.java:563)
>         at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:486)
> 2011-06-02 16:51:24,603 WARN  [IPC Reader 2 on port 56606] ipc.HBaseServer$Listener(600): IPC Server listener on 56606: readAndProcess threw exception java.io.IOException: Connection reset by peer. Count of bytes read: 0
> java.io.IOException: Connection reset by peer
>         at sun.nio.ch.FileDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
>         at org.apache.hadoop.hbase.ipc.HBaseServer.channelRead(HBaseServer.java:1518)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:1001)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:596)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Listener$Reader.run(HBaseServer.java:390)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)
> {quote}
> It's not clear to me how I can debug this, but adding some debug inside Result.readArray shows me that the last ints being read are out of whack:
> {quote}
> numKeys 3
> 0 keyLen 687
> 0 offset 55551
> 1 keyLen 127
> 1 offset 56242
> 2 keyLen 130
> 2 offset 56373
> numKeys 3
> 0 keyLen 666
> 0 offset 56511
> 1 keyLen 120
> 1 offset 57181
> 2 keyLen 123
> 2 offset 57305
> numKeys 1768842863
> 0 keyLen 1919248233
> 0 offset 57436
> {quote}
> Here I'm printing the tail of the reading of an array of Results where each has 3 KVs. As you can see, the last one has a pretty big number of keys and then the keyLen is also completely off. Looking at the server side when writing, I see that the real number of that last keyLen should be 448.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira