Skip to content

Commit

Permalink
HDDS-10717. nodeFailureTimeoutMs should be initialized before syncTim…
Browse files Browse the repository at this point in the history
…eoutRetry (#6560)

(cherry picked from commit 5dbd3cf)
  • Loading branch information
ivandika3 authored and xichen01 committed Apr 23, 2024
1 parent 78cfb9a commit c6f9084
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ private XceiverServerRatis(DatanodeDetails dd,
this.streamEnable = conf.getBoolean(
OzoneConfigKeys.DFS_CONTAINER_RATIS_DATASTREAM_ENABLED,
OzoneConfigKeys.DFS_CONTAINER_RATIS_DATASTREAM_ENABLED_DEFAULT);
RaftProperties serverProperties = newRaftProperties();
this.context = context;
this.dispatcher = dispatcher;
this.containerController = containerController;
Expand All @@ -184,6 +183,7 @@ private XceiverServerRatis(DatanodeDetails dd,
shouldDeleteRatisLogDirectory =
ratisServerConfig.shouldDeleteRatisLogDirectory();

RaftProperties serverProperties = newRaftProperties();
this.server =
RaftServer.newBuilder().setServerId(raftPeerId)
.setProperties(serverProperties)
Expand Down

0 comments on commit c6f9084

Please sign in to comment.