8000 Prevent nested ssh from consuming while loop stdin by guoard · Pull Request #1368 · Altinity/clickhouse-backup · GitHub
[go: up one dir, main page]

Skip to content

Prevent nested ssh from consuming while loop stdin - #1368

Merged
Slach merged 5 commits into
Altinity:masterfrom
guoard:patch-1
May 20, 2026
Merged

Slach merged 5 commits into
Altinity:masterfrom
guoard:patch-1

Conversation

@guoard
@guoard guoard commented May 10, 2026
Copy link
Copy Markdown
Contributor

Fixed backup iteration over SSH.

The nested ssh command was consuming stdin from the while read loop, causing only the first backup to be processed. This change uses ssh -n to prevent stdin interference and ensures all backup metadata files are processed correctly.

@Slach Slach left a comment
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, thanks for contribution

@guoard
guoard commented May 14, 2026
Copy link
Copy Markdown
Contributor Author

Failed test is not related to changes:

2026-05-13 18:13:22.546 FTL failed to start test environments error="TestContainers(4).StartAll: start azure: create azure: Error response from daemon: No such image: mcr.microsoft.com/azure-storage/azurite:latest"

@guoard
guoard commented May 18, 2026
Copy link
Copy Markdown
Contributor Author

Rebased to master. @Slach PTAL.

@Slach Slach added this to the 2.7.0 milestone May 19, 2026
@Slach
Slach merged commit d3ef123 into Altinity:master May 20, 2026
51 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0