-
Notifications
You must be signed in to change notification settings - Fork 198
Open
Labels
Capability - ACIDCapability - constraintsCapability - modules & proceduresThe issue or request related to proceduresThe issue or request related to proceduresEffort - MediumEffort - MediumEffort - MediumFrequency - MonthlyFrequency - MonthlyFrequency - MonthlyPriority - LaterPriority - LaterPriority - LaterReach - SomeReach - SomeReach - SomeSeverity - S2Severity - S2Severity - S2customercustomercustomer
Milestone
Description
Query:
USING PERIODIC COMMIT 10000
CALL migrate.neo4j
(
'MATCH p=(m:M)-[r:O]->(d:D) WHERE d.d>=20251231 AND m.pi is not null RETURN m.pi as pi,properties(m) AS mp,d.d as d',
{
host: "",
port: 7687,
username: "",
password: ""
}
)
YIELD row
MERGE (m:M {pi: row.pi})
SET m += row.mp
MERGE (d:D {d: row.d})
MERGE (m)-[:O]->(d);
Logs:
[2026-01-08 06:36:54.536] [memgraph_log] [critical]
Assertion failed in file /home/mg/memgraph/src/storage/v2/inmemory/storage.cpp at line 1068.
Expression: 'is_transaction_active_'
Message: 'The transaction is already terminated!'
[2026-01-08 06:36:54.538] [memgraph_log] [trace] Storage GC on 'memgraph' started [periodic]
[2026-01-08 06:36:54.538] [memgraph_log] [trace] Storage GC on 'memgraph' finished [periodic]. Duration: 0.000s
PeriodicCommit failed: Unable to commit due to constraint violation.
Version: 3.7.2 MAGE
Need to use unique constraint, and somehow execute periodic commit writing queries.
Reproduction steps:
- Run Memgraph MAGE (don't need to run Neo4j as the migrate.neo4j is compatible).
- Queries:
CREATE CONSTRAINT ON (n:Node) ASSERT n.id IS UNIQUE;
UNWIND range(1, 10000) as x
CREATE (:Node {id: x});
USING PERIODIC COMMIT 100
CALL migrate.neo4j("MATCH (n)RETURN n.id as nid, properties(n) as props_n", {host: "", password: ""})
YIELD row
CREATE (n:Node {id: row.nid})
SET n += row.props_n;
Metadata
Metadata
Assignees
Labels
Capability - ACIDCapability - constraintsCapability - modules & proceduresThe issue or request related to proceduresThe issue or request related to proceduresEffort - MediumEffort - MediumEffort - MediumFrequency - MonthlyFrequency - MonthlyFrequency - MonthlyPriority - LaterPriority - LaterPriority - LaterReach - SomeReach - SomeReach - SomeSeverity - S2Severity - S2Severity - S2customercustomercustomer