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

datadir: fix unreleased lock on global.xml starting off an empt datadir #457

Conversation

groldan
Copy link
Member

@groldan groldan commented May 1, 2024

DataDirectoryUpdateSequence initializes GeoServerInfo if not present with a zero'ed updateSequence.

In doing so, it was loading the global.xml through Resource.in():InputStream, which in turn automatically acquires a lock on the resource, but it was not closing it, which releases the lock.

`DataDirectoryUpdateSequence` initializes `GeoServerInfo` if not present
with a zero'ed `updateSequence`.

In doing so, it was loading the `global.xml` through
`Resource.in():InputStream`, which in turn automatically acquires a lock
on the resource, but it was not closing it, which releases the lock.
@groldan groldan added the bug Something isn't working label May 1, 2024
@groldan groldan merged commit 6237699 into geoserver:main May 1, 2024
2 checks passed
@groldan groldan deleted the fix/datadir_empty_startup_global_lock_unreleased branch May 1, 2024 21:41
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.

1 participant