Skip to content

Fix StringLocker behavior. - #1588

Open
zliebowitz wants to merge 1 commit into
Unidata:maint-5.xfrom
zliebowitz:fix-stringlocker-behavior
Open

Fix StringLocker behavior.#1588
zliebowitz wants to merge 1 commit into
Unidata:maint-5.xfrom
zliebowitz:fix-stringlocker-behavior

Conversation

@zliebowitz

@zliebowitz zliebowitz commented Jul 27, 2026

Copy link
Copy Markdown

Description of Changes

Fix issues that could break mutual exclusions properties desired in StringLocker.

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

@CLAassistant

CLAassistant commented Jul 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@zliebowitz

Copy link
Copy Markdown
Author

This pull request demonstrates the issue (via test) and fixes via fixing StringLocker.

I'm not sure if you'd rather go after this issue in a different fashion (removing the StringLocker), but I figure this at least shows the bug pretty directly.

@lesserwhirls lesserwhirls added the bug Something isn't working label Jul 28, 2026
@lesserwhirls lesserwhirls added this to the 5.11.0 milestone Jul 28, 2026
@zliebowitz
zliebowitz marked this pull request as ready for review July 28, 2026 16:23
@zliebowitz
zliebowitz requested a review from lesserwhirls as a code owner July 28, 2026 16:23

@lesserwhirls lesserwhirls left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your contribution! Overall the changes look great! Just a few comments regarding the tests.

Comment thread cdm/core/src/test/java/ucar/nc2/StringLockerTest.java Outdated
Comment thread cdm/core/src/test/java/ucar/nc2/StringLockerTest.java Outdated
@zliebowitz
zliebowitz force-pushed the fix-stringlocker-behavior branch from c8ad1f7 to ce1a9b4 Compare July 28, 2026 23:16
@zliebowitz
zliebowitz force-pushed the fix-stringlocker-behavior branch from ce1a9b4 to 2e7c91a Compare July 31, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants