使用python通过neo4j的GraphDatabase对数据库进行读取,服务突然挂掉,恢复后部分固有数据(非当时读写的数据)丢失。在portainer中看不到任何当时的活动事件和容器日志,最早可追溯事件:Container exited with status code 137。
服务死亡时正在进行的操作:
with GraphDatabase.driver(URL, auth=AUTH) as client: session = client.session(database="schema") ret = session.run("MATCH (n:Western_Medicine) return n.instanceCode,n.Western_Medicine").data() print (ret) for item in ret: if item['n.Western_Medicine'] != None: ret = session.run(f"MATCH (n:Western_Medicine{{instanceCode:{item['n.instanceCode']}}}) SET n.westernMedicine = {item['n.Western_Medicine']}").data()
Environment:
使用python通过neo4j的GraphDatabase对数据库进行读取,服务突然挂掉,恢复后部分固有数据(非当时读写的数据)丢失。在portainer中看不到任何当时的活动事件和容器日志,最早可追溯事件:Container exited with status code 137。
服务死亡时正在进行的操作:
with GraphDatabase.driver(URL, auth=AUTH) as client: session = client.session(database="schema") ret = session.run("MATCH (n:Western_Medicine) return n.instanceCode,n.Western_Medicine").data() print (ret) for item in ret: if item['n.Western_Medicine'] != None: ret = session.run(f"MATCH (n:Western_Medicine{{instanceCode:{item['n.instanceCode']}}}) SET n.westernMedicine = {item['n.Western_Medicine']}").data()