You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2008/03/07 22:43:46 UTC
[jira] Created: (HADOOP-2971) SocketTimeoutException in unit tests
SocketTimeoutException in unit tests
------------------------------------
Key: HADOOP-2971
URL: https://issues.apache.org/jira/browse/HADOOP-2971
Project: Hadoop Core
Issue Type: Bug
Components: io
Affects Versions: 0.17.0
Reporter: Raghu Angadi
Assignee: Raghu Angadi
TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
{noformat}
2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at java.io.DataInputStream.readInt(DataInputStream.java:370)
at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
at java.lang.Thread.run(Thread.java:619)
{noformat}
This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2971) SocketTimeoutException in unit tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi updated HADOOP-2971:
---------------------------------
Attachment: HADOOP-2971.patch
minor modification to patch.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2971) SocketTimeoutException in unit
tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577294#action_12577294 ]
Raghu Angadi commented on HADOOP-2971:
--------------------------------------
The fixes some of the sporadically failing tests.
Regd the core tests failed, I can't trace them to bug here but this might improve anyway.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Fix For: 0.17.0
>
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (HADOOP-2971) SocketTimeoutException
in unit tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576465#action_12576465 ]
rangadi edited comment on HADOOP-2971 at 3/7/08 5:35 PM:
--------------------------------------------------------------
I thought I could avoid calling System.currentTimeMillis() while waiting and depend on select(). Tough luck.
The attached patch polls in a loop until timeout passes. Also removes a large block for setting "channeStr". we use channel.toString() instead.
was (Author: rangadi):
I thought I could avoid calling System.currentTimeMillis() while waiting and depend on select(). Tough luck.
The attached patch polls in a loop until timeout passes. Also remove a large block for setting "channeStr" and use use channel.toString() instead.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Attachments: HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2971) SocketTimeoutException in unit tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi updated HADOOP-2971:
---------------------------------
Attachment: HADOOP-2971.patch
I thought I could avoid calling System.currentTimeMillis() while waiting and depend on select(). Tough luck.
The attached patch polls in a loop until timeout passes. Also remove a large block for setting "channeStr" and use use channel.toString() instead.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Attachments: HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2971) SocketTimeoutException in unit
tests
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577826#action_12577826 ]
Hudson commented on HADOOP-2971:
--------------------------------
Integrated in Hadoop-trunk #426 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/426/])
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Fix For: 0.17.0
>
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2971) SocketTimeoutException in unit
tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577228#action_12577228 ]
Raghu Angadi commented on HADOOP-2971:
--------------------------------------
Still waiting for Hudson blessings. Please apply this patch if you are seeing random unit test failures before investigating further.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Fix For: 0.17.0
>
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2971) SocketTimeoutException in unit tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi updated HADOOP-2971:
---------------------------------
Fix Version/s: 0.17.0
Status: Patch Available (was: Open)
Thanks Nicholas.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Fix For: 0.17.0
>
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2971) SocketTimeoutException in unit
tests
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577290#action_12577290 ]
Hadoop QA commented on HADOOP-2971:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12377535/HADOOP-2971.patch
against trunk revision 619744.
@author +1. The patch does not contain any @author tags.
tests included -1. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.
javadoc +1. The javadoc tool did not generate any warning messages.
javac +1. The applied patch does not generate any new javac compiler warnings.
release audit +1. The applied patch does not generate any new release audit warnings.
findbugs +1. The patch does not introduce any new Findbugs warnings.
core tests -1. The patch failed core unit tests.
contrib tests +1. The patch passed contrib unit tests.
Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1931/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1931/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1931/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/1931/console
This message is automatically generated.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Fix For: 0.17.0
>
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2971) SocketTimeoutException in unit tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raghu Angadi updated HADOOP-2971:
---------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I just committed this.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Fix For: 0.17.0
>
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2971) SocketTimeoutException in unit
tests
Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576460#action_12576460 ]
Raghu Angadi commented on HADOOP-2971:
--------------------------------------
I am willing to bet that for random reasons Java select() returns 0, irrespective of timeout. So we need to keep track how long we have waited. Oddly, when the test passes, there are no instances of these. But when the test fails, there are lot of instances of this.
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2971) SocketTimeoutException in unit
tests
Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577096#action_12577096 ]
Tsz Wo (Nicholas), SZE commented on HADOOP-2971:
------------------------------------------------
+1 codes look good
> SocketTimeoutException in unit tests
> ------------------------------------
>
> Key: HADOOP-2971
> URL: https://issues.apache.org/jira/browse/HADOOP-2971
> Project: Hadoop Core
> Issue Type: Bug
> Components: io
> Affects Versions: 0.17.0
> Reporter: Raghu Angadi
> Assignee: Raghu Angadi
> Attachments: HADOOP-2971.patch, HADOOP-2971.patch
>
>
> TestJobStatusPersistency failed and contained DataNode stacktraces similar to the following :
> {noformat}
> 2008-03-07 21:27:00,410 ERROR dfs.DataNode (DataNode.java:run(976)) - 127.0.0.1:57790:DataXceiver: java.net.SocketTimeoutException: 0 millis
> timeout while waiting for Unknown Addr (local: /127.0.0.1:57790) to be ready for read
> at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:188)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:135)
> at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:121)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> at java.io.DataInputStream.readInt(DataInputStream.java:370)
> at org.apache.hadoop.dfs.DataNode$BlockReceiver.receiveBlock(DataNode.java:2434)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.writeBlock(DataNode.java:1170)
> at org.apache.hadoop.dfs.DataNode$DataXceiver.run(DataNode.java:953)
> at java.lang.Thread.run(Thread.java:619)
> {noformat}
> This is mostly related to HADOOP-2346. The error is strange. socket.getRemoteSocketAddress() returned null implying this socket is not connected yet. But we have already read a few bytes from it!.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.