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

1337906: Stack derived pool cleanup #1262

Merged
merged 1 commit into from
May 31, 2016
Merged

1337906: Stack derived pool cleanup #1262

merged 1 commit into from
May 31, 2016

Conversation

minicuts
Copy link
Contributor

In some code paths, it may be possible that deletion of entitlements
might not succeed (DELETE statement is not issued to the database).
The underlying issue here is with collection Pool.entitlements. Because
this collection has cascade set to PERSIST, one must be very careful
when deleting entitlement to also remove it from the collection.
Otherwise, Hibernate will un-schedule the deletion.

@vritant
Copy link
Contributor

vritant commented May 29, 2016

@candlepin-pull-request-bot test this please

@vritant
Copy link
Contributor

vritant commented May 29, 2016

@nguyenfilip why test the import scenario also with this PR?
asking cause I thought the spec test in other PRs was sufficient?

@minicuts
Copy link
Contributor Author

@vritant The problem manifested itself only in refresh pools code path. It seemed to me that import manifest is the best way to realistically trigger refresh pools in CP 2.0.

In some code paths, it may be possible that deletion of entitlements
might not succeed (DELETE statement is not issued to the database).
The underlying issue here is with collection Pool.entitlements. Because
this collection has cascade set to PERSIST, one must be very careful
when deleting entitlement to also remove it from the collection.
Otherwise, Hibernate will un-schedule the deletion.
@vritant vritant merged commit b257c6a into master May 31, 2016
@minicuts minicuts deleted the fnguyen/1337906-master branch August 11, 2016 18:04
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.

2 participants