It depends on what you use WriteConcern . If you use WriteConcern.ACKNOWLEDGED , the operation will wait for confirmation from the main server, therefore, if no exception is thrown, the record was saved correctly. Otherwise, you will be able to request WriteResult
WriteResult writeResult=mycollection.insert(record); if (writeResult.getError() != null) { throw new Exception(String.format("Insertion wasn't successful: %s",writeResult)); }
source share