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 "Jakob Homan (JIRA)" <ji...@apache.org> on 2009/05/20 21:03:45 UTC

[jira] Created: (HADOOP-5877) Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore

Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore
------------------------------------------------------------------------------------------------------------------

                 Key: HADOOP-5877
                 URL: https://issues.apache.org/jira/browse/HADOOP-5877
             Project: Hadoop Core
          Issue Type: Bug
          Components: test
            Reporter: Jakob Homan
            Assignee: Jakob Homan


All of these warnings relate to use of the deprecated SecondaryNameNode.  Since the 2ndNN isn't going to be excised anytime soon, these should all be suppressed with as narrow of a suppression scope as possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-5877) Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-5877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712331#action_12712331 ] 

Konstantin Shvachko commented on HADOOP-5877:
---------------------------------------------

+1
Looks goo to me.

> Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-5877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5877
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>         Attachments: HADOOP-5877.patch
>
>
> All of these warnings relate to use of the deprecated SecondaryNameNode.  Since the 2ndNN isn't going to be excised anytime soon, these should all be suppressed with as narrow of a suppression scope as possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-5877) Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore

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

Jakob Homan updated HADOOP-5877:
--------------------------------

    Status: Patch Available  (was: Open)

submitting patch.

> Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-5877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5877
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>         Attachments: HADOOP-5877.patch
>
>
> All of these warnings relate to use of the deprecated SecondaryNameNode.  Since the 2ndNN isn't going to be excised anytime soon, these should all be suppressed with as narrow of a suppression scope as possible.

-- 
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-5877) Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-5877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712331#action_12712331 ] 

Konstantin Shvachko edited comment on HADOOP-5877 at 5/22/09 6:03 PM:
----------------------------------------------------------------------

+1
Looks good to me.

      was (Author: shv):
    +1
Looks goo to me.
  
> Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-5877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5877
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>         Attachments: HADOOP-5877.patch
>
>
> All of these warnings relate to use of the deprecated SecondaryNameNode.  Since the 2ndNN isn't going to be excised anytime soon, these should all be suppressed with as narrow of a suppression scope as possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-5877) Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore

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

Jakob Homan updated HADOOP-5877:
--------------------------------

    Attachment: HADOOP-5877.patch

Patch to implement these fixes:
Test patch:
{noformat}
     [exec] +1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     +1 tests included.  The patch appears to include 16 new or modified tests.
     [exec] 
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning messages.
     [exec] 
     [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec] 
     [exec]     +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
     [exec] 
     [exec]     +1 release audit.  The applied patch does not increase the total number of release audit warnings.
{noformat}

* Fixes all of the javac warnings in the above mentioned files.  These all related to use of the deprecated secondary name node.  These were fixed by suppressing the warning on the method it emanated from, rather than applying the annotation to the entire file.
* Of note, in two places the SecondaryNameNode was a return type of a method and due to a bug in Java (http://bugs.sun.com/view_bug.do?bug_id=6460147) the warning suppression doesn't work and still generates a javac warning.  This has been noted in the code.
* In {{TestHDFSServerPorts}} the offending warning was suppressed and a new test that uses the backup node to test the equivalent functionality added.  This is the best approach to take with replacing these tests with backupnode versions until the secondary namenode is removed, but doing so on the other cases is beyond the scope of this JIRA.
* General clean up of the {{TestHDFSServerPorts}} class.
* As part of the new test BackupNode had to become a public rather than package-private class in order to make it available for testing.

> Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-5877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5877
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>         Attachments: HADOOP-5877.patch
>
>
> All of these warnings relate to use of the deprecated SecondaryNameNode.  Since the 2ndNN isn't going to be excised anytime soon, these should all be suppressed with as narrow of a suppression scope as possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-5877) Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore

Posted by "Jakob Homan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-5877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711882#action_12711882 ] 

Jakob Homan commented on HADOOP-5877:
-------------------------------------

It looks like our erstwhile squire Hudson has wandered off again... I ran the full test of suites and everything passed except failing-on-trunk TestJobHistory and the usual contrib cases.  From a unit test perspective, the patch is ready to go.


> Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-5877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5877
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>         Attachments: HADOOP-5877.patch
>
>
> All of these warnings relate to use of the deprecated SecondaryNameNode.  Since the 2ndNN isn't going to be excised anytime soon, these should all be suppressed with as narrow of a suppression scope as possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-5877) Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore

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

Konstantin Shvachko updated HADOOP-5877:
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.21.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

I just committed this. Thank you Jakob.

> Fix javac warnings in TestHDFSServerPorts, TestCheckpoint, TestNameEditsConfig, TestStartup and TestStorageRestore
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-5877
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5877
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-5877.patch
>
>
> All of these warnings relate to use of the deprecated SecondaryNameNode.  Since the 2ndNN isn't going to be excised anytime soon, these should all be suppressed with as narrow of a suppression scope as possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.