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

bcftools concat retry mechanisms? #2245

Open
graphenn opened this issue Aug 6, 2024 · 2 comments
Open

bcftools concat retry mechanisms? #2245

graphenn opened this issue Aug 6, 2024 · 2 comments
Labels
htslib-dependent Cannot be fixed until htslib is fixed

Comments

@graphenn
Copy link

graphenn commented Aug 6, 2024

For the bcftools concat function, could we add some retry mechanisms when directly accessing s3 files? I am using bcftools concat to directly concatenate a large number of vcf files. Due to the huge volume, if there are network fluctuations during the concatenation process, the connection is prone to aborting halfway, resulting in a "software caused connection abort" error. This makes it difficult to successfully complete the concatenation. Would it be possible to add some retry mechanisms, such as retrying three times, which could significantly improve this situation of concatenation failures?

Currently, I am unable to reproduce this issue, presumably because the network fluctuations have subsided. Unfortunately, I didn't save the log. I recall that before the "software caused connection abort" error, there was an "[E::hts_hopen]" error

@pd3
Copy link
Member

pd3 commented Aug 28, 2024

I can imagine this, probably best done at htslib level and maybe controlled by an environment variable.

@pd3 pd3 added the htslib-dependent Cannot be fixed until htslib is fixed label Aug 28, 2024
@pd3
Copy link
Member

pd3 commented Sep 12, 2024

Just to link it to a related issue in htslib: samtools/htslib#1424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
htslib-dependent Cannot be fixed until htslib is fixed
Projects
None yet
Development

No branches or pull requests

2 participants