@Override
    public int version() {
        return savedSegment != null ? savedSegment.info().version() : 0;
    }
Try load saved segment from local disk.
indexr-segment/src/main/java/io/indexr/segment/rt/RealtimeSegment.java