Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
gravel: gstate: close kvstore on shutdown
Browse files Browse the repository at this point in the history
Without this, KV's cluster connect thread hangs around forever if you
try to stop the aquarium service (well, it hangs around for a minute
and a half until systemd gets sick of asking nicely and just kills the
process - still, better to do this cleanly).

Signed-off-by: Tim Serong <tserong@suse.com>
  • Loading branch information
tserong committed Aug 19, 2021
1 parent 48b54e2 commit 5f209e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gravel/controllers/gstate.py
Expand Up @@ -173,6 +173,7 @@ async def start(self) -> None:

async def shutdown(self) -> None:
self._is_shutting_down = True
await self._kvstore.close()
logger.info("shutdown!")
await self.tick_task

Expand Down

0 comments on commit 5f209e9

Please sign in to comment.