Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1389

ConcurrentModificationException from FeedJobNotificationHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • ING - Ingestion

    Description

      I run into this in a jenkins job.

      Console output:

      CLOSE CALLED FOR STORE[0]{Tweets}
      CLOSE CALLED FOR STORE[2]{Tweets}
      CLOSE CALLED FOR STORE[3]{Tweets}
      CLOSE CALLED FOR STORE[1]{Tweets}
      SIGNALLING END OF DATA for STORE[0]{Tweets} mode is PROCESS WAITING ON org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@33ca7c85
      SIGNALLING END OF DATA for STORE[3]{Tweets} mode is PROCESS WAITING ON org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@3a4db11d
      SIGNALLING END OF DATA for STORE[1]{Tweets} mode is PROCESS WAITING ON org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@6905c15e
      ABOUT TO CLOSE OPERATOR  org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@33ca7c85
      ABOUT TO CLOSE OPERATOR  org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@3a4db11d
      SIGNALLING END OF DATA for STORE[2]{Tweets} mode is PROCESS WAITING ON org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@61544c90
      DEREGISTERING STORE[0]{Tweets}
      ABOUT TO CLOSE OPERATOR  org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@6905c15e
      DEREGISTERING STORE[3]{Tweets}
      ABOUT TO CLOSE OPERATOR  org.apache.asterix.common.dataflow.AsterixLSMInsertDeleteOperatorNodePushable@61544c90
      DEREGISTERING STORE[1]{Tweets}
      DEREGISTERING STORE[2]{Tweets}
      

      Standard Error

      testFile src/test/resources/runtimets/queries/feeds/drop-dataverse-with-disconnected-feed/drop-dataverse-with-disconnected-feed.3.ddl.aql raised an exception:
      java.lang.Exception: HTTP operation failed: 99
      STATUS LINE: HTTP/1.1 500 Server Error
      SUMMARY: null
       caused by: java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
      STACKTRACE: java.util.ConcurrentModificationException
      	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
      	at java.util.HashMap$ValueIterator.next(HashMap.java:1458)
      	at org.apache.asterix.app.external.FeedJobNotificationHandler.getActiveFeedConnections(FeedJobNotificationHandler.java:411)
      	at org.apache.asterix.app.external.FeedLifecycleListener.getActiveFeedConnections(FeedLifecycleListener.java:415)
      	at org.apache.asterix.aql.translator.QueryTranslator.handleDataverseDropStatement(QueryTranslator.java:1226)
      	at org.apache.asterix.aql.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:307)
      	at org.apache.asterix.aql.translator.QueryTranslator.compileAndExecute(QueryTranslator.java:254)
      	at org.apache.asterix.api.http.servlet.RESTAPIServlet.handleRequest(RESTAPIServlet.java:195)
      	at org.apache.asterix.api.http.servlet.DDLAPIServlet.handleRequest(DDLAPIServlet.java:30)
      	at org.apache.asterix.api.http.servlet.RESTAPIServlet.doPost(RESTAPIServlet.java:162)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:546)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:228)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
      	at org.eclipse.jetty.server.Server.handle(Server.java:353)
      	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
      	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1076)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
      	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
      	at java.lang.Thread.run(Thread.java:745)
      
      	at org.apache.asterix.test.aql.TestExecutor.executeHttpMethod(TestExecutor.java:272)
      	at org.apache.asterix.test.aql.TestExecutor.executeDDL(TestExecutor.java:384)
      	at org.apache.asterix.test.aql.TestExecutor.executeTest(TestExecutor.java:482)
      	at org.apache.asterix.test.aql.TestExecutor.executeTest(TestExecutor.java:755)
      	at org.apache.asterix.test.runtime.ExecutionTest.test(ExecutionTest.java:105)
      	at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	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.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.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      ...Unexpected!
      

      Attachments

        Activity

          People

            amoudi Abdullah Alamoudi
            buyingyi Yingyi Bu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: