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

Fix chunk meta not saving #391

Merged
merged 1 commit into from
May 1, 2024
Merged

Fix chunk meta not saving #391

merged 1 commit into from
May 1, 2024

Conversation

okx-code
Copy link
Contributor

@okx-code okx-code commented Mar 26, 2024

This PR fixes a race condition that casues chunk meta to not save chunks while they are loaded. The problem is that in the insert method, a ConcurrentModificationException can be triggered, as the list may also be modified from the main thread, which prevents saving. This was partially fixed in #390 which will keep the executor running even when an exception is thrown, whereas before the executor would just never run again. This is a more permanent fix.

@okx-code okx-code changed the title Fix chunk meta Fix chunk meta not saving Mar 26, 2024
Copy link
Contributor

badge

Build Successful! You can find a link to the downloadable artifact below.

Name Link
Commit 156597b
Logs https://github.com/CivMC/Civ/actions/runs/8438773073
Download https://github.com/CivMC/Civ/suites/22122997594/artifacts/

@RedDevel2 RedDevel2 merged commit 358031b into main May 1, 2024
2 checks passed
@RedDevel2 RedDevel2 deleted the fix-chunk-meta branch May 3, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants