Skip to content

Conversation

ds-akloskowski
Copy link
Contributor

Fix for a problem described in #2885.

The changed code causes that when visited flag is changed to true, we are sure that readyPostconditionResult was checked before. In previous version, visited flag set to true and readyPostconditionResult equals null could describe two situations:

  1. A resource was visited and its readyPostcondition is null.
  2. A resource was visited and its readyPostcondition exists, but wasn't wasn't checked (race condition).

The changed code doesn't let the second situation to happen.

@openshift-ci openshift-ci bot requested review from csviri and xstefank August 6, 2025 10:14
Signed-off-by: Adrian Kłoskowski <adrian.kloskowski@ds.pl>
@csviri
Copy link
Collaborator

csviri commented Aug 7, 2025

Makes sense, thank you @ds-akloskowski

@csviri csviri merged commit 4bb58aa into operator-framework:main Aug 7, 2025
25 checks passed
@metacosm
Copy link
Collaborator

metacosm commented Aug 8, 2025

Thank you!

dongjoon-hyun added a commit to apache/spark-kubernetes-operator that referenced this pull request Sep 25, 2025
### What changes were proposed in this pull request?

This PR aims to upgrade `operator-idk` to 5.1.3.

### Why are the changes needed?

To bring the latest bug fixes.
- https://github.com/operator-framework/java-operator-sdk/releases/tag/v5.1.3
  - operator-framework/java-operator-sdk#2886
  - operator-framework/java-operator-sdk#2899

### Does this PR introduce _any_ user-facing change?

No behavior change.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #343 from dongjoon-hyun/SPARK-53711.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

4 participants