You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Mikhail Bautin (Created) (JIRA)" <ji...@apache.org> on 2012/01/23 20:25:40 UTC

[jira] [Created] (HBASE-5261) Update HBase for Java 7

Update HBase for Java 7
-----------------------

                 Key: HBASE-5261
                 URL: https://issues.apache.org/jira/browse/HBASE-5261
             Project: HBase
          Issue Type: Improvement
            Reporter: Mikhail Bautin


We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Suraj Varma commented on HBASE-5261:
------------------------------------

Agreed - we need to maintain compatibility with JDK6 for sure. But given that JDK 6 is getting EOL in Nov 2012, we should see more companies moving to _running_ on JDK 7 ... 
http://www.oracle.com/technetwork/java/eol-135779.html
JDK6	Released: Dec 2006	End of Public Updates: Nov 2012
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Kumar Ravi commented on HBASE-5261:
-----------------------------------

I ran all the categories (Small, Medium and Large) of Junit tests on Hbase-0.94.1 (Revision 1392444) built using IBM Java 7 and all the categories ran without any failures.
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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] (HBASE-5261) Update HBase for Java 7

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

Lars Hofhansl commented on HBASE-5261:
--------------------------------------

Interestingly in all these issues I do not see the reason why TestSplitTransactionOnCluster would time out with JDK7 in 0.94 but work fine in 0.96.
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Umbrella
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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] (HBASE-5261) Update HBase for Java 7

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

Lars Hofhansl commented on HBASE-5261:
--------------------------------------

I found that in order to build HBase with OpenJDK7 I need to make this change:
{code}
--- pom.xml     (revision 1358499)
+++ pom.xml     (working copy)
@@ -395,6 +395,9 @@
             <target>${compileSource}</target>
             <showWarnings>true</showWarnings>
             <showDeprecation>false</showDeprecation>
+            <compilerArguments>
+              <Xlint:-options/>
+            </compilerArguments>
           </configuration>
         </plugin>
{code}

That suppressed the following warning (which maven fails to parse and hence errors out):
bq. warning: [options] bootstrap class path not set in conjunction with -source 1.6

G1 is supposed to be viable from OpenJDK7u4 onwards.

                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Mikhail Bautin reassigned HBASE-5261:
-------------------------------------

    Assignee: Mikhail Bautin
    
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Lars Hofhansl commented on HBASE-5261:
--------------------------------------

I think we need to be careful to maintain compatibility with JDK 6 for a loooong time. For many enterprises switched to JDK 7 is a major effort.

                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Lars Hofhansl commented on HBASE-5261:
--------------------------------------

Yeah, that blog summarizes it nicely.

We need this to *compile* HBase with JDK7. (As explained in the blog, even with -source 1.6 it will not necessarily run on a JDK6, because of missing/changed classes).

We do not need this when we compile HBase with JDK6 and then *run* with JDK7.

But since this option won't hurt anything, being able to compile HBase with JDK7 is nice.
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

stack commented on HBASE-5261:
------------------------------

Above sounds good.  What about case where we compile w/ jdk7 and run on jdk7?  I wasn't clear what happens in this case from blog reading.
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Lars Hofhansl commented on HBASE-5261:
--------------------------------------

Yep. When compiled with JDK7 it'll run fine against JDK7.
The caveat is that there is no guarantee that the JDK7 compiled will run against JDK6.

                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

stack commented on HBASE-5261:
------------------------------

Hmm... I suppose the -options flag has not effect in this case.  So, +1 on patch.
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Andrew Purtell updated HBASE-5261:
----------------------------------

    Issue Type: Umbrella  (was: Improvement)
    
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Umbrella
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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] (HBASE-5261) Update HBase for Java 7

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

Lars Hofhansl commented on HBASE-5261:
--------------------------------------

Also note that this message means that the result will not necessarily work on a JDK6 runtime. But I think this is OK.
Should we make the above change in 0.96 and 0.94, so HBase can be built without error with JDK7?
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Andrew Purtell commented on HBASE-5261:
---------------------------------------

I've recently switched to testing JDK6 built artifacts on a JDK7 runtime and have discovered no issues there. I can't comment on build issues but have not seen runtime issues so far.

FWIW, I've not had success yet running HBase using the G1 GC. Always segfaults within a few hours of operation.
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

stack commented on HBASE-5261:
------------------------------

Do we need this addition if we are running on jdk7?  I'm reading this: https://blogs.oracle.com/darcy/entry/bootclasspath_older_source  What you reading?
                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

--
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-5261) Update HBase for Java 7

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

Lars Hofhansl commented on HBASE-5261:
--------------------------------------

Listing all the issues Jimmy mentioned on the mailing lists (just so they do not get lost, I think Andy added most as subtasks already):

HBASE-6182 (HBASE-6181, HBASE-6202, HBASE-6206)
HBASE-7130 (a little trick, need to ignore the pb related stuff)
HBASE-7113
HBASE-6915
HBASE-6917
HBASE-6921
HBASE-6355

                
> Update HBase for Java 7
> -----------------------
>
>                 Key: HBASE-5261
>                 URL: https://issues.apache.org/jira/browse/HBASE-5261
>             Project: HBase
>          Issue Type: Umbrella
>            Reporter: Mikhail Bautin
>            Assignee: Mikhail Bautin
>
> We need to make sure that HBase compiles and works with JDK 7. Once we verify it is reasonably stable, we can explore utilizing the G1 garbage collector. When all deployments are ready to move to JDK 7, we can start using new language features, but in the transition period we will need to maintain a codebase that compiles both with JDK 6 and JDK 7.

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