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

Update module github.com/ReneKroon/ttlcache/v2 to v3 #37524

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

dashpole
Copy link
Contributor

Description

Supersedes #36209

Most of the changes are obvious renames or refactors. The non-obvious changes are:

  • Start() must now be called on the cache to enable cleanup in the background.
  • Stop() can only be called once (or it will block indefinitely). I've added a sync.Once to ensure it is only ever called once.
  • Set() and Get() no longer return errors--even if Stop has already been called. This makes some of our tests obsolete, and I removed those tests.

Link to tracking issue

Fixes #36112

@dashpole dashpole added dependencies Pull requests that update a dependency file receiver/googlecloudspanner labels Jan 28, 2025
@dashpole dashpole marked this pull request as ready for review January 28, 2025 18:12
@dashpole dashpole requested a review from a team as a code owner January 28, 2025 18:12
@dashpole
Copy link
Contributor Author

cc @codeboten

@dashpole
Copy link
Contributor Author

cc @dsimil @KiranmayiB @harishbohara11

Would appreciate a review from one of you

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Thanks @dashpole!

@codeboten codeboten merged commit fea51b2 into open-telemetry:main Feb 3, 2025
166 checks passed
@github-actions github-actions bot added this to the next release milestone Feb 3, 2025
@dashpole dashpole deleted the update_ttlcache branch February 3, 2025 15:34
chengchuanpeng pushed a commit to chengchuanpeng/opentelemetry-collector-contrib that referenced this pull request Feb 8, 2025
…37524)

#### Description

Supersedes open-telemetry#36209

Most of the changes are obvious renames or refactors. The non-obvious
changes are:

* `Start()` must now be called on the cache to enable cleanup in the
background.
* `Stop()` can only be called once (or it will block indefinitely). I've
added a sync.Once to ensure it is only ever called once.
* `Set()` and `Get()` no longer return errors--even if Stop has already
been called. This makes some of our tests obsolete, and I removed those
tests.

#### Link to tracking issue

Fixes
open-telemetry#36112

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file receiver/googlecloudspanner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

googlecloudspannerreceiver: Update dependencies
4 participants