You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Konstantin Shvachko (Created) (JIRA)" <ji...@apache.org> on 2011/11/20 21:01:51 UTC
[jira] [Created] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
TestFiDataXceiverServer is failing, not testing OOME
----------------------------------------------------
Key: HDFS-2573
URL: https://issues.apache.org/jira/browse/HDFS-2573
Project: Hadoop HDFS
Issue Type: Bug
Components: data-node, test
Affects Versions: 0.22.0
Reporter: Konstantin Shvachko
Fix For: 0.22.0
TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Boudnik (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Boudnik updated HDFS-2573:
-------------------------------------
Affects Version/s: 0.24.0
Also committed to the trunk
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0, 0.24.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Boudnik (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153864#comment-13153864 ]
Konstantin Boudnik commented on HDFS-2573:
------------------------------------------
I agree with your analysis Konstantin: test works as expected however OOME thrown in threadB isn't getting caught in threadA starting the former.
I have removed all AOP code from the test and manually added OOME throwing to DataXceiver#run method - and see exactly the same behavior.
The only modification I can think of in this case is to throw OOME before new DataXceiver thread is spawned, but this defeats the purpose of the test completely. We can exclude it for now in a hope to find a better solution later or just completely remove it. Either way is fine with me.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Fix For: 0.22.0
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Boudnik (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Boudnik resolved HDFS-2573.
--------------------------------------
Resolution: Fixed
Assignee: Konstantin Boudnik
Hadoop Flags: Reviewed
I have committed it.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Boudnik (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153867#comment-13153867 ]
Konstantin Boudnik commented on HDFS-2573:
------------------------------------------
I think there's a couple of approaches here:
- overwrite {{datanode.threadGroup#uncaughtException}} method
- inject a bit more code {{DataXceiver}} so a listener can be registered and notified when OOME is thrown in {{run()}}.
Both are doable, the latter is a way simpler.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Fix For: 0.22.0
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153912#comment-13153912 ]
Hudson commented on HDFS-2573:
------------------------------
Integrated in Hadoop-Hdfs-22-branch #111 (See [https://builds.apache.org/job/Hadoop-Hdfs-22-branch/111/])
HDFS-2573. TestFiDataXceiverServer is failing, not testing OOME. Contributed by Konstantin Boudnik.
cos : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1204279
Files :
* /hadoop/common/branches/branch-0.22/hdfs/CHANGES.txt
* /hadoop/common/branches/branch-0.22/hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj
* /hadoop/common/branches/branch-0.22/hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/TestFiDataXceiverServer.java
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Boudnik (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153883#comment-13153883 ]
Konstantin Boudnik commented on HDFS-2573:
------------------------------------------
The patch to remove the test has been attached. However, the problem isn't in the test code which is completely appropriate. The problem is in untestable implementation of parts of {{DataXceieverServer}} and that's the one needs fixing, actually.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154855#comment-13154855 ]
Hudson commented on HDFS-2573:
------------------------------
Integrated in Hadoop-Common-trunk-Commit #1310 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1310/])
HDFS-2573. TestFiDataXceiverServer is failing, not testing OOME. Contributed by Konstantin Boudnik.
cos : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1204781
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/TestFiDataXceiverServer.java
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0, 0.24.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Shvachko (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153877#comment-13153877 ]
Konstantin Shvachko commented on HDFS-2573:
-------------------------------------------
I was thinking along these lines, but it's not exactly the use case we were trying to model.
Well, not everything is meant to be tested. Let's remove it.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Fix For: 0.22.0
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155075#comment-13155075 ]
Hudson commented on HDFS-2573:
------------------------------
Integrated in Hadoop-Hdfs-trunk #871 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/871/])
HDFS-2573. TestFiDataXceiverServer is failing, not testing OOME. Contributed by Konstantin Boudnik.
cos : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1204781
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/TestFiDataXceiverServer.java
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0, 0.24.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uma Maheswara Rao G updated HDFS-2573:
--------------------------------------
Attachment: HDFS-2573.patch
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Shvachko (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153885#comment-13153885 ]
Konstantin Shvachko commented on HDFS-2573:
-------------------------------------------
Agreed.
+1 for the patch.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Uma Maheswara Rao G (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154419#comment-13154419 ]
Uma Maheswara Rao G commented on HDFS-2573:
-------------------------------------------
Thanks Cos, for the patch. This needs to be corrected in trunk as well. Here is a patch for trunk.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155119#comment-13155119 ]
Hudson commented on HDFS-2573:
------------------------------
Integrated in Hadoop-Mapreduce-trunk #905 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/905/])
HDFS-2573. TestFiDataXceiverServer is failing, not testing OOME. Contributed by Konstantin Boudnik.
cos : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1204781
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/TestFiDataXceiverServer.java
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0, 0.24.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154832#comment-13154832 ]
Hudson commented on HDFS-2573:
------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #1332 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1332/])
HDFS-2573. TestFiDataXceiverServer is failing, not testing OOME. Contributed by Konstantin Boudnik.
cos : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1204781
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/TestFiDataXceiverServer.java
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0, 0.24.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154852#comment-13154852 ]
Hudson commented on HDFS-2573:
------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #1383 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1383/])
HDFS-2573. TestFiDataXceiverServer is failing, not testing OOME. Contributed by Konstantin Boudnik.
cos : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1204781
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/aop/org/apache/hadoop/hdfs/server/datanode/TestFiDataXceiverServer.java
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0, 0.24.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Boudnik (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Boudnik updated HDFS-2573:
-------------------------------------
Attachment: HDFS-2573.patch
Good riddance.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Boudnik (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154432#comment-13154432 ]
Konstantin Boudnik commented on HDFS-2573:
------------------------------------------
Thanks Uma, I will commit it to the trunk later today
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Boudnik
> Fix For: 0.22.0
>
> Attachments: HDFS-2573.patch, HDFS-2573.patch
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2573) TestFiDataXceiverServer is failing,
not testing OOME
Posted by "Konstantin Shvachko (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153860#comment-13153860 ]
Konstantin Shvachko commented on HDFS-2573:
-------------------------------------------
The test was introduced in HDFS-2451 to test behavior of DataXceiverServer in case OutOfMemoryError is thrown. There were several versions of the test using mocking and aspects. With current version I see that DataXceiverServer.run() does not catch OOME thrown as a fault injection.
What happens here is:
new Daemon(datanode.threadGroup,
new DataXceiver(s, datanode, this)).start();
This creates a new thread, and then invokes DataXceiver.run() with fault injection, which throws OOME as expected. BUT, this is thrown in the new thread, which is different from the thread
DataXceiverServer.run() is in. And the new thread does not catch the exception.
I clearly see dispatchUncaughtException() when I run it in debugger.
I propose to remove the test.
I think we tried as hard as we could, but couldn't reasonably reproduce the scenario.
> TestFiDataXceiverServer is failing, not testing OOME
> ----------------------------------------------------
>
> Key: HDFS-2573
> URL: https://issues.apache.org/jira/browse/HDFS-2573
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: data-node, test
> Affects Versions: 0.22.0
> Reporter: Konstantin Shvachko
> Fix For: 0.22.0
>
>
> TestFiDataXceiverServer is failing occasionally. It turns out also that the test is not testing the desired condition, because OOME is not caught in DataXceiverServer.run()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira