Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Fix duplicate host issue for aurora scheduler, DTCPIOPS-5221 #445

Merged
merged 4 commits into from
Jun 22, 2022

Conversation

lawwong1
Copy link
Contributor

@lawwong1 lawwong1 commented Jun 3, 2022

Description:

This PR fixes duplicate host issue for aurora scheduler.
Re-write the code to fix the issue, and still keep O(n) in processing response for efficiency to scale.

Testing Done:

Set up a local cluster by cloning repo: https://github.com/lenhattan86/aurora-docker
Instructions in https://engineering.paypalcorp.com/confluence/pages/viewpage.action?spaceKey=GE&title=Aurora+scheduler+development+environment+and+test+setup, section Setup Aurora Scheduler testing environment.
Change magicmatch/docker-compose.yml to have offers with 2 duplicate hostname to test the issue.

Copy link
Collaborator

@lenhattan86 lenhattan86 left a comment

Choose a reason for hiding this comment

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

  • at line 260 of HttpOfferSetImpl, can we change catch (IOException e) to catch (Exception e) so that we wont be worry if something wrong happens and caused aurora-scheduler stuck in a scheduling cycle.
  • can we address this issue track the number of offers filtered out by scheduler plugins #401 in this PR too? if badOffers are filtered out in line 227 of HttpOfferSetImpl, we should keep track this number too.

Copy link
Collaborator

@lenhattan86 lenhattan86 left a comment

Choose a reason for hiding this comment

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

great work Lawrence.
Can you add more details into description of this PR? change & test done.

@lenhattan86 lenhattan86 merged commit 235e6a5 into aurora-scheduler:master Jun 22, 2022
@lenhattan86 lenhattan86 added the java Pull requests that update Java code label Jun 27, 2022
@lenhattan86 lenhattan86 added this to the 0.27.0 milestone Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants