GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — "Bucket with id '-4' was not found" · Issue #947 · ArcadeData/arcadedb

"Bucket with id '-4' was not found" #947

New issue
Copy link
New issue
Copy link
Closed
Closed
"Bucket with id '-4' was not found"#947
Copy link
Assignees
lvca
Labels
unable to reproducewaiting for user
Milestone
23.5.1

Description

@shasaur
shasaur
opened on Mar 16, 2023
Issue body actions

ArcadeDB Version: both v23.1.2 and v23.2.1

Using Cypher

Sometimes, the database gets into a bricked state where you can't run certain types of queries / queries over certain pieces of data. For example, running a MATCH all works, but running a MATCH (n) DETACH DELETE n doesn't. You get an error "Bucket with id '-1' was not found" in v23.1.2 and "Bucket with id '-4' was not found" in the latest version. You have to drop that database and re-create it.

The only way I can reproduce this is:

  1. Run a big query X in session A
  2. After query finishes, immediately open another small query Y in session B

My guess would be that somehow, the data from query X is still being saved to disk or something but then query Y sort of has a race-condition with it. If you repeat the same steps, but wait 5 seconds between step 1 and step 2, it never happens.

Activity

  1. shasaur commented on Mar 16, 2023

    @shasaur
    shasaur
    on Mar 16, 2023
    ContributorAuthor
    More actions

    It mainly consistently happens when I run my golang test suites (as there is a session opened per test and there are a lot of tests that run immediately after each other).
    However, I think I've seen this happened after heavy production use once or twice. This could be due to having multiple sessions open in my golang program.

  2. lvca commented on Mar 17, 2023

    @lvca
    lvca
    on Mar 17, 2023
    Member
    More actions

    Do you have the stack trace of the exception? It would be very helpful to find the cause.

  3. lvca
    self-assigned this
    on Mar 17, 2023
  4. lvca
    added this to the 23.3.1 milestone on Mar 17, 2023
  5. lvca
    added
    waiting for user
    on Mar 20, 2023
  6. lvca
    modified the milestones: 23.3.1, 23.4.1 on Apr 5, 2023
  7. lvca
    modified the milestones: 23.4.1, 23.5.1 on May 2, 2023
  8. lvca commented on Jun 9, 2023

    @lvca
    lvca
    on Jun 9, 2023
    Member
    More actions

    Any news on this? Closing this issue as resolved. In case please comment here to be reopened.

  9. lvca
    closed this as completedon Jun 9, 2023
  10. lvca
    added
    unable to reproduce
    on Jun 9, 2023
  11. lvca
    modified the milestones: 23.5.1, 23.6.1 on Jun 9, 2023
  12. artturimatias commented on Jan 12, 2024

    @artturimatias
    artturimatias
    on Jan 12, 2024
    More actions

    I think I'm hitting this same issue. This randomly happens when I'm trying remove all but "Schema" nodes from database via gremlin (sort of data reset).

    Tested with 23.12.2 (docker)

    "command":"g.V().not(hasLabel(\\"Schema\\")).drop()","language":"gremlin"

    This results (sometimes):
    `
    com.arcadedb.exception.SchemaException: Bucket with id '-1' was not found
    at com.arcadedb.schema.LocalSchema.getBucketById(LocalSchema.java:289)
    at com.arcadedb.database.LocalDatabase.lambda$lookupByRID$14(LocalDatabase.java:687)
    at com.arcadedb.database.LocalDatabase.executeInReadLock(LocalDatabase.java:1415)
    at com.arcadedb.database.LocalDatabase.lookupByRID(LocalDatabase.java:668)
    at com.arcadedb.database.RID.asEdge(RID.java:153)
    at com.arcadedb.graph.EdgeIterator.next(EdgeIterator.java:84)
    at com.arcadedb.graph.EdgeIterator.next(EdgeIterator.java:30)
    at com.arcadedb.graph.GraphEngine.deleteVertex(GraphEngine.java:391)
    at com.arcadedb.database.LocalDatabase.deleteRecordNoLock(LocalDatabase.java:1005)
    at com.arcadedb.database.LocalDatabase.lambda$deleteRecord$20(LocalDatabase.java:973)
    at com.arcadedb.database.LocalDatabase.executeInReadLock(LocalDatabase.java:1415)
    at com.arcadedb.database.LocalDatabase.deleteRecord(LocalDatabase.java:972)
    at com.arcadedb.gremlin.ArcadeGraph.deleteElement(ArcadeGraph.java:449)
    at com.arcadedb.gremlin.ArcadeElement.remove(ArcadeElement.java:89)
    at org.apache.tinkerpop.gremlin.process.traversal.step.filter.DropStep.filter(DropStep.java:67)
    at org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:41)
    at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:155)
    at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:192)
    at com.arcadedb.gremlin.ArcadeGremlin$2.hasNext(ArcadeGremlin.java:112)
    at com.arcadedb.query.sql.executor.IteratorResultSet.hasNext(IteratorResultSet.java:37)
    at com.arcadedb.query.sql.executor.ResultSet.tryAdvance(ResultSet.java:69)
    at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
    at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
    at com.arcadedb.server.http.handler.AbstractQueryHandler.serializeResultSet(AbstractQueryHandler.java:163)
    at com.arcadedb.server.http.handler.PostCommandHandler.execute(PostCommandHandler.java:114)
    at com.arcadedb.server.http.handler.DatabaseAbstractHandler.execute(DatabaseAbstractHandler.java:100)
    at com.arcadedb.server.http.handler.AbstractServerHttpHandler.handleRequest(AbstractServerHttpHandler.java:127)
    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)
    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859)
    at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
    at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
    at java.base/java.lang.Thread.run(Thread.java:829)

    `

  13. mergify
    added a commit that references this issue on Jul 19, 2026

    chore(deps-dev): bump org.apache.maven.plugins:maven-enforcer-plugin …

    4e63abe
  14. mergify
    added a commit that references this issue on Jul 26, 2026

    build(deps-dev): bump org.apache.maven.plugins:maven-enforcer-plugin …

    ffbd683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

unable to reproducewaiting for user

Type

No type

Projects

No projects

    Milestone

    • 23.5.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.