Akka.DistributedData.LightningDb: move durable folder creation outside of actor constructor in order to preserve stack trace / provide clearer error messages #6816
Labels
akka-ddata-durable
LMDB implementation for persisting durable data
good for first-time contributors
up for grabs
Milestone
Affected libraries: Akka.DistributedData.LightningDb
Affected Versions: all
akka.net/src/contrib/cluster/Akka.DistributedData.LightningDB/LmdbDurableStore.cs
Lines 89 to 92 in abae81c
In the event that this directory isn't writable by the process, the
Akka.DistributedData.LightningDB.LmdbDurableStore
will crash inside its own constructor and the real reason for the crash will be obscured by the error message:We should really move this initialization to a messaging handler so we can clearly log a file permissions issue and make this easier for end-users to troubleshoot.
The text was updated successfully, but these errors were encountered: