This is an automated email from the ASF dual-hosted git repository.
rexxiong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new f83304c33 [CELEBORN-581][Flink] Support JobManager failover. (#1485)
f83304c33 is described below
commit f83304c337a4ba1b12f29a8a4f3a4b490e048350
Author: Shuang <[email protected]>
AuthorDate: Tue May 16 14:51:53 2023 +0800
[CELEBORN-581][Flink] Support JobManager failover. (#1485)
---
.../flink/RemoteShuffleInputGateDelegation.java | 20 +++++++----
.../celeborn/plugin/flink/RemoteShuffleMaster.java | 6 +++-
.../plugin/flink/RemoteShuffleOutputGate.java | 16 +++++++--
.../plugin/flink/RemoteShuffleResource.java | 9 ++++-
.../flink/readclient/FlinkShuffleClientImpl.java | 42 ++++++++++++++++------
.../celeborn/plugin/flink/utils/FlinkUtils.java | 4 +--
.../plugin/flink/FlinkShuffleClientImplSuiteJ.java | 2 +-
.../flink/RemoteShuffleResultPartitionSuiteJ.java | 3 +-
.../flink/RemoteShuffleResultPartitionSuiteJ.java | 3 +-
.../flink/RemoteShuffleResultPartitionSuiteJ.java | 3 +-
.../common/exception/DriverChangedException.scala | 24 +++++++++++++
.../celeborn/tests/flink/HeartbeatTest.scala | 27 ++++++++++++--
12 files changed, 130 insertions(+), 29 deletions(-)
diff --git
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleInputGateDelegation.java
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleInputGateDelegation.java
index 5498810ad..6f07ae924 100644
---
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleInputGateDelegation.java
+++
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleInputGateDelegation.java
@@ -48,6 +48,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.celeborn.common.CelebornConf;
+import org.apache.celeborn.common.exception.DriverChangedException;
import org.apache.celeborn.common.exception.PartitionUnRetryAbleException;
import org.apache.celeborn.common.identity.UserIdentifier;
import org.apache.celeborn.plugin.flink.buffer.BufferPacker;
@@ -148,12 +149,19 @@ public class RemoteShuffleInputGateDelegation {
RemoteShuffleDescriptor remoteShuffleDescriptor =
(RemoteShuffleDescriptor) gateDescriptor.getShuffleDescriptors()[0];
- this.shuffleClient =
- FlinkShuffleClientImpl.get(
-
remoteShuffleDescriptor.getShuffleResource().getRssMetaServiceHost(),
-
remoteShuffleDescriptor.getShuffleResource().getRssMetaServicePort(),
- celebornConf,
- new UserIdentifier("default", "default"));
+ RemoteShuffleResource shuffleResource =
remoteShuffleDescriptor.getShuffleResource();
+
+ try {
+ this.shuffleClient =
+ FlinkShuffleClientImpl.get(
+ shuffleResource.getRssMetaServiceHost(),
+ shuffleResource.getRssMetaServicePort(),
+ shuffleResource.getRssMetaServiceTimestamp(),
+ celebornConf,
+ new UserIdentifier("default", "default"));
+ } catch (DriverChangedException e) {
+ throw new RuntimeException(e.getMessage());
+ }
this.startSubIndex = startSubIndex;
this.endSubIndex = endSubIndex;
diff --git
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleMaster.java
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleMaster.java
index b196f9b0f..e053d4c1f 100644
---
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleMaster.java
+++
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleMaster.java
@@ -60,11 +60,13 @@ public class RemoteShuffleMaster implements
ShuffleMaster<RemoteShuffleDescripto
ThreadUtils.createFactoryWithDefaultExceptionHandler(
"remote-shuffle-master-executor", LOG));
private final ResultPartitionAdapter resultPartitionDelegation;
+ private final long rssMetaServiceTimestamp;
public RemoteShuffleMaster(
ShuffleMasterContext shuffleMasterContext, ResultPartitionAdapter
resultPartitionDelegation) {
this.shuffleMasterContext = shuffleMasterContext;
this.resultPartitionDelegation = resultPartitionDelegation;
+ this.rssMetaServiceTimestamp = System.currentTimeMillis();
}
@Override
@@ -74,7 +76,7 @@ public class RemoteShuffleMaster implements
ShuffleMaster<RemoteShuffleDescripto
synchronized (RemoteShuffleMaster.class) {
if (lifecycleManager == null) {
// use first jobID as celeborn shared appId for all other flink jobs
- celebornAppId = FlinkUtils.toCelebornAppId(jobID);
+ celebornAppId = FlinkUtils.toCelebornAppId(rssMetaServiceTimestamp,
jobID);
CelebornConf celebornConf =
FlinkUtils.toCelebornConf(shuffleMasterContext.getConfiguration());
// if not set, set to true as default for flink
@@ -91,6 +93,7 @@ public class RemoteShuffleMaster implements
ShuffleMaster<RemoteShuffleDescripto
}
Set<Integer> previousShuffleIds = jobShuffleIds.putIfAbsent(jobID, new
HashSet<>());
+ LOG.info("Register job: {}.", jobID);
shuffleResourceTracker.registerJob(context);
if (previousShuffleIds != null) {
throw new RuntimeException("Duplicated registration job: " + jobID);
@@ -144,6 +147,7 @@ public class RemoteShuffleMaster implements
ShuffleMaster<RemoteShuffleDescripto
new RemoteShuffleResource(
lifecycleManager.getRssMetaServiceHost(),
lifecycleManager.getRssMetaServicePort(),
+ rssMetaServiceTimestamp,
shuffleResourceDescriptor);
shuffleResourceTracker.addPartitionResource(
diff --git
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleOutputGate.java
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleOutputGate.java
index df89d7218..6ef65f836 100644
---
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleOutputGate.java
+++
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleOutputGate.java
@@ -30,6 +30,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.celeborn.common.CelebornConf;
+import org.apache.celeborn.common.exception.DriverChangedException;
import org.apache.celeborn.common.identity.UserIdentifier;
import org.apache.celeborn.common.protocol.PartitionLocation;
import org.apache.celeborn.plugin.flink.buffer.BufferPacker;
@@ -76,6 +77,7 @@ public class RemoteShuffleOutputGate {
private int partitionId;
private String rssMetaServiceHost;
private int rssMetaServicePort;
+ private long rssMetaServiceTimestamp;
private UserIdentifier userIdentifier;
private boolean isFirstHandShake = true;
@@ -109,6 +111,7 @@ public class RemoteShuffleOutputGate {
shuffleDesc.getShuffleResource().getMapPartitionShuffleDescriptor().getPartitionId();
this.rssMetaServiceHost =
shuffleDesc.getShuffleResource().getRssMetaServiceHost();
this.rssMetaServicePort =
shuffleDesc.getShuffleResource().getRssMetaServicePort();
+ this.rssMetaServiceTimestamp =
shuffleDesc.getShuffleResource().getRssMetaServiceTimestamp();
this.flinkShuffleClient = getShuffleClient();
}
@@ -219,8 +222,17 @@ public class RemoteShuffleOutputGate {
@VisibleForTesting
FlinkShuffleClientImpl getShuffleClient() {
- return FlinkShuffleClientImpl.get(
- rssMetaServiceHost, rssMetaServicePort, celebornConf, userIdentifier);
+ try {
+ return FlinkShuffleClientImpl.get(
+ rssMetaServiceHost,
+ rssMetaServicePort,
+ rssMetaServiceTimestamp,
+ celebornConf,
+ userIdentifier);
+ } catch (DriverChangedException e) {
+ // would generate a new attempt to retry output gate
+ throw new RuntimeException(e.getMessage());
+ }
}
/** Writes a piece of data to a subpartition. */
diff --git
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleResource.java
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleResource.java
index e57ac249b..96abfe340 100644
---
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleResource.java
+++
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/RemoteShuffleResource.java
@@ -23,15 +23,17 @@ public class RemoteShuffleResource implements
ShuffleResource {
private final String rssMetaServiceHost;
private final int rssMetaServicePort;
-
+ private final long rssMetaServiceTimestamp;
private ShuffleResourceDescriptor shuffleResourceDescriptor;
public RemoteShuffleResource(
String rssMetaServiceHost,
int rssMetaServicePort,
+ long rssMetaServiceTimestamp,
ShuffleResourceDescriptor remoteShuffleDescriptor) {
this.rssMetaServiceHost = rssMetaServiceHost;
this.rssMetaServicePort = rssMetaServicePort;
+ this.rssMetaServiceTimestamp = rssMetaServiceTimestamp;
this.shuffleResourceDescriptor = remoteShuffleDescriptor;
}
@@ -48,11 +50,16 @@ public class RemoteShuffleResource implements
ShuffleResource {
return rssMetaServicePort;
}
+ public long getRssMetaServiceTimestamp() {
+ return rssMetaServiceTimestamp;
+ }
+
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("RemoteShuffleResource{");
sb.append("rssMetaServiceHost='").append(rssMetaServiceHost).append('\'');
sb.append(", rssMetaServicePort=").append(rssMetaServicePort);
+ sb.append(", rssMetaServiceTimestamp=").append(rssMetaServiceTimestamp);
sb.append(",
shuffleResourceDescriptor=").append(shuffleResourceDescriptor);
sb.append('}');
return sb.toString();
diff --git
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/readclient/FlinkShuffleClientImpl.java
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/readclient/FlinkShuffleClientImpl.java
index e1b62eb1c..a0acd6dd4 100644
---
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/readclient/FlinkShuffleClientImpl.java
+++
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/readclient/FlinkShuffleClientImpl.java
@@ -35,6 +35,8 @@ import org.slf4j.LoggerFactory;
import org.apache.celeborn.client.ShuffleClientImpl;
import org.apache.celeborn.common.CelebornConf;
import org.apache.celeborn.common.exception.CelebornIOException;
+import org.apache.celeborn.common.exception.DriverChangedException;
+import org.apache.celeborn.common.exception.PartitionUnRetryAbleException;
import org.apache.celeborn.common.identity.UserIdentifier;
import org.apache.celeborn.common.network.TransportContext;
import org.apache.celeborn.common.network.buffer.NettyManagedBuffer;
@@ -66,23 +68,37 @@ public class FlinkShuffleClientImpl extends
ShuffleClientImpl {
private ReadClientHandler readClientHandler = new ReadClientHandler();
private ConcurrentHashMap<String, TransportClient> currentClient =
JavaUtils.newConcurrentHashMap();
+ private long driverTimestamp;
public static FlinkShuffleClientImpl get(
- String driverHost, int port, CelebornConf conf, UserIdentifier
userIdentifier) {
- if (null == _instance || !initialized) {
+ String driverHost,
+ int port,
+ long driverTimestamp,
+ CelebornConf conf,
+ UserIdentifier userIdentifier)
+ throws DriverChangedException {
+ if (null == _instance || !initialized || _instance.driverTimestamp <
driverTimestamp) {
synchronized (FlinkShuffleClientImpl.class) {
if (null == _instance) {
- _instance = new FlinkShuffleClientImpl(driverHost, port, conf,
userIdentifier);
- _instance.setupMetaServiceRef(driverHost, port);
+ _instance =
+ new FlinkShuffleClientImpl(driverHost, port, driverTimestamp,
conf, userIdentifier);
initialized = true;
- } else if (!initialized) {
+ } else if (!initialized || _instance.driverTimestamp <
driverTimestamp) {
_instance.shutdown();
- _instance = new FlinkShuffleClientImpl(driverHost, port, conf,
userIdentifier);
- _instance.setupMetaServiceRef(driverHost, port);
+ _instance =
+ new FlinkShuffleClientImpl(driverHost, port, driverTimestamp,
conf, userIdentifier);
initialized = true;
}
}
}
+
+ if (driverTimestamp < _instance.driverTimestamp) {
+ String format = "Driver reinitialized or changed
driverHost-port-driverTimestamp to %s-%s-%s";
+ String message = String.format(format, driverHost, port,
driverTimestamp);
+ logger.warn(message);
+ throw new DriverChangedException(message);
+ }
+
return _instance;
}
@@ -98,7 +114,11 @@ public class FlinkShuffleClientImpl extends
ShuffleClientImpl {
}
public FlinkShuffleClientImpl(
- String driverHost, int port, CelebornConf conf, UserIdentifier
userIdentifier) {
+ String driverHost,
+ int port,
+ long driverTimestamp,
+ CelebornConf conf,
+ UserIdentifier userIdentifier) {
super(conf, userIdentifier);
String module = TransportModuleConstants.DATA_MODULE;
TransportConf dataTransportConf =
@@ -108,6 +128,8 @@ public class FlinkShuffleClientImpl extends
ShuffleClientImpl {
dataTransportConf, readClientHandler,
conf.clientCloseIdleConnections());
this.flinkTransportClientFactory =
new FlinkTransportClientFactory(context,
conf.fetchMaxRetriesForEachReplica());
+ this.setupMetaServiceRef(driverHost, port);
+ this.driverTimestamp = driverTimestamp;
}
public RssBufferStream readBufferedPartition(
@@ -121,8 +143,8 @@ public class FlinkShuffleClientImpl extends
ShuffleClientImpl {
ReduceFileGroups fileGroups = loadFileGroup(applicationId, shuffleKey,
shuffleId, partitionId);
if (fileGroups.partitionGroups.size() == 0
|| !fileGroups.partitionGroups.containsKey(partitionId)) {
- logger.warn("Shuffle data is empty for shuffle {} partitionId {}.",
shuffleId, partitionId);
- return RssBufferStream.empty();
+ logger.error("Shuffle data is empty for shuffle {} partitionId {}.",
shuffleId, partitionId);
+ throw new PartitionUnRetryAbleException(partitionId + " may be lost.");
} else {
return RssBufferStream.create(
this,
diff --git
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/utils/FlinkUtils.java
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/utils/FlinkUtils.java
index 652893c18..823355da2 100644
---
a/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/utils/FlinkUtils.java
+++
b/client-flink/common/src/main/java/org/apache/celeborn/plugin/flink/utils/FlinkUtils.java
@@ -43,8 +43,8 @@ public class FlinkUtils {
return tmpCelebornConf;
}
- public static String toCelebornAppId(JobID jobID) {
- return jobID.toString();
+ public static String toCelebornAppId(long rssMetaServiceTimestamp, JobID
jobID) {
+ return rssMetaServiceTimestamp + "-" + jobID.toString();
}
public static String toShuffleId(JobID jobID, IntermediateDataSetID
dataSetID) {
diff --git
a/client-flink/common/src/test/java/org/apache/celeborn/plugin/flink/FlinkShuffleClientImplSuiteJ.java
b/client-flink/common/src/test/java/org/apache/celeborn/plugin/flink/FlinkShuffleClientImplSuiteJ.java
index 414c9a352..e5aa87611 100644
---
a/client-flink/common/src/test/java/org/apache/celeborn/plugin/flink/FlinkShuffleClientImplSuiteJ.java
+++
b/client-flink/common/src/test/java/org/apache/celeborn/plugin/flink/FlinkShuffleClientImplSuiteJ.java
@@ -55,7 +55,7 @@ public class FlinkShuffleClientImplSuiteJ {
public void setup() throws IOException, InterruptedException {
conf = new CelebornConf();
shuffleClient =
- new FlinkShuffleClientImpl("localhost", 1232, conf, null) {
+ new FlinkShuffleClientImpl("localhost", 1232,
System.currentTimeMillis(), conf, null) {
@Override
public void setupMetaServiceRef(String host, int port) {}
};
diff --git
a/client-flink/flink-1.14/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
b/client-flink/flink-1.14/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
index 38ccbb56a..ea8f896f2 100644
---
a/client-flink/flink-1.14/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
+++
b/client-flink/flink-1.14/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
@@ -561,7 +561,8 @@ public class RemoteShuffleResultPartitionSuiteJ {
new JobID(bytes),
new JobID(bytes).toString(),
new ResultPartitionID(),
- new RemoteShuffleResource("1", 2, new ShuffleResourceDescriptor(1, 1,
1, 0)));
+ new RemoteShuffleResource(
+ "1", 2, System.currentTimeMillis(), new
ShuffleResourceDescriptor(1, 1, 1, 0)));
}
/** Data written and its {@link Buffer.DataType}. */
diff --git
a/client-flink/flink-1.15/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
b/client-flink/flink-1.15/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
index 38ccbb56a..ea8f896f2 100644
---
a/client-flink/flink-1.15/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
+++
b/client-flink/flink-1.15/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
@@ -561,7 +561,8 @@ public class RemoteShuffleResultPartitionSuiteJ {
new JobID(bytes),
new JobID(bytes).toString(),
new ResultPartitionID(),
- new RemoteShuffleResource("1", 2, new ShuffleResourceDescriptor(1, 1,
1, 0)));
+ new RemoteShuffleResource(
+ "1", 2, System.currentTimeMillis(), new
ShuffleResourceDescriptor(1, 1, 1, 0)));
}
/** Data written and its {@link Buffer.DataType}. */
diff --git
a/client-flink/flink-1.17/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
b/client-flink/flink-1.17/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
index 38ccbb56a..ea8f896f2 100644
---
a/client-flink/flink-1.17/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
+++
b/client-flink/flink-1.17/src/test/java/org/apache/celeborn/plugin/flink/RemoteShuffleResultPartitionSuiteJ.java
@@ -561,7 +561,8 @@ public class RemoteShuffleResultPartitionSuiteJ {
new JobID(bytes),
new JobID(bytes).toString(),
new ResultPartitionID(),
- new RemoteShuffleResource("1", 2, new ShuffleResourceDescriptor(1, 1,
1, 0)));
+ new RemoteShuffleResource(
+ "1", 2, System.currentTimeMillis(), new
ShuffleResourceDescriptor(1, 1, 1, 0)));
}
/** Data written and its {@link Buffer.DataType}. */
diff --git
a/common/src/main/scala/org/apache/celeborn/common/exception/DriverChangedException.scala
b/common/src/main/scala/org/apache/celeborn/common/exception/DriverChangedException.scala
new file mode 100644
index 000000000..41b4c9b01
--- /dev/null
+++
b/common/src/main/scala/org/apache/celeborn/common/exception/DriverChangedException.scala
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.celeborn.common.exception
+
+class DriverChangedException(message: String, cause: Throwable)
+ extends CelebornIOException(message, cause) {
+
+ def this(message: String) = this(message, null)
+}
diff --git
a/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HeartbeatTest.scala
b/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HeartbeatTest.scala
index 6e20effe3..1f7511814 100644
---
a/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HeartbeatTest.scala
+++
b/tests/flink-it/src/test/scala/org/apache/celeborn/tests/flink/HeartbeatTest.scala
@@ -32,21 +32,42 @@ class HeartbeatTest extends AnyFunSuite with Logging with
MiniClusterFeature wit
test("celeborn flink hearbeat test - client <- worker") {
val (_, clientConf) = getTestHeartbeatFromWorker2ClientConf()
val flinkShuffleClientImpl =
- new FlinkShuffleClientImpl("", 0, clientConf, new UserIdentifier("1",
"1"))
+ new FlinkShuffleClientImpl(
+ "",
+ 0,
+ System.currentTimeMillis(),
+ clientConf,
+ new UserIdentifier("1", "1")) {
+ override def setupMetaServiceRef(host: String, port: Int): Unit = {}
+ }
testHeartbeatFromWorker2Client(flinkShuffleClientImpl.getDataClientFactory)
}
test("celeborn flink hearbeat test - client <- worker no heartbeat") {
val (_, clientConf) =
getTestHeartbeatFromWorker2ClientWithNoHeartbeatConf()
val flinkShuffleClientImpl =
- new FlinkShuffleClientImpl("", 0, clientConf, new UserIdentifier("1",
"1"))
+ new FlinkShuffleClientImpl(
+ "",
+ 0,
+ System.currentTimeMillis(),
+ clientConf,
+ new UserIdentifier("1", "1")) {
+ override def setupMetaServiceRef(host: String, port: Int): Unit = {}
+ }
testHeartbeatFromWorker2ClientWithNoHeartbeat(flinkShuffleClientImpl.getDataClientFactory)
}
test("celeborn flink hearbeat test - client <- worker timeout") {
val (_, clientConf) =
getTestHeartbeatFromWorker2ClientWithCloseChannelConf()
val flinkShuffleClientImpl =
- new FlinkShuffleClientImpl("", 0, clientConf, new UserIdentifier("1",
"1"))
+ new FlinkShuffleClientImpl(
+ "",
+ 0,
+ System.currentTimeMillis(),
+ clientConf,
+ new UserIdentifier("1", "1")) {
+ override def setupMetaServiceRef(host: String, port: Int): Unit = {}
+ }
testHeartbeatFromWorker2ClientWithCloseChannel(flinkShuffleClientImpl.getDataClientFactory)
}
}