Skip to content

fix: default stop handler exists only if informer started #1575

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

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Oct 27, 2022

No description provided.

@csviri csviri self-assigned this Oct 27, 2022
@csviri csviri requested a review from metacosm October 27, 2022 11:09
@@ -41,7 +41,7 @@ class InformerRelatedBehaviorITS {
KubernetesClient adminClient = new KubernetesClientBuilder().build();
InformerRelatedBehaviorTestReconciler reconciler;
String actualNamespace;
volatile boolean stopHandlerCalled = false;
volatile boolean stopHandlerCalledReplacement = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why replacement?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well, there is a default one originally

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
volatile boolean stopHandlerCalledReplacement = false;
volatile boolean replacementStopHandlerCalled = false;

would be more correct, imo, then.

Copy link
Collaborator Author

@csviri csviri Oct 27, 2022

Choose a reason for hiding this comment

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

changed from IDE

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 33 Code Smells

32.5% 32.5% Coverage
0.0% 0.0% Duplication

@csviri csviri merged commit f5ffcfb into next Oct 27, 2022
@csviri csviri deleted the default-stop-handler-improvements branch October 27, 2022 14:29
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