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 — Index lookup return partial data while a compaction is running · Issue #757 · ArcadeData/arcadedb

Index lookup return partial data while a compaction is running #757

New issue
Copy link
New issue
Copy link
Closed
Closed
Index lookup return partial data while a compaction is running#757
Copy link
Assignees
lvca
Milestone
23.1.1

Description

@lvca
lvca
opened on Jan 11, 2023
Issue body actions

if an index is compacting under the hood, range indexes can return partial data.

Tested with the test case testRangeWithSQL().

Activity

  1. lvca
    self-assigned this
    on Jan 11, 2023
  2. lvca
    added
    bug
    on Jan 11, 2023
  3. lvca
    added this to the 23.1.1 milestone on Jan 11, 2023
  4. lvca commented on Jan 11, 2023

    @lvca
    lvca
    on Jan 11, 2023
    MemberAuthor
    More actions

    Java 13 fixed concurrency on byte buffers (check https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-5029431). For now the solution is to acquire a lock of the Binary object to set the position and then slice the page.

  5. lvca
    added a commit that references this issue on Jan 11, 2023

    fix:index lookup in concurrency with background compaction

    104fbcc
  6. lvca
    closed this as completedon Jan 11, 2023
  7. lvca
    reopened this on Jan 11, 2023
  8. lvca
    added 2 commits that reference this issue on Jan 11, 2023

    fix:concurrent read of pages during compaction

    2ee1343

    refactoring locking during page.slice

    d81766d
  9. lvca commented on Jan 12, 2023

    @lvca
    lvca
    on Jan 12, 2023
    MemberAuthor
    More actions

    After a long debug session (the compacted LSM-Tree index is the most complex component of ArcadeDB) I decided to write a new LSM-Tree chapter in the docs, under Appendix, for whom is interested in contributing to LSM-Tree.

    The issue was in the range query: after compaction, the entries are sparse in multiple segments. The range() operation didn't check for the upper bound of the keys, so some of the pages containing the values were discarded when the iterators were built.

  10. lvca
    added a commit that references this issue on Jan 12, 2023

    fix:range query with against compacted indexes

    fc59a0d
  11. lvca
    closed this as completedon Jan 12, 2023
  12. lvca
    added
    bug fixed
    on Jan 12, 2023
  13. tae898
    added 4 commits that reference this issue on Jun 28, 2026

    fix:index lookup in concurrency with background compaction

    c0148e5

    fix:concurrent read of pages during compaction

    183181a

    refactoring locking during page.slice

    2d95a46

    fix:range query with against compacted indexes

    7788549
  14. mergify
    added a commit that references this issue on Jul 29, 2026

    build(deps): bump org.graalvm.buildtools:native-maven-plugin from 0.1…

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

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

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