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

[OpenShift Integration] Add implementation of getEvents() to avoid busy wait #4411

Merged
merged 1 commit into from
Mar 20, 2017

Conversation

amisevsk
Copy link
Contributor

What does this PR do?

Add implementation of getEvents() to OpenShiftConnector. The added method simply discards events as they arrive, but can (and should) be extended to convert OpenShift events into Docker events to be tracked by Che in the future.

Adding the no-op implementation avoids the infinite loop of the previous empty method, lowering CPU usage.

What issues does this PR fix or reference?

Component of #2847.

Changelog

  • Reduce CPU usage when running on OpenShift

Release Notes

  • N/A

@amisevsk amisevsk requested a review from l0rd March 13, 2017 22:38
@codenvy-ci
Copy link

Can one of the admins verify this patch?

@amisevsk amisevsk force-pushed the openshift-getevents branch from bc40932 to 0549b9d Compare March 17, 2017 16:18
Copy link
Contributor

@l0rd l0rd left a comment

Choose a reason for hiding this comment

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

Thanks @amisevsk !

@l0rd l0rd merged commit 232c12c into eclipse-che:openshift-connector Mar 20, 2017
@JamesDrummond JamesDrummond added this to the 5.6.0 milestone Mar 30, 2017
@JamesDrummond JamesDrummond mentioned this pull request Apr 2, 2017
9 tasks
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