Skip to content

chore: Add lock when using SimpleJSON API#2969

Closed
filzrev wants to merge 1 commit intodotnet:masterfrom
filzrev:chore-use-lock-for-simplejson
Closed

chore: Add lock when using SimpleJSON API#2969
filzrev wants to merge 1 commit intodotnet:masterfrom
filzrev:chore-use-lock-for-simplejson

Conversation

@filzrev
Copy link
Contributor

@filzrev filzrev commented Jan 15, 2026

This PR intended to fix #2927 and cleanup namespace that is missing on #2968.

lock (lockObject)
{
SimpleJsonSerializer.CurrentJsonSerializerStrategy.Indent = IndentJson;
logger.WriteLine(SimpleJsonSerializer.SerializeObject(GetDataToSerialize(summary)));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Write to logger outside of the lock.

@filzrev
Copy link
Contributor Author

filzrev commented Jan 16, 2026

Close this PR.
Because it's replaced by #2970

@filzrev filzrev closed this Jan 16, 2026
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.

CommonExporterVerifyTests randomly failed when called from multiple thread.

2 participants