hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9174) javac hangs compiling hbase-example module since namespaces went in
Date Fri, 09 Aug 2013 19:24:49 GMT

    [ https://issues.apache.org/jira/browse/HBASE-9174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735166#comment-13735166
] 

stack commented on HBASE-9174:
------------------------------

It looks like this:
{code}
....
Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-surefire-plugin:2.12-TRUNK-HBASE-2:test (secondPartTestsExecution) @ hbase-it
---
[INFO] Tests are skipped.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HBase - Examples 0.95.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hbase-examples ---
[INFO] Deleting /Users/stack/checkouts/0.95/hbase-examples/target
[INFO]
[INFO] --- maven-remote-resources-plugin:1.4:process (default) @ hbase-examples ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hbase-examples ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/stack/checkouts/0.95/hbase-examples/src/main/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hbase-examples ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /Users/stack/checkouts/0.95/hbase-examples/target/classes
...
{code}

When I jstack:

{code}
"main" prio=5 tid=7fb8b7000800 nid=0x109f69000 runnable [109f66000]
   java.lang.Thread.State: RUNNABLE
	at java.io.FileInputStream.readBytes(Native Method)
	at java.io.FileInputStream.read(FileInputStream.java:220)
	at com.sun.tools.javac.jvm.ClassReader.readInputStream(ClassReader.java:1897)
	at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1844)
	at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1777)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:384)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:766)
	at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:1951)
	at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:867)
	at com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:1036)
	at com.sun.tools.javac.comp.Attr.selectSym(Attr.java:1921)
	at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1835)
	at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1522)
	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
	at com.sun.tools.javac.comp.Attr.attribType(Attr.java:390)
	at com.sun.tools.javac.comp.MemberEnter.attribImportType(MemberEnter.java:681)
	at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:545)
	at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:495)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399)
	at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:512)
	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
	at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:384)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:766)
	at com.sun.tools.javac.comp.Enter.complete(Enter.java:464)
	at com.sun.tools.javac.comp.Enter.main(Enter.java:442)
	at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:822)
	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
	at com.sun.tools.javac.main.Main.compile(Main.java:353)
...
{code}

If I add verbose to maven-compiler-plugin, I see it is stuck loading HRegion.

After poking, it is this line that causes the hang in HRegion.java:

{code}
  0     final String logname = "hlog" + FSUtils.getTableName(tableDir) +
  1       EnvironmentEdgeManager.currentTimeMillis();
{code}
                
> javac hangs compiling hbase-example module since namespaces went in
> -------------------------------------------------------------------
>
>                 Key: HBASE-9174
>                 URL: https://issues.apache.org/jira/browse/HBASE-9174
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>            Reporter: stack
>
> javac hangs loading HRegion.class.  If I remove the ns changes -- the import of TableName
-- I can get it to compile again.  Digging.
> More detail to follow.

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

Mime
View raw message