Skip to content
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 map status when MapConfig creation failed [CN-1226] #1148

Merged
merged 1 commit into from
May 21, 2024

Conversation

SeriyBg
Copy link
Contributor

@SeriyBg SeriyBg commented May 16, 2024

User Impact

When MapConfig creation fails to apply, the Map status will be set to Failed

@SeriyBg SeriyBg added the bug Something isn't working label May 16, 2024
@SeriyBg SeriyBg added this to the 5.13.0 milestone May 16, 2024
@SeriyBg SeriyBg requested a review from a team as a code owner May 16, 2024 14:40
@SeriyBg SeriyBg requested review from hasancelik and semihbkgr and removed request for a team May 16, 2024 14:40
Copy link

✅ All tests have passed

Total Tests 🔴 Failures 🟠 Errors ⚪ Skipped
OS 122 0 0 85
EE 122 0 0 61
Failed Tests
OS
EE

@SeriyBg SeriyBg added fix This type is used to identify changes related to backward-compatible bug fixes and removed bug Something isn't working labels May 21, 2024
@@ -137,8 +137,8 @@ func (r *MapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.R

ms, err := r.ReconcileMapConfig(ctx, m, h, cl, createdBefore)
if err != nil {
return updateMapStatus(ctx, r.Client, m, recoptions.RetryAfter(retryAfterForMap),
withMapState(hazelcastv1alpha1.MapPending),
Copy link
Collaborator

Choose a reason for hiding this comment

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

@SeriyBg What about if I apply the correct configuration via the same Map CR? Will it be updated as Pending then Success?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it will eventually go the same way as usual

@SeriyBg SeriyBg requested a review from hasancelik May 21, 2024 11:01
@SeriyBg SeriyBg merged commit 0b7b260 into main May 21, 2024
69 checks passed
@SeriyBg SeriyBg deleted the CN-1226-map-status branch May 21, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix This type is used to identify changes related to backward-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants