-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: avoid to check backup container ID if pod container statuses are missing #4765
Conversation
❗ By default, the pull request is configured to backport to all release branches.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see other occurrences of ContainerStatuses[0]
, worth fixing while you're here.
And perhaps check for other [0]
...
I put the focus on the error in the log, but It makes sense to fix them too. |
60f44c7
to
7ef24f9
Compare
/test feature_type=backup-restore test_level=4 |
@jsilvela, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/9365377472 |
manually took out the ok-to-merge flag since I only tested the backup tests in the slash-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this patch is fixing the underlying issue, we could easily prevent this specific bug from happening in the future, too.
We could change the signature of SetAsStarted
to accept the pod name and the container ID, instead of accepting a pointer to the whole Pod. That would force us to actually check what is really happening.
… missing Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com>
Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com>
Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com>
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@gmail.com>
Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com>
/ok-to-merge Amazing!!! They're all green!!! |
…ng (#4765) Closes #4767 Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> (cherry picked from commit 9515ee7)
…ng (#4765) Closes #4767 Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> (cherry picked from commit 9515ee7)
…ng (#4765) Closes #4767 Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> (cherry picked from commit 9515ee7)
…ng (cloudnative-pg#4765) Closes cloudnative-pg#4767 Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com> Signed-off-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Signed-off-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> Co-authored-by: Jaime Silvela <jaime.silvela@enterprisedb.com> Co-authored-by: Leonardo Cecchi <leonardo.cecchi@gmail.com> Signed-off-by: Douglass Kirkley <dkirkley@eitccorp.com>
Closes #4767