[Log] Add log for trace broker (#4505)
Add tracing broker log. When fe get filestatus for distributing load task to broker, the broker maybe get empty files and not give correct error code. Add this log to easy track which broker process filestatus operation and we can get the error log.
This commit is contained in:
@ -408,7 +408,7 @@ public class BrokerUtil {
|
||||
return pair;
|
||||
}
|
||||
|
||||
private static TNetworkAddress getAddress(BrokerDesc brokerDesc) throws UserException {
|
||||
public static TNetworkAddress getAddress(BrokerDesc brokerDesc) throws UserException {
|
||||
FsBroker broker = null;
|
||||
try {
|
||||
String localIP = FrontendOptions.getLocalHostAddress();
|
||||
|
||||
@ -87,8 +87,8 @@ public class BrokerLoadPendingTask extends LoadTask {
|
||||
}
|
||||
tableTotalFileSize += groupFileSize;
|
||||
tableTotalFileNum += fileStatuses.size();
|
||||
LOG.info("get {} files in file group {} for table {}. size: {}. job: {}",
|
||||
fileStatuses.size(), groupNum, entry.getKey(), groupFileSize, callback.getCallbackId());
|
||||
LOG.info("get {} files in file group {} for table {}. size: {}. job: {}, broker: {} ",
|
||||
fileStatuses.size(), groupNum, entry.getKey(), groupFileSize, callback.getCallbackId(), BrokerUtil.getAddress(brokerDesc));
|
||||
groupNum++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user