Skip to content

Neo4j transaction too big #116

Description

@georgesafta

Describe the bug
The analyzer creates a huge Neo4J transaction which may conflict with the Neo4J configuration.

To Reproduce
Steps to reproduce the behavior:

  1. Ran on superset (frontend)
    bun run start -- -i ../superset/superset-frontend/ --app-name superset-frontend --emit neo4j --neo4j-uri bolt://localhost:7687 --neo4j-user neo4j --neo4j-password somepassword

Expected behavior
The graph should be ingested without any issues.

Logs

[codeanalyzer-ts] FATAL Neo4jError: The allocation of an extra 2.0 MiB would use more than the limit 2.7 GiB. Currently using 2.7 GiB. dbms.memory.transaction.total.max threshold reached

    at captureStacktrace (/root/projects/python/codeanalyzer-typescript/node_modules/neo4j-driver-core/lib/result.js:624:21)
    at new Result (/root/projects/python/codeanalyzer-typescript/node_modules/neo4j-driver-core/lib/result.js:112:23)
    at <anonymous> (/root/projects/python/codeanalyzer-typescript/node_modules/neo4j-driver-core/lib/session.js:224:29)
    at <anonymous> (/root/projects/python/codeanalyzer-typescript/node_modules/neo4j-driver-core/lib/session.js:188:27)
    at <anonymous> (/root/projects/python/codeanalyzer-typescript/src/build/neo4j/bolt.ts:120:31)
    at withSession (/root/projects/python/codeanalyzer-typescript/src/build/neo4j/bolt.ts:249:18)
    at boltWriter (/root/projects/python/codeanalyzer-typescript/src/build/neo4j/bolt.ts:118:13)
    at async emitNeo4j (/root/projects/python/codeanalyzer-typescript/src/utils/serialize.ts:51:11)
    at async emit (/root/projects/python/codeanalyzer-typescript/src/utils/serialize.ts:17:11)
    at async main (unknown)
    at processTicksAndRejections (native:7:39)

Additional context
No

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions