[PSM Interop] Temporary remedy for the issue with pod log dups (#32922)
While a proper fix is on the way, this mitigates the number of duplicated container logs in the xds test server/client pod logs. The issue is that we only wait between stream restarts when an exception is caught, which isn't always the reason the stream gets broken. Another reason is the main container being shut down by k8s. In this situation, we essentially do ```py while True: try: restart_stream() read_all_logs_from_pod_start() except Exception: logger.warning('error') wait_seconds(1) ``` This PR makes it ```py while True: try: restart_stream() read_all_logs_from_pod_start() except Exception: logger.warning('error') finally: wait_seconds(5) ```pull/32621/head^2
parent
7955bfaa4b
commit
2fe7b5b881
1 changed files with 2 additions and 1 deletions
Loading…
Reference in new issue