varfish-org / annonars

Genome annotation based on Rust and RocksDB
Apache License 2.0
7 stars 0 forks source link

Quering variants on ranges returns 500 error on huge ranges #444

Open gromdimon opened 7 months ago

gromdimon commented 7 months ago

Describe the bug There is an endpoint for quering for variants on specific position range. E.x.

 https://reev.cubi.bihealth.org/internal/proxy/annonars/annos/range?genome_release=<>&chromosome=<>&start=<>&stop=<>

To Reproduce Steps to reproduce the behavior:

  1. Go to https://reev.cubi.bihealth.org/internal/proxy/annonars/annos/range?genome_release=grch37&chromosome=16&start=688105&stop=68869440 Or to https://reev.cubi.bihealth.org/internal/proxy/annonars/annos/range?genome_release=grch37&chromosome=10&start=89624226&stop=89725229
  2. 500 error will be returned

Expected behavior A proper 400-series error should be returned without server crash

Screenshots N/A

Additional context N/A

holtgrewe commented 4 months ago

Will be addressed by #502. In particular, your first query goes from/to

   688105
68869440

So it will query 68Gbp (!)

Your second one goes over 100kbp, still

89 624 226
89 725 229