ReadOnlyFileStore doesn't use custom persistence
@@ -72,6 +72,7 @@ public class ReadOnlyFileStore extends AbstractFileStore {
.withIOMonitor(ioMonitor)
.withMemoryMapping(memoryMapping)
.withReadOnly()
+ .withPersistence(builder.getPersistence())
.build();
writer = defaultSegmentWriterBuilder("read-only").withoutCache().build(this);
