Skip to content

Conversation

@rosalind210
Copy link
Contributor

@rosalind210 rosalind210 commented Feb 4, 2021

Sometimes there's an issue connecting to Mesos master and the alert that went off was a Mesos4xxException, stating that the framework is no longer subscribed to master. When that happens, we want to throw an exception to be picked up by the SingularityMesosSchedulerImpl to pause and reconnect. This is done on a separate thread so as to not disrupt the current one.

Unit tests check that the new function checkAndReconnect only attempts a reconnect when the exception is the correct exception.

@rosalind210 rosalind210 changed the title WIP: Throw exception to resubscribe to mesos Throw exception to resubscribe to mesos Feb 5, 2021
@ssalinas ssalinas added the staging Merged to staging branch label Feb 8, 2021
@ssalinas
Copy link
Member

ssalinas commented Feb 8, 2021

🚢

@rosalind210 rosalind210 merged commit caed1df into master Feb 8, 2021
@rosalind210 rosalind210 deleted the resubscribe_mesos_cluster branch February 8, 2021 20:13
@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staging Merged to staging branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants