Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bartoszwalacik opened this issue Jan 31, 2016 · 2 comments
Closed

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

bartoszwalacik opened this issue Jan 31, 2016 · 2 comments

Comments

@bartoszwalacik
Copy link
Contributor

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.

@adamdubiel
Copy link
Member

Fixed & release: 0.6.1

@bartoszwalacik
Copy link
Contributor Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants