Skip to content

【3.8】 Parallel scan may silently drop a batch  #665

Open

Description

@Bewear777

Description

In nebula-java 3.8.4, parallel vertex/edge scans may intermittently lose a batch of data. In both ScanVertexResultIterator and ScanEdgeResultIterator, the partInfo == null branch counts down the latch before incrementing existSuccess. The main thread may resume too early and discard valid results when partSuccess=false.

Expected

Update the success counter before releasing the latch.

Fix

Swap existSuccess.addAndGet(1) and countDownLatch.countDown() in both iterators.

Related PR

#664

Activity

  1. changed the title [-][Bug] Parallel scan may silently drop a batch (nebula-java 3.8.4)[/-] [+][3.8.4] Parallel scan may silently drop a batch [/+] on Oct 21, 2026
  2. changed the title [-][3.8.4] Parallel scan may silently drop a batch [/-] [+]【3.8】 Parallel scan may silently drop a batch [/+] on Oct 21, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions