Corrupt Package Cache cache json files

Recently we have been seeing issues where we get corrupt/invalid json cache files in the miniconda package cache <miniconda_root>/pkgs/cache/*.info.json. We are using this in a multi-user environment on linux with the conda-libmamba-solver. It seems like there is some race condition where some of the the JSON files have duplicate JSON entries with results in a JSON decode error

{
“url”: “file:///file_channel/noarch”,
“mod”: “Tue, 11 Apr 2023 01:21:37 GMT”,
“mtime_ns”: 1687543536994350000,
“size”: 2651,
“refresh_ns”: 1687543536996767370
}{
“url”: “file:///file_channel/noarch”,
“mod”: “Tue, 11 Apr 2023 01:21:37 GMT”,
“mtime_ns”: 1687543536992342000,
“size”: 2651,
“refresh_ns”: 1687543537008897498
}
Have there been any updates in the last few that that would cause this?

I’ll also mention that is error is somewhat fatal, because it breaks almost all conda search, create or other CLI features other than activate.

I’ll also mention that is error is somewhat fatal, because it breaks almost all conda search, create or other CLI features other than activate. This was a race condition of two processes writing to the same package cache.