| commit | 7e1b684694b9bbb02a2a8853678b2e87ad441a3f | [log] [tgz] | 
|---|---|---|
| author | Karen Huddleston <khuddleston@vmware.com> | Wed Jul 31 18:31:15 2024 -0700 | 
| committer | Max Yang <79948451+my-ship-it@users.noreply.github.com> | Wed Jul 23 10:58:10 2025 +0800 | 
| tree | 07b4ee77edaf8198f3fabc99e8415592128b2680 | |
| parent | 87ad28e303e586d188dafea25786a15ac882cccd [diff] | 
Retry failed ssh commands in ExecuteClusterCommand We pass in maxAttempts and retry until the command passes. If there is an error, we collect it in the command.RetryError variable. We have ways to log messages for commands that were retried but eventually passed, along with continuing to log failed commands like we used to. We test the command retry with a script that increments a number and exits 1 until the number gets high enough to simulate failing and then passing.. Have GenerateAndExecuteCommand use retries by default. This seems to only be used by gpbackup and we know we want to use retries in that utility.
This project is a fork of the Greenplum gp-common-go-libs, which is a dependency for the gpbackup utility in Cloudberry.
Please note that this repository is only maintained for Cloudberry 1.0 and its later versions.
Licensed under Apache License Version 2.0. For more details, please refer to the LICENSE.
Thanks to all the gp-common-go-libs contributors, more details in its GitHub page.