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

ConfigService does not throw optimistic Lock excepiton if sequenceService updated the doucment #380

Closed
rsoika opened this issue Apr 4, 2022 · 0 comments

Comments

@rsoika
Copy link
Member

rsoika commented Apr 4, 2022

Scenario:

User-A open System config (sequence Number= 1000)
User-B creates a new Workitem (sequence Number= 1001)
User-A saves System config
NOW again sequence Number= 1000 !

A optimisticeLock Exception is expected but did not occur

Solution:

The reason for this behaviour is that the ConfigService is a Singleton. This means that the VersionID is correctly updated from the internal perspective but not provided after an update.

But we need to avoid that in this situation for example the Sequencenumber can be overwritten. Therefore we need to update the $version

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

No branches or pull requests

1 participant