org.neo4j.kernel.impl.store.InvalidRecordException: Relationship[499972766,used=false,source=-1,target=-1,type=-1,sCount=1,sNext=-1,tCount=1,tNext=-1,prop=-1,secondaryUnitId=-1, sFirst, tFirst] not in use

Google Groups | Ray Chengr | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    deletion of relationships got stuck

    Google Groups | 7 months ago | Ray Chengr
    org.neo4j.kernel.impl.store.InvalidRecordException: Relationship[499972766,used=false,source=-1,target=-1,type=-1,sCount=1,sNext=-1,tCount=1,tNext=-1,prop=-1,secondaryUnitId=-1, sFirst, tFirst] not in use

    Root Cause Analysis

    1. org.neo4j.kernel.impl.store.InvalidRecordException

      Relationship[499972766,used=false,source=-1,target=-1,type=-1,sCount=1,sNext=-1,tCount=1,tNext=-1,prop=-1,secondaryUnitId=-1, sFirst, tFirst] not in use

      at org.neo4j.kernel.impl.store.record.RecordLoad.verify()
    2. Neo4j - Graph Database Kernel
      TransactionRecordState.relCreate
      1. org.neo4j.kernel.impl.store.record.RecordLoad.verify(RecordLoad.java:63)
      2. org.neo4j.kernel.impl.store.CommonAbstractStore.verifyAfterReading(CommonAbstractStore.java:1263)
      3. org.neo4j.kernel.impl.store.CommonAbstractStore.readIntoRecord(CommonAbstractStore.java:1047)
      4. org.neo4j.kernel.impl.store.CommonAbstractStore.getRecord(CommonAbstractStore.java:1025)
      5. org.neo4j.kernel.impl.transaction.state.Loaders$3.load(Loaders.java:200)
      6. org.neo4j.kernel.impl.transaction.state.Loaders$3.load(Loaders.java:190)
      7. org.neo4j.kernel.impl.transaction.state.RecordChanges.getOrLoad(RecordChanges.java:72)
      8. org.neo4j.kernel.impl.transaction.state.RelationshipCreator.connect(RelationshipCreator.java:203)
      9. org.neo4j.kernel.impl.transaction.state.RelationshipCreator.connectRelationshipToDenseNode(RelationshipCreator.java:165)
      10. org.neo4j.kernel.impl.transaction.state.RelationshipCreator.connectRelationship(RelationshipCreator.java:143)
      11. org.neo4j.kernel.impl.transaction.state.RelationshipCreator.relationshipCreate(RelationshipCreator.java:67)
      12. org.neo4j.kernel.impl.transaction.state.TransactionRecordState.relCreate(TransactionRecordState.java:282)
      12 frames
    3. org.neo4j.kernel
      TransactionToRecordStateVisitor.visitCreatedRelationship
      1. org.neo4j.kernel.impl.storageengine.impl.recordstorage.TransactionToRecordStateVisitor.visitCreatedRelationship(TransactionToRecordStateVisitor.java:96)
      1 frame
    4. org.neo4j.storageengine
      TxStateVisitor$Delegator.visitCreatedRelationship
      1. org.neo4j.storageengine.api.txstate.TxStateVisitor$Delegator.visitCreatedRelationship(TxStateVisitor.java:227)
      1 frame
    5. Neo4j - Graph Database Kernel
      TxState.accept
      1. org.neo4j.kernel.api.txstate.TransactionCountingStateVisitor.visitCreatedRelationship(TransactionCountingStateVisitor.java:108)
      2. org.neo4j.kernel.impl.api.state.TxState$15.visitAddedRelationship(TxState.java:376)
      3. org.neo4j.kernel.api.txstate.RelationshipChangeVisitorAdapter$1.visit(RelationshipChangeVisitorAdapter.java:125)
      4. org.neo4j.kernel.impl.api.state.RelationshipStateImpl.accept(RelationshipStateImpl.java:52)
      5. org.neo4j.kernel.impl.api.state.TxState.relationshipVisit(TxState.java:1539)
      6. org.neo4j.kernel.api.txstate.RelationshipChangeVisitorAdapter$1.visit(RelationshipChangeVisitorAdapter.java:115)
      7. org.neo4j.kernel.api.txstate.RelationshipChangeVisitorAdapter.visitAddedRelationship(RelationshipChangeVisitorAdapter.java:66)
      8. org.neo4j.kernel.api.txstate.RelationshipChangeVisitorAdapter.visitAdded(RelationshipChangeVisitorAdapter.java:90)
      9. org.neo4j.kernel.api.txstate.RelationshipChangeVisitorAdapter.visitAdded(RelationshipChangeVisitorAdapter.java:49)
      10. org.neo4j.kernel.impl.util.diffsets.SuperDiffSets.accept(SuperDiffSets.java:66)
      11. org.neo4j.kernel.impl.util.diffsets.RelationshipDiffSets.accept(RelationshipDiffSets.java:43)
      12. org.neo4j.kernel.impl.api.state.TxState.accept(TxState.java:265)
      12 frames
    6. org.neo4j.kernel
      RecordStorageEngine.createCommands
      1. org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.createCommands(RecordStorageEngine.java:312)
      1 frame
    7. Neo4j - Graph Database Kernel
      KernelTransactionImplementation.close
      1. org.neo4j.kernel.impl.api.KernelTransactionImplementation.commit(KernelTransactionImplementation.java:437)
      2. org.neo4j.kernel.impl.api.KernelTransactionImplementation.close(KernelTransactionImplementation.java:386)
      2 frames
    8. Neo4j
      TransactionalService.lambda$executeStatementsAndCommit$28
      1. org.neo4j.server.rest.transactional.TransitionalTxManagementKernelTransaction.commit(TransitionalTxManagementKernelTransaction.java:92)
      2. org.neo4j.server.rest.transactional.TransactionHandle.closeContextAndCollectErrors(TransactionHandle.java:243)
      3. org.neo4j.server.rest.transactional.TransactionHandle.commit(TransactionHandle.java:151)
      4. org.neo4j.server.rest.web.TransactionalService.lambda$executeStatementsAndCommit$28(TransactionalService.java:202)
      4 frames
    9. jersey-core
      StreamingOutputProvider.writeTo
      1. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71)
      2. com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57)
      2 frames
    10. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:302)
      2. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
      3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
      4. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
      4 frames
    11. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
      3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
      3 frames
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    13. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      2 frames
    14. Neo4j
      CollectUserAgentFilter.doFilter
      1. org.neo4j.server.rest.web.CollectUserAgentFilter.doFilter(CollectUserAgentFilter.java:69)
      1 frame
    15. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      5. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      6. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      7. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      8. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      9. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
      10. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      11. org.eclipse.jetty.server.Server.handle(Server.java:497)
      12. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      13. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      14. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      15. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      16. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      16 frames
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame