commit | 9b47c45fe309e5aa78f2d8e89b3d69587f4752a4 | [log] [tgz] |
---|---|---|
author | Alice Kober-Sotzek <aliceks@google.com> | Mon Aug 31 10:34:33 2020 +0200 |
committer | Alice Kober-Sotzek <aliceks@google.com> | Mon Aug 31 10:34:33 2020 +0200 |
tree | 251ddbd2781a9e0e25de3f9065595ad504e8cde0 | |
parent | 4faff4755c54fd4783ce909307e633b83b3471b1 [diff] |
findowners: Fix concurrency issue in Config class The Config class seems to be used in multi-threaded contexts (e.g. via Cache -> OwnersDb) but is not hardened for multi-threading. We noticed errors in our logs complaining about concurrent modifications of projectConfigMap when computeIfAbsent() is called on it. Fix that immediate issue by switching to a concurrent type for the map. Change-Id: I1b3f2ae7211787974440444c12c2c703e9d39d9b