Skip to content

gRPC insertStream keeps processing after a commit failure and mis-indexes the error #4806

Closed

Description

@ruispereira

Affected version: 26.6.1
Component: ArcadeDbGrpcService.insertStream (onNext) / insertRows
Severity: MEDIUM

Summary

When a chunk insert throws (e.g. a PER_BATCH flushCommit failure), the
exception is recorded against a single (context-wide) row index and the finally
keeps pulling more chunks against a context whose transaction may now be rolled
back / inconsistent.

Code

ArcadeDbGrpcService.java:1638-1646 (catch records one err; finally call.request(1)),
:2336-2342 (flushCommit inside insertRows).

Impact

A mid-stream commit failure does not stop the stream; subsequent rows operate on a
broken transaction state and the error is attributed to the wrong row.

Suggested fix

On a DB/commit exception, fail via resp.onError or mark the context dead and
reject further chunks; reset transaction state before continuing.

Activity

  1. added this to the 26.7.1 milestone on Jun 29, 2026
  2. self-assigned this
    on Jun 30, 2026
  3. added 8 commits that reference this issue on Jun 30, 2026
  4. added a commit that references this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions