Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ private void fetchBeToThriftAddress() {
String clusterName = isEventDriven() ? srcClusterName : dstClusterName;
List<Backend> backends = ((CloudSystemInfoService) Env.getCurrentSystemInfo())
.getBackendsByClusterName(clusterName);
this.beToThriftAddress = new HashMap<>();
for (Backend backend : backends) {
beToThriftAddress.put(backend.getId(), backend.getHost() + ":" + backend.getBePort());
}
Expand Down Expand Up @@ -597,6 +598,10 @@ private void runPendingJob() throws DdlException {
this.setJobDone = false;
this.lastBatchId = -1;
this.startTimeMs = System.currentTimeMillis();
// reset clients to ensure we have the latest BE info
this.beToThriftAddress = null;
this.beToClient = null;
this.beToAddr = null;
MetricRepo.updateClusterWarmUpJobLatestStartTime(String.valueOf(jobId), srcClusterName,
dstClusterName, startTimeMs);
this.fetchBeToTabletIdBatches();
Expand Down