s3tables: Add log message when cluster shutdown times out
The timeout path (2 second wait for graceful shutdown) was silent. Add a warning log message when it occurs to help diagnose flaky test issues and indicate when the mini cluster didn't shut down cleanly.
This commit is contained in:
@@ -525,6 +525,8 @@ func (c *TestCluster) Stop() {
|
|||||||
// Goroutine finished
|
// Goroutine finished
|
||||||
case <-timer.C:
|
case <-timer.C:
|
||||||
// Timeout - goroutine doesn't respond to context cancel
|
// Timeout - goroutine doesn't respond to context cancel
|
||||||
|
// This may indicate the mini cluster didn't shut down cleanly
|
||||||
|
c.t.Log("Warning: Test cluster shutdown timed out after 2 seconds")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset the global cmdMini flags to prevent state leakage to other tests
|
// Reset the global cmdMini flags to prevent state leakage to other tests
|
||||||
|
|||||||
Reference in New Issue
Block a user