You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "binlijin (JIRA)" <ji...@apache.org> on 2012/07/20 12:24:35 UTC

[jira] [Created] (HBASE-6433) improve getRemoteAddress

binlijin created HBASE-6433:
-------------------------------

             Summary: improve getRemoteAddress
                 Key: HBASE-6433
                 URL: https://issues.apache.org/jira/browse/HBASE-6433
             Project: HBase
          Issue Type: Improvement
            Reporter: binlijin
            Priority: Minor




--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419692#comment-13419692 ] 

Hudson commented on HBASE-6433:
-------------------------------

Integrated in HBase-TRUNK-on-Hadoop-2.0.0 #101 (See [https://builds.apache.org/job/HBase-TRUNK-on-Hadoop-2.0.0/101/])
    HBASE-6433 Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress (binlijin) (Revision 1363905)

     Result = FAILURE
tedyu : 
Files : 
* /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java

                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419154#comment-13419154 ] 

Hadoop QA commented on HBASE-6433:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12537328/HBASE-6433-trunk.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 hadoop2.0.  The patch compiles against the hadoop 2.0 profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    -1 javac.  The applied patch generated 5 javac compiler warnings (more than the trunk's current 4 warnings).

    -1 findbugs.  The patch appears to introduce 12 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 .

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/2420//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2420//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop2-compat.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2420//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2420//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2420//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2420//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/2420//console

This message is automatically generated.
                
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] [Assigned] (HBASE-6433) improve getRemoteAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihong Ted Yu reassigned HBASE-6433:
-------------------------------------

    Assignee: binlijin
    
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

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

Lars Hofhansl updated HBASE-6433:
---------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed to 0.94.
                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0, 0.94.1
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihong Ted Yu updated HBASE-6433:
----------------------------------

    Fix Version/s: 0.96.0
     Hadoop Flags: Reviewed
    
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] [Closed] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

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

Lars Hofhansl closed HBASE-6433.
--------------------------------

    
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.94.1, 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihong Ted Yu updated HBASE-6433:
----------------------------------

    Status: Patch Available  (was: Open)
    
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Priority: Minor
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419535#comment-13419535 ] 

stack commented on HBASE-6433:
------------------------------

@binlijin Why not change what getRemoteIp does internally (your patch copies much of the body of getRemoteIp).  Is it that getRemoteIp is used in places where Call has not had host address set yet?
                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihong Ted Yu updated HBASE-6433:
----------------------------------

    Description: 
Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().

The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.

Without this patch it costs 4000ns, with this patch it costs 1600ns

  was:Without this patch it costs 4000ns, with this patch it costs 1600ns

        Summary: Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress  (was: improve getRemoteAddress)

@J-D:
See if updated description suffices.
                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419316#comment-13419316 ] 

Zhihong Ted Yu commented on HBASE-6433:
---------------------------------------

I ran the two tests listed above and they passed:
{code}
Running org.apache.hadoop.hbase.master.TestSplitLogManager
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 21.933 sec
Running org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 68.194 sec
{code}

Will integrate to trunk later today if there is no objection.
                
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419408#comment-13419408 ] 

Jean-Daniel Cryans commented on HBASE-6433:
-------------------------------------------

Thanks you!
                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

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

binlijin updated HBASE-6433:
----------------------------

    Attachment: HBASE-6433-trunk.patch
    
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Priority: Minor
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>


--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419152#comment-13419152 ] 

Zhihong Ted Yu commented on HBASE-6433:
---------------------------------------

The trunk patch contains reordering of imports which kind of distracts from the goal for this JIRA.

Otherwise patch looks good.
                
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428749#comment-13428749 ] 

Hudson commented on HBASE-6433:
-------------------------------

Integrated in HBase-0.94-security-on-Hadoop-23 #6 (See [https://builds.apache.org/job/HBase-0.94-security-on-Hadoop-23/6/])
    HBASE-6433 Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress n(binlijin) (Revision 1364397)

     Result = FAILURE
larsh : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java

                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0, 0.94.1
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

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

Lars Hofhansl updated HBASE-6433:
---------------------------------

    Fix Version/s: 0.94.1

Let's get into 0.94 before the next RC.
                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0, 0.94.1
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419552#comment-13419552 ] 

Hudson commented on HBASE-6433:
-------------------------------

Integrated in HBase-TRUNK #3155 (See [https://builds.apache.org/job/HBase-TRUNK/3155/])
    HBASE-6433 Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress (binlijin) (Revision 1363905)

     Result = FAILURE
tedyu : 
Files : 
* /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java

                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419461#comment-13419461 ] 

Zhihong Ted Yu commented on HBASE-6433:
---------------------------------------

Integrated to trunk.

Thanks for the patch, binlijin.

Thanks for the review, J-D.
                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

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

binlijin updated HBASE-6433:
----------------------------

    Attachment: HBASE-6433-94.patch
                HBASE-6433-90.patch
                HBASE-6433-92.patch
    
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Priority: Minor
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>


--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419285#comment-13419285 ] 

Hadoop QA commented on HBASE-6433:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12537359/6433-getRemoteAddress-trunk.txt
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 hadoop2.0.  The patch compiles against the hadoop 2.0 profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    -1 javac.  The applied patch generated 5 javac compiler warnings (more than the trunk's current 4 warnings).

    -1 findbugs.  The patch appears to introduce 12 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:
                       org.apache.hadoop.hbase.regionserver.TestSplitTransactionOnCluster
                  org.apache.hadoop.hbase.master.TestSplitLogManager

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/2421//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2421//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop2-compat.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2421//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2421//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2421//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2421//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/2421//console

This message is automatically generated.
                
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420311#comment-13420311 ] 

Hudson commented on HBASE-6433:
-------------------------------

Integrated in HBase-0.94 #352 (See [https://builds.apache.org/job/HBase-0.94/352/])
    HBASE-6433 Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress n(binlijin) (Revision 1364397)

     Result = FAILURE
larsh : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java

                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0, 0.94.1
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhihong Ted Yu updated HBASE-6433:
----------------------------------

    Attachment: 6433-getRemoteAddress-trunk.txt

Simplified patch for trunk.
                
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421665#comment-13421665 ] 

Hudson commented on HBASE-6433:
-------------------------------

Integrated in HBase-0.94-security #45 (See [https://builds.apache.org/job/HBase-0.94-security/45/])
    HBASE-6433 Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress n(binlijin) (Revision 1364397)

     Result = FAILURE
larsh : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java

                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0, 0.94.1
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

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

binlijin updated HBASE-6433:
----------------------------

    Description: Without this patch it costs 4000ns, with this patch it costs 1600ns
    
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Priority: Minor
>         Attachments: HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) improve getRemoteAddress

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419360#comment-13419360 ] 

Jean-Daniel Cryans commented on HBASE-6433:
-------------------------------------------

Can we have a meaningful jira title with a meaningful description of the problem plus how it's being addressed?
                
> improve getRemoteAddress
> ------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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] (HBASE-6433) Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress

Posted by "Zhihong Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419561#comment-13419561 ] 

Zhihong Ted Yu commented on HBASE-6433:
---------------------------------------

Looking at the code, Connection has this member:
{code}
    private InetAddress addr;
{code}
But I don't see where it is assigned. The following assignment is to a local variable:
{code}
      InetAddress addr = socket.getInetAddress();
{code}
                
> Improve HBaseServer#getRemoteAddress by utilizing HBaseServer.Connection.hostAddress
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-6433
>                 URL: https://issues.apache.org/jira/browse/HBASE-6433
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>            Priority: Minor
>             Fix For: 0.96.0
>
>         Attachments: 6433-getRemoteAddress-trunk.txt, HBASE-6433-90.patch, HBASE-6433-92.patch, HBASE-6433-94.patch, HBASE-6433-trunk.patch
>
>
> Currently, HBaseServer#getRemoteAddress would call getRemoteIp(), leading to call.connection.socket.getInetAddress().
> The host address is actually stored in HBaseServer.Connection.hostAddress field. We don't need to go through Socket to get this information.
> Without this patch it costs 4000ns, with this patch it costs 1600ns

--
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