Missing _bin when node is recreated after revision GC
Fix test on RDB
@@ -105,7 +105,7 @@ public class BlobReferenceIteratorTest {
return new DocumentMK.Builder()
.setLeaseCheckMode(LeaseCheckMode.DISABLED)
.clock(clock)
- .setDocumentStore(fixture.createDocumentStore(clusterId))
+ .setDocumentStore(wrap(fixture.createDocumentStore(clusterId)))
.setClusterId(clusterId)
.setAsyncDelay(0)
.getNodeStore();
@@ -179,4 +179,20 @@ public class BlobReferenceIteratorTest {
assertNotNull(doc);
assertTrue(doc.hasBinary());
}
+
+ private static DocumentStore wrap(DocumentStore ds) {
+ return new DocumentStoreTestWrapper(ds);
+ }
+
+ private static class DocumentStoreTestWrapper extends DocumentStoreWrapper {
+
+ private DocumentStoreTestWrapper(DocumentStore store) {
+ super(store);
+ }
+
+ @Override
+ public void dispose() {
+ // ignore
+ }
+ }
}
