MINOR Always keep thread dumps after build timeouts

Reviewers: Matthias J. Sax <matthias@confluent.io>
This commit is contained in:
David Arthur 2025-02-14 20:36:01 -05:00 committed by GitHub
parent 36fd33a9d9
commit e330f0bf25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -27,9 +27,5 @@ do
echo "Dumping threads for GradleWorkerMain pid $GRADLE_WORKER_PID into $FILENAME"; echo "Dumping threads for GradleWorkerMain pid $GRADLE_WORKER_PID into $FILENAME";
FILENAME="thread-dumps/GradleWorkerMain-$GRADLE_WORKER_PID.txt" FILENAME="thread-dumps/GradleWorkerMain-$GRADLE_WORKER_PID.txt"
jstack $GRADLE_WORKER_PID > $FILENAME jstack $GRADLE_WORKER_PID > $FILENAME
if ! grep -q "kafka" $FILENAME; then
echo "No match for 'kafka' in thread dump file $FILENAME, discarding it."
rm $FILENAME;
fi;
sleep 5; sleep 5;
done; done;