This code has some issue
graph.tx().commit();
GraphUtils.refreshGraph(graph);
String targetVertexType = params.getOb3().value("vertexType");
HashMap<String, Long> existingCounts = counterService.getExistingCounts(session, params.getObjId1(),
params.getObjId2(),
params.getObjId3());
if(targetVertexType.equals("POST")) {
params.getOb3().property("postUpvoteCount", existingCounts.get("upvote"));
} else {
params.getOb3().property("commentUpvoteCount", existingCounts.get("upvote"));
}
graph.tx().commit();
eCheckingTransaction@64b34bd6 holds no locks: writing mutations using store transaction CassandraTransaction@15e76370[read=QUORUM,write=QUORUM]
23:38:06.954 [http-nio-8084-exec-94] ERROR c.t.t.d.es.ElasticSearchIndex - Failed to execute ES query ElasticsearchIllegalArgumentException[failed to execute script]; nested: ScriptException[dynamic scripting for [groovy] disabled];
23:38:06.955 [http-nio-8084-exec-94] ERROR c.t.t.d.es.ElasticSearchIndex - Failed to execute ES query 1m
java.lang.Exception: failure in bulk execution:
[0]: index [titan], type [IndxPostGeoByPostTimeAndUpvote], id [3dxnwg], message [ElasticsearchIllegalArgumentException[failed to execute script]; nested: ScriptException[dynamic scripting for [groovy] disabled]; ]
at com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex.mutate(ElasticSearchIndex.java:614) ~[titan-es-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:123) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction$1.call(IndexTransaction.java:120) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:56) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.util.BackendOperation.execute(BackendOperation.java:42) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction.flushInternal(IndexTransaction.java:120) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.indexing.IndexTransaction.commit(IndexTransaction.java:101) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.diskstorage.BackendTransaction.commitIndexes(BackendTransaction.java:125) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.commit(StandardTitanGraph.java:732) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.commit(StandardTitanTx.java:1352) [titan-core-1.0.0.jar:na]
at com.thinkaurelius.titan.graphdb.tinkerpop.TitanBlueprintsGraph$GraphTransaction.doCommit(TitanBlueprintsGraph.java:263) [titan-core-1.0.0.jar:na]
at org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.commit(AbstractTransaction.java:94) [gremlin-core-3.0.1-incubating.jar:3.0.1-incubating]