TuGraph-family / tugraph-db

TuGraph: A High Performance Graph Database.
https://tugraph.org
Apache License 2.0
1.44k stars 192 forks source link

数据库所在container被意外杀死导致数据丢失 #578

Open stoveZhu opened 4 months ago

stoveZhu commented 4 months ago

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()