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

Y24-186 - [BUG] GBS Stock Manifest upload created duplicate samples #4193

Closed
andrewsparkes opened this issue Jul 9, 2024 · 5 comments
Closed
Assignees
Labels
Bug Bug in code Research Research only

Comments

@andrewsparkes
Copy link
Member

Describe the bug
A GBS Stock plate manifest containing 41 plates was uploaded and samples created then 6 minutes later a duplicated set of samples were created in the wells. See events. 2 aliquots each with the same sample per well. Manifest id 24721.

RT Ticket Number
806313

To Reproduce
Steps to reproduce the behaviour:
Neil tried to replicate this in Training but was unable to do so.
Suggests an inconsistent error.

Expected behaviour
The re-upload (if that is indeed what they did, check logs) should not have allowed a second set of aliquots and samples to be created in the existing wells.

Additional context
Neil will correct the data for this manifest in production.
These GBS Stock plates were the only ones with duplicated samples. i.e. the manifest normally works.
So this might be difficult to replicate and fix.

@psd-issuer psd-issuer bot changed the title [BUG] GBS Stock Manifest upload created duplicate samples Y24-186 - [BUG] GBS Stock Manifest upload created duplicate samples Jul 9, 2024
@stevieing stevieing added the Research Research only label Jul 11, 2024
@SujitDey2022 SujitDey2022 added the Bug Bug in code label Jul 18, 2024
@BenTopping BenTopping self-assigned this Aug 5, 2024
@BenTopping
Copy link
Contributor

BenTopping commented Aug 7, 2024

Research doc: https://docs.google.com/document/d/1lqEPpsqYH2tYW3xytTirgTZrCWbAbRTrXYag5o7uT5g/edit?usp=sharing

TLDR: Suspected edge case concurrency issue when uploading large manifests concurrently. No immediate further action required but we could add a bug fix if we think it is worth it.

@KatyTaylor
Copy link
Contributor

Good investigation, thanks! Does seem fairly low priority to fix it, seeing as it has only happened once that we're aware of. We could warn the SSRs not to re-upload until the first upload has finished? Presumably the UI shows you when it's finished?

@BenTopping
Copy link
Contributor

Good investigation, thanks! Does seem fairly low priority to fix it, seeing as it has only happened once that we're aware of. We could warn the SSRs not to re-upload until the first upload has finished? Presumably the UI shows you when it's finished?

Yes I don't think it is urgent, maybe I should make a story in case it comes up again in the future? If it does happen again it is also fairly trivial to manually fix.
The UI just waits until it is done then redirects the user to the manifests page with an alert on whether it was successful or not.

@andrewsparkes
Copy link
Member Author

Added a few comments.
Good investigation and impressed you managed to replicate the issue.
Bit surprised it is so slow to process the files. Think the user just thought it was hanging or had failed and re-uploaded it.

@BenTopping
Copy link
Contributor

Closing in favour of the follow on bug fix for this story #4266.

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

No branches or pull requests

5 participants