datafaker-net / datafaker

Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
https://www.datafaker.net
Apache License 2.0
1.16k stars 160 forks source link

#1306 add test that reproduces the flaky problem with CopyOnWriteMap #1310

Open asolntsev opened 2 months ago

asolntsev commented 2 months ago

it's a simplified version of what happens with FakeValuesService.MAP_OF_METHOD_AND_COERCED_ARGS.

@snuyanzin Can you help with fixing CopyOnWriteMap?

what-the-diff[bot] commented 2 months ago

PR Summary

The overall goal of these changes is to ensure that our CopyOnWriteMap operates robustly and correctly under situations where multiple processes try to access and alter data at once.