Skip to content
Closed
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
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ driver developers who would rather use Maven than Ant as their build tool.
</build>

<dependencies>
<dependency>
<groupId>com.google.gag</groupId>
<artifactId>gag</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
Expand Down
6 changes: 5 additions & 1 deletion src/main/com/mongodb/ConnectionStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package com.mongodb;

import com.google.gag.annotation.remark.WTF;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -210,7 +212,9 @@ public CommandResult update() {
_maxBsonObjectSize = Bytes.MAX_OBJECT_SIZE;
}
} catch (Exception e) {
if (!((_ok) ? true : (Math.random() > 0.1))) {
@WTF
boolean randomExceptionHandling = true;
if (!((_ok) ? true : (Math.random() > 0.1))) {
return res;
}

Expand Down