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
4 changes: 4 additions & 0 deletions fe/src/main/java/org/apache/doris/qe/Coordinator.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,15 @@ public void exec() throws Exception {
toBrpcHost(execBeAddr),
queryOptions.query_timeout * 1000);

LOG.info("dispatch query job: {} to {}", DebugUtil.printId(queryId), topParams.instanceExecParams.get(0).host);

// set the broker address for OUTFILE sink
ResultSink resultSink = (ResultSink) topParams.fragment.getSink();
if (resultSink.isOutputFileSink() && resultSink.needBroker()) {
FsBroker broker = Catalog.getCurrentCatalog().getBrokerMgr().getBroker(resultSink.getBrokerName(),
execBeAddr.getHostname());
resultSink.setBrokerAddr(broker.ip, broker.port);
LOG.info("OUTFILE through broker: {}:{}", broker.ip, broker.port);
}

} else {
Expand All @@ -425,6 +428,7 @@ public void exec() throws Exception {
List<Long> relatedBackendIds = Lists.newArrayList(addressToBackendID.values());
Catalog.getCurrentCatalog().getLoadManager().initJobProgress(jobId, queryId, instanceIds,
relatedBackendIds);
LOG.info("dispatch load job: {} to {}", DebugUtil.printId(queryId), addressToBackendID.keySet());
}

// to keep things simple, make async Cancel() calls wait until plan fragment
Expand Down