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

1338950: prevent successful concurrent imports #1274

Merged
merged 1 commit into from Jun 28, 2016

Conversation

vritant
Copy link
Contributor

@vritant vritant commented Jun 14, 2016

in 0.9.54, there is a rare chance ( not reproducable ) that two concurrent reports can result in two records in the cp_export_metadata table for the same "type" . Given the current code, this prevents any future manifest activity ( delete / import / refresh ) because our query expects there to be a unique owner and type ( user / system ) combination for every record.
we are adding a constraint that prevents this situation in the reported branch. in candlepin 2.0, we shall lock the owner and more.
more details in the bz!

@vritant
Copy link
Contributor Author

vritant commented Jun 15, 2016

@candlepin-pull-request-bot re-test this please

@mstead
Copy link
Contributor

mstead commented Jun 16, 2016

Would be nice for commit message / PR description to have some context as to what the change does.

@vritant
Copy link
Contributor Author

vritant commented Jun 20, 2016

@mstead done

@Ceiu
Copy link
Contributor

Ceiu commented Jun 28, 2016

conditional ack:
the import functionality as a whole needs to be revisited in the future, as there are other issues and dead code lurking about.

@Ceiu Ceiu merged commit 5e63ce6 into candlepin-0.9.54-HOTFIX Jun 28, 2016
@vritant
Copy link
Contributor Author

vritant commented Jun 28, 2016

@vritant vritant deleted the vritant/1337833 branch July 14, 2016 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants