You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/11/23 11:38:45 UTC

[GitHub] [incubator-doris] yangzhg commented on a change in pull request #7134: [enhancement] display load bytes in show load stmt

yangzhg commented on a change in pull request #7134:
URL: https://github.com/apache/incubator-doris/pull/7134#discussion_r755040230



##########
File path: fe/fe-core/src/main/java/org/apache/doris/load/loadv2/BrokerLoadJob.java
##########
@@ -346,6 +346,16 @@ private void updateLoadingStatus(BrokerLoadingTaskAttachment attachment) {
         }
     }
 
+    @Override
+    public void updateProgress(Long beId, TUniqueId loadId, TUniqueId fragmentId, long scannedRows,
+                               long scannedBytes, boolean isDone) {
+        super.updateProgress(beId, loadId, fragmentId, scannedRows, scannedBytes, isDone);
+        progress = (int) ((double) loadStatistic.getLoadBytes() / loadStatistic.totalFileSizeB * 100);

Review comment:
       yes, so I force made the max is 99




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org