Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Use self.host property once in get_event_stream #640

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

sharego
Copy link
Contributor

@sharego sharego commented Jun 19, 2019

self.host cycles through available Marathon URLs, and it was accessed twice in get_event_stream, which made it access the same Marathon instance, if two URLs were supplied, which is especially profound if the instance being accessed over and over again is down.

There is twice get on the host attribute, when we setup with two marathons, the first is online and the second is offline. It will always requests the bad marathon.
@mesosphere-ci
Copy link

Can one of the admins verify this patch?

2 similar comments
@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@jkoelker
Copy link
Contributor

ok to test

@ichernetsky ichernetsky changed the title Fix twice property get bug in function get_event_stream Use self.host property once in get_event_stream Jul 24, 2019
@ichernetsky
Copy link
Contributor

@sharego, thanks a lot for your contribution and your patience. I reviewed the patch, and I will make sure that it gets merged in no time.

@ichernetsky ichernetsky merged commit ecaefae into d2iq-archive:master Jul 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants