Skip to content

[BACKPORT] Make sure that the logger static lock mutex is not destroyed before any global client instance#994

Merged
ihsandemir merged 1 commit intohazelcast:4.0.zfrom
ihsandemir:4_0_z/logger_mutex_lifecycle_fix
Jun 21, 2022
Merged

[BACKPORT] Make sure that the logger static lock mutex is not destroyed before any global client instance#994
ihsandemir merged 1 commit intohazelcast:4.0.zfrom
ihsandemir:4_0_z/logger_mutex_lifecycle_fix

Conversation

@ihsandemir
Copy link
Copy Markdown
Collaborator

Make sure that the logger static lock mutex is not destroyed before any global client instance (#977)

Changed the logger lock mutex so that we can control its destruction order properly. We do not want it destroyed before the client is destructed. We need to control the order. static initialization and destruction order is not controllable if it is not a member of the logger class. It can be destroyed before the any global client instance is destroyed since global variables are also in static duration (https://www.learncpp.com/cpp-tutorial/introduction-to-global-variables).

backports #977

…ny global client instance (hazelcast#977)

* Changed the logger lock mutex so that we can control its destruction order properly. We do not want it destroyed before the client is destructed. We need to control the order. static initialization and destruction order is not controllable if it is not a member of the logger class. It can be destroyed before the any global client istance is destroyed since global variables are also in static duration (https://www.learncpp.com/cpp-tutorial/introduction-to-global-variables).
@ihsandemir ihsandemir added this to the 4.0.2 milestone Jun 20, 2022
@ihsandemir ihsandemir requested review from srknzl and yuce June 20, 2022 13:11
@ihsandemir ihsandemir self-assigned this Jun 20, 2022
@devOpsHazelcast
Copy link
Copy Markdown
Contributor

Linux test PASSed.

@devOpsHazelcast
Copy link
Copy Markdown
Contributor

Windows test FAILed.

@ihsandemir
Copy link
Copy Markdown
Collaborator Author

verify-windows

@devOpsHazelcast
Copy link
Copy Markdown
Contributor

Windows test PASSed.

@ihsandemir ihsandemir merged commit 7141f12 into hazelcast:4.0.z Jun 21, 2022
@ihsandemir ihsandemir deleted the 4_0_z/logger_mutex_lifecycle_fix branch June 21, 2022 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants