Small cleanup

This commit is contained in:
Martijn van Groningen 2013-08-26 15:42:19 +02:00
parent 35dcdb0b5a
commit df3922a22a
1 changed files with 1 additions and 6 deletions

View File

@ -39,7 +39,6 @@ import org.elasticsearch.test.integration.AbstractNodesTests;
import org.junit.After; import org.junit.After;
import org.junit.Test; import org.junit.Test;
import java.io.IOException;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.atomic.AtomicReference;
@ -317,11 +316,7 @@ public class RecoveryPercolatorTests extends AbstractNodesTests {
@Override @Override
public void run() { public void run() {
try { try {
XContentBuilder doc = null; XContentBuilder doc = jsonBuilder().startObject().field("field", "a").endObject();
try {
doc = jsonBuilder().startObject().field("field", "a").endObject();
} catch (IOException e) {}
while (run.get()) { while (run.get()) {
NodesInfoResponse nodesInfoResponse = client.admin().cluster().prepareNodesInfo() NodesInfoResponse nodesInfoResponse = client.admin().cluster().prepareNodesInfo()
.execute().actionGet(); .execute().actionGet();