We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c3e49 commit 6e34409Copy full SHA for 6e34409
cluster/log-dump/log-dump.sh
@@ -419,6 +419,7 @@ function dump_nodes() {
419
all_selected_nodes+=( "${windows_node_names[@]}" )
420
421
proc=${max_dump_processes}
422
+ start="$(date +%s)"
423
for i in "${!all_selected_nodes[@]}"; do
424
node_name="${all_selected_nodes[$i]}"
425
node_dir="${report_dir}/${node_name}"
@@ -438,6 +439,10 @@ function dump_nodes() {
438
439
if [[ proc -eq 0 ]]; then
440
441
wait
442
+ now="$(date +%s)"
443
+ if [[ ! -z "${LOG_DUMP_SSH_TIMEOUT}" && $((now - start)) -gt ${LOG_DUMP_SSH_TIMEOUT} ]]; then
444
+ break
445
+ fi
446
fi
447
done
448
# Wait for any remaining processes.
0 commit comments