266267268269270271272273274275276
for (int x = 0; x < 5; x++) { Thread.sleep(2000); YzFetchIndexOperation fetch = new YzFetchIndexOperation.Builder().withIndexName(indexName).build(); cluster.execute(fetch); fetch.await(); if (fetch.isSuccess()) { return true; } }
116117118119120121122123124125126
YzFetchIndexOperation fetchOp = new YzFetchIndexOperation.Builder().withIndexName("test_index") .build(); cluster.execute(fetchOp); fetchOp.await(); if (!fetchOp.isSuccess()) { assertTrue(fetchOp.cause().toString(), fetchOp.isSuccess()); }