You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static class ParquetCachePopulator
{
public static async Task PopulateParquetTypeCache<T>() where T: new()
{
var row = new List<T>() { new T() };
using var stream = new MemoryStream();
await ParquetSerializer.SerializeAsync(row, stream);
stream.Position = 0;
await ParquetSerializer.DeserializeAsync<T>(stream);
}
}
pre-startup might very well do the trick. I'll give that a spin and will report back in a few days to see if it stays stable. Now I'm not against pre-loading known types, could even consider making that mandatory to avoid the issue? 🤔 Alternatively, fix the concurrency problem in the type cache, which will most likely come with some minor performance hit.
Library Version
4.16.3
OS
Windows
OS Architecture
64 bit
How to reproduce?
Unfortunately, no clear steps to reproduce, but seen this happening occasionally in production:
Since the _typeToAssembler cache is not concurrent, triggering multiple operations populating this cache in parallel is the cause.
Failing test
The text was updated successfully, but these errors were encountered: