Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ private <T extends Document> BulkRequestResult sendBulkRequest(final Collection<
updateOps.size(), bsonException.getMessage(), idOfbiggestUpdate, estimatedSizeOfBiggestUpdate,
bsonException);
// rethrow
throw bsonException;
throw new DocumentStoreException(bsonException);
}

for (BulkWriteUpsert upsert : bulkResult.getUpserts()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,11 @@ public void createOrUpdate16MBBatchWithMultiDocs() {
try {
store.createOrUpdate(Collection.NODES, updateOps);
fail("createOrUpdate(many with one >16MB) should have failed");
} catch (BSONException expected) {
// currently expected but incorrect -> OAK-12113
} catch (DocumentStoreException expected) {
assertTrue("DocumentStoreException should wrap BSONException, but got: "+
expected.getCause(),
expected.getCause() instanceof BSONException);

List<String> messages = log.getLogs();
assertEquals("only 1 message expected, but got: " + messages.size(),
1, messages.size());
Expand Down
Loading