Closed Habush closed 4 years ago
@Habush I'm not familiar with Apache Ignite. VCFFileReaders
are not generally thread safe or serializable, so if you're trying to share a reader across multiple threads or machines you're going to have trouble. I would recommended opening an independent reader in each thread and using and index to query multiple independent regions instead of trying to share 1 reader.
If you're trying to read vcfs across multiple machines then there is a downstream project DISQ which is an implementation of bam/vcf reading in a distributed way using apache spark. You may be able to either use it directly or adopt some ideas from it's implementation.
@lbergelson Thank you for pointing me to DISQ, I'll check it out.
Description of the issue:
I am trying to distribute vcf file contents across multiple machines to access in-memory using Apache Ignite. I am saving
VCFFileReader
object and retrieving it later toquery
for a specific variant. Here is a snippet of code that might explain what I am trying to do:Executing the above code results in the error below Provide screenshots , stacktraces , or logs where appropriate.
Your environment:
Steps to reproduce
If you're reporting a bug, tell us how to reproduce this issue. If possible, include a short code snippet or attach test data to demonstrate the problem.
Expected behaviour
It should query the variant by position and return a
Closeable<VariantContext>
Actual behaviour
It runs into
java.lang.InternalError
Any pointers as to why this is happening and how I can fix it will great. Thanks.