Fixed:
1) Collection creation in advance is not needed and this implementation could cause race condition when multiple services starts at the same time.
2) When collection was initializing during mongo startup, method inside Lazy thrown exception, that was cached forever. My implementation tries to initialize collection until it succeeds.
Fixed: 1) Collection creation in advance is not needed and this implementation could cause race condition when multiple services starts at the same time. 2) When collection was initializing during mongo startup, method inside Lazy thrown exception, that was cached forever. My implementation tries to initialize collection until it succeeds.