@@ -20,8 +20,6 @@ import org.bson.types.ObjectId
20
20
import spock.lang.Unroll
21
21
22
22
import static com.mongodb.Fixture.isReplicaSet
23
- import static com.mongodb.Fixture.isServerStartedWithJournalingDisabled
24
- import static com.mongodb.Fixture.isSharded
25
23
import static com.mongodb.Fixture.isStandalone
26
24
import static com.mongodb.Fixture.serverIsAtLeastVersion
27
25
import static com.mongodb.WriteRequest.Type.INSERT
@@ -696,27 +694,6 @@ class BulkWriteOperationSpecification extends FunctionalSpecification {
696
694
ordered << [true , false ]
697
695
}
698
696
699
- def ' when j write concern is used on a server without journaling or write commands, BulkWriteException is thrown' () {
700
- assumeTrue(! isSharded() && isServerStartedWithJournalingDisabled() && ! serverIsAtLeastVersion(2.6 ))
701
-
702
- given :
703
- def operation = collection. initializeUnorderedBulkOperation()
704
- operation. insert(new BasicDBObject (' _id' , 1 ))
705
- operation. insert(new BasicDBObject (' _id' , 2 ))
706
-
707
- when :
708
- operation. execute(WriteConcern . JOURNALED )
709
-
710
- then :
711
- def e = thrown(BulkWriteException )
712
- e. writeResult == new AcknowledgedBulkWriteResult (INSERT , 2 , [])
713
- e. writeConcernError != null
714
- e. writeConcernError. getDetails(). containsField(' jnote' )
715
-
716
- where :
717
- ordered << [true , false ]
718
- }
719
-
720
697
def ' execute should throw IllegalStateException when already executed' () {
721
698
given :
722
699
def operation = initializeBulkOperation(ordered)
0 commit comments