Skip to content

Commit

Permalink
Merge pull request #916 from gbregman/devel
Browse files Browse the repository at this point in the history
Abort gateway in case of SPDK ping failure.
  • Loading branch information
gbregman authored Oct 27, 2024
2 parents 76aed58 + f72e3cd commit eec58f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion control/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,9 @@ def keep_alive(self):
consecutive_ping_failures += 1
if consecutive_ping_failures >= allowed_consecutive_spdk_ping_failures:
self.logger.critical(f"SPDK ping failed {consecutive_ping_failures} times, aborting")
break
raise SystemExit(f"SPDK ping failed, quitting gateway")
else:
self.logger.warning(f"SPDK ping failed {consecutive_ping_failures} times, will keep trying")
else:
consecutive_ping_failures = 0

Expand Down

0 comments on commit eec58f7

Please sign in to comment.