zhangwl9 commented on issue #3540:
URL: https://github.com/apache/amoro/issues/3540#issuecomment-2837778455

   As shown in the following figure, the data in the duration column is 
obtained by calculating duration = System.currentTimeMillis() - 
currentStatusStartTime.
   
   <!-- Failed to upload "image.png" -->
   
   However, as shown below, the in-memory value of currentStatusStartTime is in 
milliseconds like 12.586 s at the system.currentTimeMillis() level
   
   
![Image](https://github.com/user-attachments/assets/f86f61d5-530e-4e07-8d5c-bd9bbfe2e8ff)
   
   In the table "table_runtime" of MYSQL, the data type of the attribute 
optimizing_status_start_time (currentStatusStartTime)is timestamp, and the 
precision of this type is at the second level. The above value is saved as 13s 
in the database.
   
   If the Optimizing_Table page is queried at the moment of 12.896 s, the value 
of "duration" will be calculated as 12.896 - 13 = -0.104s and displayed as -1s.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to