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

Long runtime compiler initialization may trigger file lock timeout when creating persistent map #467

Closed
glukos opened this issue Jan 12, 2023 · 2 comments · Fixed by #468
Assignees

Comments

@glukos
Copy link
Contributor

glukos commented Jan 12, 2023

ChronicleMapBuilder acquires file write lock and triggers compilation of value class for VanillaGlobalMutableState, which may take significant time.
A couple of actions to mitigate this:

  1. Always touch Values.nativeClassFor(VanillaGlobalMutableState.class) in advance when creating a persistent map (only first invocation can be slow)
  2. Add a property for lock timeout - probably won't really be needed after 1), but just in case
@glukos glukos self-assigned this Jan 12, 2023
@glukos glukos linked a pull request Jan 12, 2023 that will close this issue
@hft-team-city
Copy link
Contributor

Released in Chronicle-Map-3.24ea2, BOM-2.24ea28

glukos added a commit that referenced this issue Jan 16, 2023
@hft-team-city
Copy link
Contributor

Released in Chronicle-Map-3.23.6, BOM-2.23.144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants