我遇到了一些奇怪的事情:我的console.log充满了这样的消息:
DONE:0
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:1
DONE:2
DONE:0
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:1
DONE:2
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:3
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:4
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:5
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
这很烦人,因为文件在两天内增长到1G。这些看起来像调试消息,但我找不到罪魁祸首。
我正在使用Neo4j 1.9,gremlin插件1.5,neography 1.0.9
答案 0 :(得分:1)
我在第69和72行的文件'community / server / src / main / java / org / neo4j / server / rest / batch / BatchOperationResults.java'中找到了两个“System.out.println”。
public void addOperationResult( String from, Integer id, String body, String location )
{
if(firstResult)
firstResult = false;
else
results.append(',');
results.append( OPENING_CURLY );
if ( id != null )
{
results.append( "\"id\":" )
.append( id.toString() )
.append( COMMA );
}
System.out.println("DONE:" + id);
if ( location != null )
{
System.out.println("Got Location:" + location);
locations.put( id, location );
results.append( "\"location\":" )
.append( JsonHelper.createJsonFrom( location ) )
.append( COMMA );
}