Skip to content

JSONL import swallows per-record errors and reports success; a failed vertex cascade-drops its edges #6468

Closed

Description

@ruispereira

Summary

The JSONL importer catches every per-record exception, logs it at SEVERE, and continues, and load() commits and returns normally regardless — so a partial import reports success. A single failed vertex leaves its RID out of the RID map, which then cascade-drops every edge touching it. This is the delivery mechanism that turns per-value import bugs into whole-subgraph loss with a "success" result.

Where (HEAD 0291182af)

integration/src/main/java/com/arcadedb/integration/importer/format/JsonlImporterFormat.java:

  • loadDocument/loadVertex/loadEdge each catch (Exception e) { LogManager...SEVERE; } and continue (:308-310, :326-328, :365-367).
  • A skipped vertex never does ridIndex.put(oldRid, ...), so its edges hit the newOut/newIn == null branch (:339-352) → logged SEVERE → dropped.
  • load() commits every N rows and returns normally (:99-109); there is no aggregate failure count or non-zero exit.

Repro

Import any JSONL export containing a record that fails to deserialize (e.g. the DATE-unit bug, a schema mismatch): the record and all its edges vanish, but the import prints its counters as if complete and exits successfully.

Suggested fix

Track a skipped-record count in ImporterContext and fail the operation (or surface a non-zero status / structured error summary) when any record was skipped, unless an explicit --skip-errors flag is set.

Scope / confidence

High (code read). This is the amplifier behind the temporal/LINK fidelity bugs; on its own it is a "fail loud vs fail silent" policy issue, so framing it as a correctness/observability fix rather than a crash.

Activity

  1. added this to the 26.9.1 milestone on Aug 19, 2026
  2. added 3 commits that reference this issue on Aug 20, 2026
  3. added 3 commits that reference this issue on Aug 21, 2026
  4. added
    importer
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimporter

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions