Skip to content

Commit 5dbd3cf

Browse files
authored
HDDS-10717. nodeFailureTimeoutMs should be initialized before syncTimeoutRetry (apache#6560)
1 parent 4d35d40 commit 5dbd3cf

File tree

1 file changed

+1
-1
lines changed
  • hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis

1 file changed

+1
-1
lines changed

hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ private XceiverServerRatis(DatanodeDetails dd,
191191
this.streamEnable = conf.getBoolean(
192192
OzoneConfigKeys.HDDS_CONTAINER_RATIS_DATASTREAM_ENABLED,
193193
OzoneConfigKeys.HDDS_CONTAINER_RATIS_DATASTREAM_ENABLED_DEFAULT);
194-
RaftProperties serverProperties = newRaftProperties();
195194
this.context = context;
196195
this.dispatcher = dispatcher;
197196
this.containerController = containerController;
@@ -202,6 +201,7 @@ private XceiverServerRatis(DatanodeDetails dd,
202201
shouldDeleteRatisLogDirectory =
203202
ratisServerConfig.shouldDeleteRatisLogDirectory();
204203

204+
RaftProperties serverProperties = newRaftProperties();
205205
this.server =
206206
RaftServer.newBuilder().setServerId(raftPeerId)
207207
.setProperties(serverProperties)

0 commit comments

Comments
 (0)