zhenjiaguo commented on issue #1703:
URL: 
https://github.com/apache/incubator-kyuubi/issues/1703#issuecomment-1009639756


   > can you check this flaky test?
   > 
   > ```
   > BackendServiceTimeMetricSuite:
   > - backend service method time metric test *** FAILED ***
   >   java.io.FileNotFoundException: 
/home/runner/work/incubator-kyuubi/incubator-kyuubi/kyuubi-server/target/tmp/kyuubi-9fba7112-636f-4d96-a867-b0f746995bed/report.json
 (No such file or directory)
   >   at java.io.FileInputStream.open0(Native Method)
   >   at java.io.FileInputStream.open(FileInputStream.java:195)
   >   at java.io.FileInputStream.<init>(FileInputStream.java:138)
   >   at 
com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:1029)
   >   at 
com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:3076)
   >   at 
org.apache.kyuubi.server.BackendServiceTimeMetricSuite.$anonfun$new$2(BackendServiceTimeMetricSuite.scala:60)
   >   at 
org.apache.kyuubi.server.BackendServiceTimeMetricSuite.$anonfun$new$2$adapted(BackendServiceTimeMetricSuite.scala:45)
   >   at 
org.apache.kyuubi.operation.JDBCTestHelper.$anonfun$withMultipleConnectionJdbcStatement$3(JDBCTestHelper.scala:60)
   >   at 
org.apache.kyuubi.operation.JDBCTestHelper.$anonfun$withMultipleConnectionJdbcStatement$3$adapted(JDBCTestHelper.scala:60)
   >   at 
scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
   >   ...
   > ```
   
   This test set `metrics.json.interval` is `100ms`, that means every `100ms` 
will generate a JSON reporters file in the path `java.io.tmpdir + kyuubi + 
UUID.randomUUID()` that we define in test. Every query in this test, will wait 
`111ms` to wait JSON file generate or update.
   
   That seems that JSON file is not generate after we query `111ms`.
   
   I never meet this error before. Can you give me more information? Or you can 
try to sleep more than `111ms` after query.


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