hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andras Bokor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10270) TestJMXGet:testNameNode() fails
Date Fri, 08 Apr 2016 08:33:25 GMT

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

Andras Bokor commented on HDFS-10270:
-------------------------------------

I found that it fails when I run the two tests together so testDataNode() runs before testNameNode().
If I run only testNameNode or I change the order the tests pass.

I debugged a bit the failed run. It opens two RPC connections but later on it closes one of
them in Server class doRead(SelectionKey key) method:
{code}
  if (count < 0) {
    closeConnection(c);
    c = null;
  }
{code}

Here the count is -1. We get -1 in Server:channelRead(ReadableByteChannel channel, ByteBuffer
buffer) method:
{code}
int count = (buffer.remaining() <= NIO_BUFFER_LIMIT) ?
                channel.read(buffer) : channelIO(channel, null, buffer);
{code}
In this condition the true branch will run.

Can somebody help us on this?

> TestJMXGet:testNameNode() fails
> -------------------------------
>
>                 Key: HDFS-10270
>                 URL: https://issues.apache.org/jira/browse/HDFS-10270
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Andras Bokor
>            Priority: Minor
>         Attachments: TestJMXGet.log, TestJMXGetFails.log
>
>
> It fails with java.util.concurrent.TimeoutException. Actually the problem here is that
we expect 2 as NumOpenConnections metric but it is only 1. So the test waits 60 sec then fails.
> Please find maven output so the stack trace attached ([^TestJMXGetFails.log]).



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

Mime
View raw message