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 — Concurrent modification error on the same bucket (@v25.3.2) · Issue #2236 · ArcadeData/arcadedb

Concurrent modification error on the same bucket (@v25.3.2) #2236

New issue
Copy link
New issue
Copy link
Closed
Feature
Closed
Concurrent modification error on the same bucket (@v25.3.2)#2236
Feature
Copy link
Assignees
lvca
Labels
enhancementNew feature or request
Milestone
25.6.1

Description

@tolgaulas
tolgaulas
opened on May 31, 2025
Issue body actions

When on load, the arcadedb http api occasionally response with 503

{"error":"Cannot execute command","detail":"Concurrent modification on page PageId(pigeon/82/22) in file \u0027message_0.82.65536.v0.bucket\u0027 (current v.201 \u003c\u003e database v.202). Please retry the operation (threadId\u003d28)","exception":"com.arcadedb.exception.ConcurrentModificationException"}

I guessing this may be due the backplane engine "nature", the both insert requests ended in the same page (bad luck)..

Questions :

  • Can Insert have a retry mechanism (as in batch operations)? (feature request, perhaps)
  • Can this have a specific "error" message so that client can differentiate the kind/cause of the error and retry. (which looks like the only way resolvable)
  • am I totally mistaken, it's my fault or bug.

Activity

Next
  1. gramian commented on May 31, 2025

    @gramian
    gramian
    on May 31, 2025
    Collaborator
    More actions

    I am guessing here, but maybe the type being inserted to needs more buckets?

  2. tolgaulas commented on May 31, 2025

    @tolgaulas
    tolgaulas
    on May 31, 2025
    Author
    More actions

    I am guessing here, but maybe the type being inserted to needs more buckets?

    So true, but the server is on a mere 1cpu box with the minimal mem. Yes bucket will help, may save my case. but pls consider.

  3. tolgaulas commented on May 31, 2025

    @tolgaulas
    tolgaulas
    on May 31, 2025
    Author
    More actions

    ...exprerience: Adding bucket with Alter type .... +type2 caused problem on live server, root user that added became not-permitted (based on error messages)

    Had to delete and recreate index on the type (with another admin user). and a server restart; fixed it; though don't know which worked.

    I also noticed, the adding bucket did not create the related in_edges and out_edges files in database folder. But they appered only after the recreate index and/or database restart.

    Just fyi.

  4. tolgaulas commented on Jun 3, 2025

    @tolgaulas
    tolgaulas
    on Jun 3, 2025
    Author
    More actions

    .. unfortunately, adding one more bucket did not solve the issue.. I think one should addjust the bucket strategies according to the server load which I don't think is very "elegant". @lvca whats say you on this?

  5. lvca commented on Jun 3, 2025

    @lvca
    lvca
    on Jun 3, 2025
    Member
    More actions

    Having a retry policy on the command could be a good idea:

    1. the client sends a command to change some records
    2. there is a conflict and the tx must be retried
    3. the http handler instead of propagating the error to the client, it will retry X times (configurable). This behavior is only for the NeedRetryException (like ConcurrentModificationException)

    @tolgaulas WDYT?

  6. lvca
    self-assigned this
    on Jun 3, 2025
  7. lvca
    added the
    Feature
    issue type on Jun 3, 2025
  8. lvca
    added
    enhancementNew feature or request
    on Jun 3, 2025
  9. lvca
    added this to the 25.6.1 milestone on Jun 3, 2025
  10. tolgaulas commented on Jun 4, 2025

    @tolgaulas
    tolgaulas
    on Jun 4, 2025
    Author
    More actions

    @tolgaulas WDYT?

    Lovely! :)

  11. lvca
    added 2 commits that reference this issue on Jun 11, 2025

    fix: support for remote tx retry on the server side

    696848d

    fix: support for remote tx retry on the server side (#2254)

    bf046b8
  12. lvca commented on Jun 11, 2025

    @lvca
    lvca
    on Jun 11, 2025
    Member
    More actions

    I've just added a new parameter "retry" (integer) in /command payload. If present will auto retry X times the implicit transaction on the server side. @tolgaulas any chances you can try the latest snapshot with the retry parameter if solves the issues?

  13. robfrank
    added 2 commits that reference this issue on Jun 12, 2025

    #2236 feat: add server-side retry configuration for remote database o…

    d3e5073

    #2236 feat: add server-side retry configuration for remote database c…

    d094e57
  14. 12 remaining items

  15. robfrank
    added 2 commits that reference this issue on Jun 17, 2025

    fix: support for remote tx retry on the server side (#2254)

    f2ad201

    #2236 feat: add server-side retry configuration for remote database c…

    5fec09c
  16. lvca
    reopened this on Jul 1, 2025
  17. lvca commented on Jul 1, 2025

    @lvca
    lvca
    on Jul 1, 2025
    Member
    More actions

    I just fixed another issue that could be the cause of this too: 7fa7b43.

  18. lvca
    closed this as completedon Jul 1, 2025
  19. mergify
    added a commit that references this issue on Aug 17, 2025

    chore(deps): bump actions/checkout from 4.2.2 to 5.0.0 [skip ci]

    a861ffd
  20. mergify
    added a commit that references this issue on Mar 13, 2026

    chore(deps): bump https://github.com/pycqa/isort from 7.0.0 to 8.0.1 …

    219f8f8
  21. mergify
    added 2 commits that reference this issue on May 13, 2026

    chore(deps-dev): bump protobufjs from 7.5.5 to 7.5.8 in /e2e-js [skip…

    20ae85d

    chore(deps-dev): bump protobufjs from 7.5.5 to 7.5.8 in /e2e-studio […

    826c16e
  22. tae898
    added 6 commits that reference this issue on Jun 28, 2026

    fix: support for remote tx retry on the server side (ArcadeData#2254)

    fc36df5

    ArcadeData#2236 feat: add server-side retry configuration for remote …

    d43c4d5

    chore(deps): bump actions/checkout from 4.2.2 to 5.0.0 [skip ci]

    0c79a9b

    chore(deps): bump https://github.com/pycqa/isort from 7.0.0 to 8.0.1 …

    07f70dd

    chore(deps-dev): bump protobufjs from 7.5.5 to 7.5.8 in /e2e-js [skip…

    9d564a1

    chore(deps-dev): bump protobufjs from 7.5.5 to 7.5.8 in /e2e-studio […

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

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

enhancementNew feature or request

Type

Feature

Projects

No projects

    Milestone

    • 25.6.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.