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

Fixes failing router integration test #12783

Merged
merged 1 commit into from
Feb 3, 2017
Merged

Conversation

ramr
Copy link
Contributor

@ramr ramr commented Feb 2, 2017

Fix failing router integration tests - use watch.Deleted event on the endpoints to ensure we do a valid transition Deleted -> Added instead of Modified -> Added for the events we are simulating in
the test code.

Otherwise the event queue code panics and kills the cache reflector
goroutine which causes events to never be delivered to the test router process.
fixes #12736

Associated error in the logs was

I0131 15:40:08.587336       1 reflector.go:392] github.com/openshift/origin/pkg/router/controller/factory/factory.go:75: Watch close - *api.Endpoints total 1 items received
E0131 15:40:08.588072       1 runtime.go:64] Observed a panic: "Invalid state transition: MODIFIED -> ADDED" (Invalid state transition: MODIFIED -> ADDED)

There is a the panic is logged in
https://github.com/openshift/origin/blob/master/pkg/client/cache/eventqueue.go#L132
which causes the cache.NewReflector goroutine (in pkg/router/controller/factory/factory.go) to die off and no events get delivered in the tests causing failures further down the road.

fixes #12736

@knobunc PTAL Thx

…sition

Deleted -> Added instead of Modified -> Added.
Otherwise the event queue code panics and kills the cache reflector
goroutine which causes events to never be delivered to the test router process.
fixes openshift#12736
@smarterclayton
Copy link
Contributor

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 0ed96c6

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13540/) (Base Commit: 89ed457)

@smarterclayton
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 0ed96c6

@openshift-bot
Copy link
Contributor

openshift-bot commented Feb 3, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/13554/) (Base Commit: 97275c6) (Image: devenv-rhel7_5845)

@openshift-bot openshift-bot merged commit 0698513 into openshift:master Feb 3, 2017
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.

TestRouter Integration Flake
3 participants