`GEOSEARCH` / `GEORADIUS` with a negative radius hangs
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start at the reported call path from redis::CommandGeoRadius::Execute through redis::Geo::Radius and SearchStore to GeoHashHelper::GetAreasByShapeWGS84 in geohash.cc:362 and :376. Run the reproduction for both GEOSEARCH and GEORADIUS; done means each negative radius returns an error instead of hanging, and the server still answers PING.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Search before asking
- I had searched in the issues and found no similar issues.
Version
Kvrocks unstable at commit 71f3810d1b (71f3810d1b8cfd4a8ca867b0fca6659e3d863ad2).
Minimal reproduce step
Start an empty server and run:
GEOADD g 1 1 m
GEOSEARCH g FROMLONLAT 1 1 BYRADIUS -1 km
What did you expect to see?
> GEOADD g 1 1 m
(integer) 1
> GEOSEARCH g FROMLONLAT 1 1 BYRADIUS -1 km
(error) ERR radius cannot be negative
> GEORADIUS g 1 1 -1 km
(error) ERR radius cannot be negative
What did you see instead?
> GEOADD g 1 1 m
(integer) 1
> GEOSEARCH g FROMLONLAT 1 1 BYRADIUS -1 km
(no reply)
Anything Else?
The command never returns, and PING on a new connection also stopped answering. GEORADIUS g 1 1 -1 km behaves the same.
redis::CommandGeoRadius::Execute
redis::Geo::Radius
redis::Geo::SearchStore
GeoHashHelper::GetAreasByShapeWGS84(GeoShape&) geohash.cc:362
GeoHashHelper::GetAreasByShapeWGS84(GeoShape&) geohash.cc:376
Are you willing to submit a PR?
- I'm willing to submit a PR!
- Lingua principale
- C++
- Stelle
- 4.5k
- Fork
- 689
- Merge medio
- 2g 1h
- PR unite (30g)
- 35
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/kvrocks
-
HSETEXPIRE with an overflowing TTL returns OK and deletes the whole hashForse già presa @anubhavgupta121 l’ha presa 19 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
A blocked client that is woken but loses the element to another client is never woken againForse già presa @ggyuchive l’ha presa oggi. Apertabug
Difficoltà 4/5 1-2 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
SSCAN, HSCAN, ZSCAN don't finish when an empty-string member is returned at the end of a pageForse già presa @ggyuchive l’ha presa 3 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
`ZDIFFSTORE` and `ZINTERSTORE` with numkeys 0 crash the server (SIGSEGV)Forse già presa @siddiqueirshad l’ha presa 10 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Support the `SUNIONCARD` commandForse già presa @PoisonGodv l’ha presa 5 giorni fa. Apertaenhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
apache/kvrocks#3723 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di apache/kvrocks
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Niko1221/Strata#5560 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
NVIDIA windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
要トリアージ 辞書
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
yksr-melt/Meltype#1625 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
[yugabyted] xcluster set_up and add_to_replication fail for database names containing - . or (Apertakind/bug priority/medium qa_automation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
yugabyte/yugabyte-db#37324 ·
I maintainer di solito rispondono entro 1 giorno