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 — Dbi not thread-safe when using comparators · Issue #127 · lmdbjava/lmdbjava

Dbi not thread-safe when using comparators #127

New issue
Copy link
New issue
Copy link
Closed
Closed
Dbi not thread-safe when using comparators#127
Copy link
Labels
bugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library

Description

@jheister
jheister
opened on Apr 9, 2019
Issue body actions

My assumption was that the Dbi object would be created once and then can be used from any thread (using relevant read/write transactions). I based this on the docs here:

Generally databases should only be opened once, by the first transaction in the process. After the first transaction completes, the database handles can freely be used by all subsequent transactions

If this is the case then there is a bug due to compKeyA and compKeyB being fields in Dbi and thus shared across users of Dbi. This code shows how a reader will lead to corrupt inserts of sequential keys when Dbi is shared. It feels like the reusable buffers should be coupled with the txn object, but I cannot see a good way of achieving this in the current form.

Activity

  1. bp-alex
    added
    bugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library
    on May 31, 2019
  2. bp-alex
    closed this as completedin 52375e4on May 31, 2019
  3. bp-alex commented on May 31, 2019

    @bp-alex
    bp-alex
    on May 31, 2019
    Member
    More actions

    Thanks for reporting this and in particular providing a test that can consistently reproduce it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — 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.