This is an automated email from the ASF dual-hosted git repository.

zuston pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git


The following commit(s) were added to refs/heads/master by this push:
     new 44dff5ff2 [#2243] improvement(server): Record the unexpected exception 
event flushing operation duration (#2244)
44dff5ff2 is described below

commit 44dff5ff2622a52738325ddca8f8b03f5baf8107
Author: Junfan Zhang <[email protected]>
AuthorDate: Mon Nov 11 15:14:41 2024 +0800

    [#2243] improvement(server): Record the unexpected exception event flushing 
operation duration (#2244)
    
    ### What changes were proposed in this pull request?
    
    Record the unexpected exception event flushing operation duration
    
    ### Why are the changes needed?
    
    For: #2243
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Needn't
    
    Co-authored-by: Junfan Zhang <[email protected]>
---
 .../java/org/apache/uniffle/server/DefaultFlushEventHandler.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/server/src/main/java/org/apache/uniffle/server/DefaultFlushEventHandler.java 
b/server/src/main/java/org/apache/uniffle/server/DefaultFlushEventHandler.java
index 9fa586628..56dcc02bf 100644
--- 
a/server/src/main/java/org/apache/uniffle/server/DefaultFlushEventHandler.java
+++ 
b/server/src/main/java/org/apache/uniffle/server/DefaultFlushEventHandler.java
@@ -144,7 +144,10 @@ public class DefaultFlushEventHandler implements 
FlushEventHandler {
       }
 
       LOG.error(
-          "Unexpected exceptions happened when handling the flush event: {}, 
due to ", event, e);
+          "Unexpected exceptions happened when handling the flush event: [{}] 
(it cost {} ms), due to ",
+          event,
+          System.currentTimeMillis() - start,
+          e);
       // We need to release the memory when unexpected exceptions happened
       event.doCleanup();
     } finally {

Reply via email to