Skip to content

[Bug] Unit tests fail with NPE in HDFS-Tests (loader) #706

Closed

Description

@kenssa4eedfd

Bug Type (问题类型)

None

Before submit

  • I had searched in the issues and found no similar issues.

Environment (环境信息)

  • Toolchain Version: v1.7.0

Expected & Actual behavior (期望与实际表现)

refer: #704, when changing the default loader optional --parser-threads > 1

Running UT triggers a NullPointerException (NPE) in testMultiFilesHaveHeader and testFilterPathBySuffix within HDFSLoaderTest. (Currently set it to 1)

Vertex/Edge example (问题点 / 边数据举例)

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

Activity

  1. dosubot commented on Jan 21, 2026

    @dosubot

    Hi @kenssa4eedfd! I'm Dosu and I’m helping the incubator-hugegraph-toolchain team.

    PR #704 updates loader parameter logic and batch insertion failure handling, including changes to concurrency control and the --parser-threads parameter. It adds validation for minimum values, adjusts default values based on CPU environment, and refactors error handling logic. While it doesn't directly mention fixing the NPE in HDFSLoaderTest, these changes are closely related to loader concurrency and parameter handling, which could impact or help diagnose the issue when --parser-threads > 1. Reviewing the changes in #704 may provide insight or a potential workaround for your bug. No other issues or threads directly address this NPE at this time.
    See PR #704 for details.

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about hugegraph-toolchain Share Dosu with your team

  2. changed the title [-][Bug] testMultiFilesHaveHeader and testFilterPathBySuffix in HDFSLoaderTest throw NPE when --parser-threads is set to > 1.[/-] [+][Bug] unit tests fail with an NPE[/+] on Jan 21, 2026
  3. changed the title [-][Bug] unit tests fail with an NPE[/-] [+][Bug] unit tests fail with NPE[/+] on Jan 21, 2026
  4. changed the title [-][Bug] unit tests fail with NPE[/-] [+][Bug] Unit tests fail with NPE in HDFS-Tests (loader)[/+] on Jan 23, 2026
  5. deleted a comment from kenssa4eedfd on Jan 23, 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

    bugSomething isn't workingloaderhugegraph-loader

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions