leesf commented on code in PR #6952:
URL: https://github.com/apache/hudi/pull/6952#discussion_r996221199


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/validator/SparkPreCommitValidator.java:
##########
@@ -70,7 +70,7 @@ protected Set<String> 
getPartitionsModified(HoodieWriteMetadata<O> writeResult)
    * Throw HoodieValidationException if any unexpected data is written 
(Example: data files are not readable for some reason).
    */
   public void validate(String instantTime, HoodieWriteMetadata<O> writeResult, 
Dataset<Row> before, Dataset<Row> after) throws HoodieValidationException {
-    HoodieTimer timer = new HoodieTimer().startTimer();
+    HoodieTimer timer = HoodieTimer.start();

Review Comment:
   is there any other usage of deprecated `new HoodieTimer().startTimer()` in 
the project in other places? we can also update it in the PR. 



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