Skip to content

Fix Flaky Event Processor Test #1042

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

Closed
csviri opened this issue Mar 16, 2022 · 0 comments · Fixed by #1044
Closed

Fix Flaky Event Processor Test #1042

csviri opened this issue Mar 16, 2022 · 0 comments · Fixed by #1044
Assignees

Comments

@csviri
Copy link
Collaborator

csviri commented Mar 16, 2022

2022-03-16 09:27:49,202 109 i.j.o.p.e.EventProcessor       [DEBUG] Event processing finished. Scope: ExecutionScope{ resource id: CustomResourceID{name='876c69ed-4f6e-414a-a9dc-da0045f42a44', namespace='default-event-handler-test'}, version: 1}, PostExecutionControl: PostExecutionControl{onlyFinalizerHandled=false, updatedCustomResource=null, runtimeException=null}
 2022-03-16 09:27:49,202 109 i.j.o.p.e.EventProcessor       [DEBUG] Cleanup for successful execution for resource: 876c69ed-4f6e-414a-a9dc-da0045f42a44
 2022-03-16 09:27:49,228 1 i.j.o.p.e.EventProcessor       [DEBUG] Received event: ResourceEvent{action=UPDATED, associated resource id=CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}}
 2022-03-16 09:27:49,228 1 i.j.o.p.e.EventProcessor       [DEBUG] Marking event received for: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}
 2022-03-16 09:27:49,229 1 i.j.o.p.e.EventProcessor       [DEBUG] Executing events for custom resource. Scope: ExecutionScope{ resource id: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}, version: 1}
 2022-03-16 09:27:49,229 1 i.j.o.p.e.EventProcessor       [DEBUG] Received event: ResourceEvent{action=UPDATED, associated resource id=CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}}
 2022-03-16 09:27:49,229 1 i.j.o.p.e.EventProcessor       [DEBUG] Marking event received for: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}
 2022-03-16 09:27:49,229 1 i.j.o.p.e.EventProcessor       [DEBUG] Skipping executing controller for resource id: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}. Controller in execution: true. Latest Resource present: true
 2022-03-16 09:27:49,231 112 i.j.o.p.e.EventProcessor       [DEBUG] Event processing finished. Scope: ExecutionScope{ resource id: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}, version: 1}, PostExecutionControl: PostExecutionControl{onlyFinalizerHandled=false, updatedCustomResource=null, runtimeException=java.lang.RuntimeException: test}
 2022-03-16 09:27:49,231 112 i.j.o.p.e.EventProcessor       [DEBUG] New events exists for for resource id: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}
 2022-03-16 09:27:49,232 112 i.j.o.p.e.EventProcessor       [DEBUG] Executing events for custom resource. Scope: ExecutionScope{ resource id: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}, version: 1}
 2022-03-16 09:27:49,233 112 i.j.o.p.e.EventProcessor       [DEBUG] Event processing finished. Scope: ExecutionScope{ resource id: CustomResourceID{name='2f4492ba-015d-45ab-92ac-d3119c9e6997', namespace='default-event-handler-test'}, version: 1}, PostExecutionControl: PostExecutionControl{onlyFinalizerHandled=false, updatedCustomResource=null, runtimeException=null}
 2022-03-16 09:27:49,233 112 i.j.o.p.e.EventProcessor       [DEBUG] Cleanup for successful execution for resource: 2f4492ba-015d-45ab-92ac-d3119c9e6997
 2022-03-16 09:27:49,245 1 i.j.o.p.e.EventProcessor       [DEBUG] Received event: ResourceEvent{action=UPDATED, associated resource id=CustomResourceID{name='f356f956-f239-4a4f-ac2e-0a61bf1f3fdc', namespace='default-event-handler-test'}}
 2022-03-16 09:27:49,245 1 i.j.o.p.e.EventProcessor       [DEBUG] Marking event received for: CustomResourceID{name='f356f956-f239-4a4f-ac2e-0a61bf1f3fdc', namespace='default-event-handler-test'}
 2022-03-16 09:27:49,245 1 i.j.o.p.e.EventProcessor       [DEBUG] Executing events for custom resource. Scope: ExecutionScope{ resource id: CustomResourceID{name='f356f956-f239-4a4f-ac2e-0a61bf1f3fdc', namespace='default-event-handler-test'}, version: 1}
 2022-03-16 09:27:49,255 114 i.j.o.p.e.EventProcessor       [DEBUG] Event processing finished. Scope: ExecutionScope{ resource id: CustomResourceID{name='f356f956-f239-4a4f-ac2e-0a61bf1f3fdc', namespace='default-event-handler-test'}, version: 1}, PostExecutionControl: null
 2022-03-16 09:27:49,256 114 i.j.o.p.e.EventProcessor       [DEBUG] Cleanup for successful execution for resource: f356f956-f239-4a4f-ac2e-0a61bf1f3fdc
Error: ] Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.775 s <<< FAILURE! - in io.javaoperatorsdk.operator.processing.event.EventProcessorTest
Error:  io.javaoperatorsdk.operator.processing.event.EventProcessorTest.successfulExecutionResetsTheRetry  Time elapsed: 0.031 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 

expected: 1
 but was: 0
	at io.javaoperatorsdk.operator.processing.event.EventProcessorTest.successfulExecutionResetsTheRetry(EventProcessorTest.java:170)

@csviri csviri self-assigned this Mar 16, 2022
@csviri csviri linked a pull request Mar 17, 2022 that will close this issue
@jmrodri jmrodri closed this as completed Mar 17, 2022
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 a pull request may close this issue.

2 participants