Skip to content

bug: sequence allocation algorithm has global, shared state #16

Closed

Description

@bartoszwalacik

since class KeyGeneratorRegistry has static map of SequenceAllocation objects,
current val of each sequence is global.

It means that new instance of PolyJDBC, feeded with new db connection, doesnt initiates
current states of sequences from db but takes stale values (possibly genereted for another database).

it causes pk vilation exceptions.

Activity

  1. added 4 commits that reference this issue on Jan 31, 2016
  2. added a commit that references this issue on Feb 1, 2016
  3. adamdubiel commented on Feb 1, 2016

    @adamdubiel
    Member

    Fixed & release: 0.6.1

  4. bartoszwalacik commented on Feb 1, 2016

    @bartoszwalacik
    ContributorAuthor

    thanks a lot for this super fast fix !

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions