Skip to content

[py/loader] Unlock stickyLock before calling check.Configure#266

Merged
olivielpeau merged 2 commits intomasterfrom
olivielpeau/regression-sticky-lock
May 26, 2017
Merged

[py/loader] Unlock stickyLock before calling check.Configure#266
olivielpeau merged 2 commits intomasterfrom
olivielpeau/regression-sticky-lock

Conversation

@olivielpeau
Copy link
Copy Markdown
Member

What does this PR do?

Fixes a regression introduced in #262

check.Configure uses its own stickyLock (as the convention of the
exported method indicates), so we must unlock our lock before calling
it.

Motivation

Half of the agent6s installed on staging propjoes are crashing because of this.

`check.Configure` uses its own stickyLock (as the convention of the
exported method indicates), so we must unlock our lock before calling
it.
I had missed an unlock before a `return` statement. Let's lock and unlock
a new stickyLock every time we need it to be on the safe side.
Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Thanks for the fix... goroutine safety first! Always! ;)

@olivielpeau olivielpeau merged commit 3bdb8a2 into master May 26, 2017
@olivielpeau olivielpeau deleted the olivielpeau/regression-sticky-lock branch May 26, 2017 22:39
s-alad added a commit that referenced this pull request Jan 6, 2026
…266)

* Bump github.com/aws/aws-sdk-go-v2/service/ssm from 1.67.3 to 1.67.4

Bumps [github.com/aws/aws-sdk-go-v2/service/ssm](https://github.com/aws/aws-sdk-go-v2) from 1.67.3 to 1.67.4.
- [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
- [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json)
- [Commits](aws/aws-sdk-go-v2@service/ecs/v1.67.3...service/ecs/v1.67.4)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go-v2/service/ssm
  dependency-version: 1.67.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* licenses

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: s-alad <saad.naji@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants