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

EVA-3664 Reserve new block - create new transaction for every retry #90

Merged

Conversation

nitin-ebi
Copy link
Contributor

No description provided.

@nitin-ebi nitin-ebi self-assigned this Oct 7, 2024
@nitin-ebi nitin-ebi force-pushed the new-transaction-for-every-retry branch from ce2569d to a8ec14c Compare October 8, 2024 11:50
@@ -91,7 +92,7 @@ public void save(ContiguousIdBlock block) {
entityManager.flush();
}

@Transactional(isolation = Isolation.SERIALIZABLE)
@Transactional(isolation = Isolation.SERIALIZABLE, propagation = Propagation.REQUIRES_NEW)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to read up on how this propagation works but I feel it would be good to get your explanation.

@nitin-ebi nitin-ebi merged commit ac3d8bb into EBIvariation:master Oct 9, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants