Php Neo4j,graphaware:捕获异常后,将不会执行另一个查询。
我以正常方式连接到neo4j,可以运行查询,没有问题。Php Neo4j,graphaware:捕获异常后,将不会执行另一个查询。,php,neo4j,graphaware,Php,Neo4j,Graphaware,我以正常方式连接到neo4j,可以运行查询,没有问题。 在测试过程中,我编写了一个应该失败的查询(由于唯一性约束),该查询确实按照预期失败,我捕获了异常。 问题是,当我尝试执行队列中的下一个查询时,它只是挂起(超过超时时间)。 我认为这不是正常的行为 try{ $result = $neo->run ($query); } catch (Exception $e) { // handle it } // all good so far // no
在测试过程中,我编写了一个应该失败的查询(由于唯一性约束),该查询确实按照预期失败,我捕获了异常。
问题是,当我尝试执行队列中的下一个查询时,它只是挂起(超过超时时间)。
我认为这不是正常的行为
try{
$result = $neo->run ($query);
}
catch (Exception $e) {
// handle it
}
// all good so far
// now we attempt:
try{
$result = $neo->run ($next_query);
}
catch (Exception $e) {
// handle it
}
// hangs longer than timeout
如果我从队列中删除失败的查询,一切都会完成,因此php客户端引发的异常似乎会中断与neo4j的连接。
如果我将代码修改为以下内容,则一切正常
try{
$result = $neo->run ($query);
}
catch (Exception $e) {
// handle it
connect_to_neo()
}
// all good so far
try{
$result = $neo->run ($next_query);
}
catch (Exception $e) {
// handle it
}
// all good, $next_query gets executed
我不认为中断连接的异常是期望的行为。将在github上提出此问题。它是neo4j 3.1版本吗?是的,3.1,我正在使用Bolton连接github问题