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 "Vlad Rozov (JIRA)" <ji...@apache.org> on 2012/09/06 00:16:08 UTC
[jira] [Created] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Vlad Rozov created HDFS-3892:
--------------------------------
Summary: Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
Key: HDFS-3892
URL: https://issues.apache.org/jira/browse/HDFS-3892
Project: Hadoop HDFS
Issue Type: Bug
Components: test
Affects Versions: 2.0.0-alpha
Reporter: Vlad Rozov
Priority: Minor
MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451261#comment-13451261 ]
Hadoop QA commented on HDFS-3892:
---------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12544342/HDFS-3892.patch.1
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 16 new or modified test files.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
+1 core tests. The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs.
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/3161//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/3161//console
This message is automatically generated.
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Assignee: Vlad Rozov
> Priority: Minor
> Fix For: 2.0.0-alpha
>
> Attachments: HDFS-3892.patch, HDFS-3892.patch.1
>
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Steve Loughran (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450606#comment-13450606 ]
Steve Loughran commented on HDFS-3892:
--------------------------------------
This is a regression w.r.t Hadoop 1.0 which does let you create >1 MiniDFSCluster in the same JVM
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Priority: Minor
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] [Assigned] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas reassigned HDFS-3892:
-------------------------------------
Assignee: Vlad Rozov
Vlad, added you as a contributor and assigned the jira to you.
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Assignee: Vlad Rozov
> Priority: Minor
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451233#comment-13451233 ]
Hadoop QA commented on HDFS-3892:
---------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12544337/HDFS-3892.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 16 new or modified test files.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these unit tests in hadoop-hdfs-project/hadoop-hdfs:
org.apache.hadoop.hdfs.TestReplication
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/3160//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/3160//console
This message is automatically generated.
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Assignee: Vlad Rozov
> Priority: Minor
> Fix For: 2.0.0-alpha
>
> Attachments: HDFS-3892.patch
>
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] [Updated] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Vlad Rozov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vlad Rozov updated HDFS-3892:
-----------------------------
Attachment: HDFS-3892.patch.1
Fix for NPE in TestReplication
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Assignee: Vlad Rozov
> Priority: Minor
> Fix For: 2.0.0-alpha
>
> Attachments: HDFS-3892.patch, HDFS-3892.patch.1
>
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Vlad Rozov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450672#comment-13450672 ]
Vlad Rozov commented on HDFS-3892:
----------------------------------
One of the tests that instantiate a second instance of MiniDFSCluster invalidating storage directory for the first one is TestHDFSTrash. This test succeed only if testTrash() runs before testTrashEnabledClientSide()or testTrashEnabledServerSide(). I'll file a separate bug once I fix this one. Please assign HDFS-3892 to me.
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Priority: Minor
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450619#comment-13450619 ]
Suresh Srinivas commented on HDFS-3892:
---------------------------------------
bq. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
Since you have already done this analysis, can you please add information about the tests that are creating multiple MiniDFSClusters.
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Priority: Minor
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] [Updated] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Vlad Rozov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vlad Rozov updated HDFS-3892:
-----------------------------
Fix Version/s: 2.0.0-alpha
Status: Patch Available (was: Open)
The patch affects public API of MiniDFSCluster class. I verified that HDFS tests compile and run. In case tests in other sub-projects also depend on modified API they need to be patched as well.
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Assignee: Vlad Rozov
> Priority: Minor
> Fix For: 2.0.0-alpha
>
> Attachments: HDFS-3892.patch
>
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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] [Updated] (HDFS-3892) Few static methods of MiniDFSCluster
class incorrectly assume that it is a singleton
Posted by "Vlad Rozov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vlad Rozov updated HDFS-3892:
-----------------------------
Attachment: HDFS-3892.patch
> Few static methods of MiniDFSCluster class incorrectly assume that it is a singleton
> ------------------------------------------------------------------------------------
>
> Key: HDFS-3892
> URL: https://issues.apache.org/jira/browse/HDFS-3892
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Affects Versions: 2.0.0-alpha
> Reporter: Vlad Rozov
> Assignee: Vlad Rozov
> Priority: Minor
> Attachments: HDFS-3892.patch
>
>
> MiniDFSCluster class declares few methods including getBlockFile() and getStorageDirPath() as static while MiniDFSCluster is not a singleton and allows multiple instances. There are several unit tests that create and start more than one MiniDFSCluster at the same time.
--
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