// writer.length == 262052
// Adding 765 bytes (255 recordIds)
// This should cause the current segment to flush
List<RecordId> list = Collections.nCopies(n, x);
writer.writeList(list);
writer.flush();
// Don't close the store in a finally clause as if a failure happens
// this will also fail an cover up the earlier exception