apache / shardingsphere-on-cloud

A collection of tools and best practices to take ShardingSphere into the cloud
Apache License 2.0
83 stars 28 forks source link

🐞 bug: Each time PITR backup, the gs_probackup init operation is performed, and the agent reports an error. #483

Closed peilinqian closed 8 months ago

peilinqian commented 8 months ago

Environment

Issue description

Error log

{"level":"error","ts":"2023-12-26T10:36:03+08:00","caller":"pkg/opengauss.go:196","msg":"add instance failure[output=], err: exec failure[ee=exit status 1,stdout=ERROR: Instance 'ins-default-ss' backup directory already exists: '/home/peilq_og_sub/basebackup/backups/ins-default-ss'\n], wrap:10003-Command operate failed., wrap: 10006-The instance already exist."}

Expected result

The gs_probackup init operation is performed for each PITR backup. The agent displays a message but does not report an error.

mlycore commented 8 months ago

The error was logged and returned, and this may cause backup execution interruption in previous version.

And this is fixed as below: