org.neo4j.graphdb.TransactionFailureException: Timeout waiting for database to become available and allow new transactions. Waited 2m. 1 reasons for blocking: Cluster state is 'PENDING'.

Stack Overflow | Beni | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    neo4j ha unavailabe ,what's the reason

    Stack Overflow | 4 months ago | Beni
    org.neo4j.graphdb.TransactionFailureException: Timeout waiting for database to become available and allow new transactions. Waited 2m. 1 reasons for blocking: Cluster state is 'PENDING'.

    Root Cause Analysis

    1. org.neo4j.graphdb.TransactionFailureException

      Timeout waiting for database to become available and allow new transactions. Waited 2m. 1 reasons for blocking: Cluster state is 'PENDING'.

      at sun.reflect.GeneratedConstructorAccessor316.newInstance()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.GeneratedConstructorAccessor316.newInstance(Unknown Source)[na:na]
      2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[na:1.8.0_60]
      3. java.lang.reflect.Constructor.newInstance(Constructor.java:422)[na:1.8.0_60]
      3 frames
    3. Neo4j - Graph Database Kernel
      AvailabilityGuard.checkAvailability
      1. org.neo4j.kernel.AvailabilityGuard.checkAvailability(AvailabilityGuard.java:249)[neo4j-kernel-2.2.5-SNAPSHOT.jar:2.2.5-SNAPSHOT]
      1 frame
    4. Neo4j - High Availability
      HighlyAvailableGraphDatabase.beginTx
      1. org.neo4j.kernel.ha.HighlyAvailableGraphDatabase.beginTx(HighlyAvailableGraphDatabase.java:249)[neo4j-ha-2.2.5.jar:2.2.5]
      1 frame
    5. Neo4j
      TransactionalService$2.write
      1. org.neo4j.server.rest.transactional.TransitionalPeriodTransactionMessContainer.newTransaction(TransitionalPeriodTransactionMessContainer.java:39)[neo4j-server-2.2.5.jar:2.2.5]
      2. org.neo4j.server.rest.transactional.TransactionHandle.ensureActiveTransaction(TransactionHandle.java:241)[neo4j-server-2.2.5.jar:2.2.5]
      3. org.neo4j.server.rest.transactional.TransactionHandle.commit(TransactionHandle.java:143)[neo4j-server-2.2.5.jar:2.2.5]
      4. org.neo4j.server.rest.web.TransactionalService$2.write(TransactionalService.java:211)[neo4j-server-2.2.5.jar:2.2.5]
      4 frames
    6. jersey-core
      StreamingOutputProvider.writeTo
      1. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71)[jersey-core-1.19.jar:1.19]
      2. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57)[jersey-core-1.19.jar:1.19]
      2 frames
    7. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:302)[jersey-server-1.19.jar:1.19]
      2. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)[jersey-server-1.19.jar:1.19]
      3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)[jersey-server-1.19.jar:1.19]
      4. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)[jersey-server-1.19.jar:1.19]
      4 frames
    8. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)[jersey-servlet-1.19.jar:1.19]
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)[jersey-servlet-1.19.jar:1.19]
      3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)[jersey-servlet-1.19.jar:1.19]
      3 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api-3.1.0.jar:3.1.0]
      1 frame