-
Notifications
You must be signed in to change notification settings - Fork 12
Description
I am querying multiple vertices by an attribute and every so often I receive the following warning:
2015-03-27 07:31:54 WARN TabletServerBatchReader:83 - TabletServerBatchReader not shutdown; did you forget to call close()?
java.lang.Throwable
at org.apache.accumulo.core.client.impl.TabletServerBatchReader.(TabletServerBatchReader.java:69)
at org.apache.accumulo.core.client.impl.ConnectorImpl.createBatchScanner(ConnectorImpl.java:98)
at org.securegraph.accumulo.AccumuloGraph.createElementBatchScanner(AccumuloGraph.java:987)
at org.securegraph.accumulo.AccumuloGraph.createElementVisibilityBatchScanner(AccumuloGraph.java:969)
at org.securegraph.accumulo.AccumuloGraph.createElementVisibilityWholeRowBatchScanner(AccumuloGraph.java:955)
at org.securegraph.accumulo.AccumuloGraph.createVertexBatchScanner(AccumuloGraph.java:947)
at org.securegraph.accumulo.AccumuloGraph.access$1000(AccumuloGraph.java:41)
at org.securegraph.accumulo.AccumuloGraph$5.createIterator(AccumuloGraph.java:853)
at org.securegraph.util.LookAheadIterable.iterator(LookAheadIterable.java:10)
at org.securegraph.query.DefaultGraphQueryIterable.iterator(DefaultGraphQueryIterable.java:23)
** find the vertex by the id **/
GraphQuery gq = graph.query(Constants.createAuthorizations(Constants.ROOT_USER_AUTHS));
Query q = gq.has(ATTRIBUTE_ID, playerId);
Iterator<Vertex> itr = q.vertices().iterator();
Vertex vPlayer = null;
if (itr.hasNext()) {
vPlayer = itr.next();
}