Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug] pd make the RaftEngine constructor private

Open
#2,655 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
java

Research direction

Search for the RaftEngine class and inspect its constructor and existing singleton access points. Make the constructor private as requested, then run the relevant Java test or build checks to confirm current callers still work and no public construction remains.

Written by the indexing model from the issue text.

Description

bug pd raft
Bug Type (问题类型)

logic (逻辑设计问题)

Before submit
  • 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
Environment (环境信息)

Server Version: 1.5

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

The RaftEngine is intended to be a global singleton, but the constructor is not private.

public RaftEngine() {
        this.stateMachine = new RaftStateMachine();
    }
Vertex/Edge example (问题点 / 边数据举例)

No response

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

No response

Dominant language
Java
Stars
3.2k
Forks
640
Avg merge
2d 9h
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/hugegraph

All issues in apache/hugegraph

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.