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

Adds microsecond timestamp precision on the asg_latest_update table #3484

Merged

Conversation

geofffranks
Copy link
Contributor

@geofffranks geofffranks commented Oct 19, 2023

This works around race conditions seen when policy-server-asg-syncer polls cloud_controller in between two ASG updates of the same second.

Fixes #3479

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

jrussett and others added 2 commits October 19, 2023 20:08
This works around race conditions seen when policy-server-asg-syncer
polls cloud_controller in between two ASG updates of the same second.

Fixes cloudfoundry#3479
- cloudfoundry#3479

Signed-off-by: Geoff Franks <gfranks@vmware.com>
Co-authored-by: Geoff Franks <gfranks@vmware.com>
Signed-off-by: Josh Russett <jrussett@vmware.com>
Co-authored-by: Josh Russett <jrussett@vmware.com>
@philippthun philippthun self-assigned this Oct 20, 2023
@philippthun philippthun removed their assignment Oct 20, 2023
…ration

Signed-off-by: Amelia Downs <adowns@vmware.com>
Co-authored-by: Amelia Downs <adowns@vmware.com>
@geofffranks
Copy link
Contributor Author

@philippthun sounds good, we made the requested changes on the migrations spec.

Thanks for all the feedback!

@philippthun philippthun merged commit a55bd95 into cloudfoundry:main Oct 27, 2023
6 checks passed
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.

Race condition with ASG syncing to policy server via /internal/v4/asg_latest_update
3 participants