cxzl25 opened a new pull request #2261: URL: https://github.com/apache/incubator-kyuubi/pull/2261
### _Why are the changes needed?_ close https://github.com/apache/incubator-kyuubi/issues/2260 The default value of completedTime is 0, and the calculation of duration only considers the case where completedTime is -1. org.apache.kyuubi.operation.AbstractOperation ```scala protected var completedTime: Long = _ ```` org.apache.kyuubi.engine.spark.events.SparkOperationEvent ```scala def duration: Long = { if (completeTime == -1L) { System.currentTimeMillis - createTime } else { completeTime - createTime } } ``` ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
