Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

TAJO-874: Sometimes InvalidOperationException occurs when aggregates TableStat.#38

Closed
babokim wants to merge 2 commits into
apache:masterfrom
babokim:TAJO-874
Closed

TAJO-874: Sometimes InvalidOperationException occurs when aggregates TableStat.#38
babokim wants to merge 2 commits into
apache:masterfrom
babokim:TAJO-874

Conversation

@babokim
Copy link
Copy Markdown
Contributor

@babokim babokim commented Jun 16, 2014

It is difficult to reproduce. So I added exception handling logic and type name in InvalidOperationException.

@hyunsik
Copy link
Copy Markdown
Member

hyunsik commented Jun 24, 2014

I'm facing the following errors from both 'maven clean install' and Junit test execution in IntelliJ. Could you check it?

2014-06-24 16:56:51,377 INFO: org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit (logAuditMessage(7409)) - allowed=true  ugi=hyunsik (auth:SIMPLE)   ip=/127.0.0.1   cmd=getfileinfo src=/tajo/warehouse/table14 dst=null    perm=null
2014-06-24 16:56:51,378 INFO: org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit (logAuditMessage(7409)) - allowed=true  ugi=hyunsik (auth:SIMPLE)   ip=/127.0.0.1   cmd=contentSummary  src=/tajo/warehouse/table14 dst=null    perm=null
2014-06-24 16:56:51,378 INFO: org.apache.tajo.catalog.CatalogServer (createTable(523)) - relation "default.table14" is added to the catalog (127.0.0.1:16371)
2014-06-24 16:56:51,378 INFO: org.apache.tajo.master.GlobalEngine (createTableOnPath(742)) - Table default.table14 is created (48)

org.jboss.netty.channel.ChannelException: Failed to create a selector.
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:337)
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.<init>(AbstractNioSelector.java:95)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:53)
    at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:45)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:45)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:28)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.newWorker(AbstractNioWorkerPool.java:99)
    at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.init(AbstractNioWorkerPool.java:69)
    at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:39)
    at org.apache.tajo.rpc.RpcChannelFactory.createClientChannelFactory(RpcChannelFactory.java:71)
    at org.apache.tajo.rpc.RpcConnectionPool.newPool(RpcConnectionPool.java:58)
    at org.apache.tajo.client.TajoClient.<init>(TajoClient.java:104)
    at org.apache.tajo.client.TajoClient.<init>(TajoClient.java:82)
    at org.apache.tajo.TajoTestingCluster.createTable(TajoTestingCluster.java:605)
    at org.apache.tajo.TajoTestingCluster.createTable(TajoTestingCluster.java:591)
    at org.apache.tajo.engine.query.TestJoinQuery.createOuterJoinTestTable(TestJoinQuery.java:936)
    at org.apache.tajo.engine.query.TestJoinQuery.testLeftOuterJoinPredicationCaseByCase3(TestJoinQuery.java:643)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runners.Suite.runChild(Suite.java:127)
    at org.junit.runners.Suite.runChild(Suite.java:26)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runners.Suite.runChild(Suite.java:127)
    at org.junit.runners.Suite.runChild(Suite.java:26)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.io.IOException: Too many open files
    at sun.nio.ch.IOUtil.makePipe(Native Method)
    at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:65)
    at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
    at java.nio.channels.Selector.open(Selector.java:227)
    at org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:335)
    ... 62 more

@hyunsik
Copy link
Copy Markdown
Member

hyunsik commented Jun 24, 2014

Additionally, the latest patch needs rebase. I tried to rebase the patch against the latest revision. The above problem may be caused by my incorrect rebase.

@babokim
Copy link
Copy Markdown
Contributor Author

babokim commented Jun 25, 2014

Merged with trunk and test passed

@hyunsik
Copy link
Copy Markdown
Member

hyunsik commented Jun 25, 2014

+1

LGTM!

@asfgit asfgit closed this in d7c2c95 Jun 25, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants