Skip to content

Conversation

@spadgett
Copy link
Member

The onClose callback for log streamers happens asynchronously. Make sure the onClose cleanup happens before we begin streaming the next container log.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1427289

@jwforres mostly whitespace changes

@spadgett spadgett requested a review from jwforres February 28, 2017 21:24
deferred.resolve();
});
streamer.stop();
streamer = null;
Copy link
Member Author

Choose a reason for hiding this comment

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

Already set to null at line 401 below

if($scope.state !== 'logs') {
// Prevent flicker switching from a container with an empty log
// to one with content.
if ($scope.state === 'empty') {
Copy link
Member

Choose a reason for hiding this comment

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

what happens if you go from empty to empty

Copy link
Member Author

Choose a reason for hiding this comment

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

@spadgett spadgett force-pushed the fix-log-switch-containers branch from b414f5a to ee1010e Compare February 28, 2017 21:44
@spadgett
Copy link
Member Author

@jwforres updated

@jwforres
Copy link
Member

[merge]

@jwforres
Copy link
Member

jwforres commented Feb 28, 2017 via email

@spadgett
Copy link
Member Author

[merge]

The `onClose` callback for log streamers happens asynchronously. Make
sure the `onClose` cleanup happens before we begin streaming the next
container log.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1427289
@spadgett spadgett force-pushed the fix-log-switch-containers branch from ee1010e to 1280382 Compare February 28, 2017 23:47
@spadgett
Copy link
Member Author

Pushed dist update [merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 1280382

@openshift-bot
Copy link

openshift-bot commented Mar 1, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1125/) (Base Commit: cfbf483)

@openshift-bot openshift-bot merged commit 15ba89f into openshift:master Mar 1, 2017
@spadgett spadgett deleted the fix-log-switch-containers branch March 1, 2017 12:46
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.

3 participants