tidwall / tile38

Real-time Geospatial and Geofencing
https://tile38.com
MIT License
9.15k stars 570 forks source link

Call the EXPIRE command hangs the server #67

Closed papa-stiflera closed 8 years ago

papa-stiflera commented 8 years ago

Call the EXPIRE command hangs the server. Ubuntu 16.04 LTS Release 1.5.0

./tile38-server 

   _______ _______
  |       |       |
  |____   |   _   |   Tile38 1.5.0 (4140065) 64 bit (amd64/linux)
  |       |       |   Port: 9851, PID: 3099
  |____   |   _   |
  |       |       |   tile38.com
  |_______|_______|

2016/10/16 17:41:18 [INFO] Server started, Tile38 version 1.5.0, git 4140065
2016/10/16 17:41:18 [INFO] AOF loaded 0 commands: 0.00s, 0/s, 0 bytes/s
2016/10/16 17:41:18 [INFO] The server is now ready to accept connections on port 9851
./tile38-cli 
127.0.0.1:9851> SCAN fleet
{"ok":true,"objects":[{"id":"truck1","object":{"type":"Point","coordinates":[-112.2693,33.5123]}},{"id":"truck2","object":{"type":"Point","coordinates":[-112.2693,33.5123]}},{"id":"truck3","object":{"type":"Point","coordinates":[-112.2693,33.5123]}}],"count":3,"cursor":0,"elapsed":"88.31µs"}
127.0.0.1:9851> EXPIRE fleet truck3 5
{"ok":true,"elapsed":"11.786µs"}
127.0.0.1:9851> EXPIRE fleet truck3 10
{"ok":true,"elapsed":"11.768µs"}

Then server is hangs after call the SERVER (or STATS) command.

tidwall commented 8 years ago

Thanks for reporting this issue. I just pushed an update to the master branch that fixes it.