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

Feat/resettable singletons #11870

Closed
wants to merge 24 commits into from

Conversation

chrisdutz
Copy link
Contributor

Description

We are using singletons throughout the code-base. This has the disadvantage that once these are initialized, we can't re-initialize them. Especially when running IoTDB in an embedded mode, this makes it impossible to switch the storage location.

I've added "reinitializeStatics()" methods to places, were I needed to have them re-initialized.

This is actually just a hack or workaround needed till we refactor IoTDB to be a cleanly modeled fo useage of a DI framework.

chrisdutz and others added 24 commits August 17, 2023 11:31
…ngletons for allowing to switch the storage location at runtime.
@chrisdutz chrisdutz closed this Jun 7, 2024
@chrisdutz chrisdutz deleted the feat/resettable-singletons branch June 7, 2024 10:32
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 this pull request may close these issues.

1 participant