morningman commented on a change in pull request #1546: Fix bugs of Broker load
URL: https://github.com/apache/incubator-doris/pull/1546#discussion_r307174462
 
 

 ##########
 File path: 
fe/src/main/java/org/apache/doris/load/loadv2/BrokerLoadPendingTask.java
 ##########
 @@ -65,24 +65,33 @@ private void getAllFileStatus()
 
             List<List<TBrokerFileStatus>> fileStatusList = 
Lists.newArrayList();
             List<BrokerFileGroup> fileGroups = entry.getValue();
+            long totalFileSize = 0;
+            int totalFileNum = 0;
+            int groupNum = 0;
             for (BrokerFileGroup fileGroup : fileGroups) {
+                long groupFileSize = 0;
                 List<TBrokerFileStatus> fileStatuses = Lists.newArrayList();
                 for (String path : fileGroup.getFilePaths()) {
                     BrokerUtil.parseBrokerFile(path, brokerDesc, fileStatuses);
                 }
                 fileStatusList.add(fileStatuses);
-                if (LOG.isDebugEnabled()) {
-                    for (TBrokerFileStatus fstatus : fileStatuses) {
+                for (TBrokerFileStatus fstatus : fileStatuses) {
+                    groupFileSize += fstatus.getSize();
+                    if (LOG.isDebugEnabled()) {
                         LOG.debug(new LogBuilder(LogKey.LOAD_JOB, 
callback.getCallbackId())
-                                          .add("file_status", fstatus)
-                                          .build());
+                                .add("file_status", fstatus).build());
                     }
                 }
+                totalFileSize += groupFileSize;
+                totalFileNum += fileStatuses.size();
+                LOG.info("get {} files to in file group {}. size: {}. job: {}",
+                        fileStatuses.size(), groupNum, groupFileSize, 
callback.getCallbackId());
+                groupNum++;
 
 Review comment:
   I will add a table id here

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to