[KYUUBI #2676] Flaky Test: SparkOperationProgressSuite: test operation progress

### _Why are the changes needed?_
The update of `statusStore` is not timely. If the event interval is too short, less than the default value of `100ms`, the `statusStore` will not be updated.

org.apache.spark.status.AppStatusListener#onTaskStart
org.apache.spark.status.AppStatusListener#onTaskEnd
```scala
        maybeUpdate(stage, now)
```

close #2676

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

- [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #2818 from cxzl25/KYUUBI-2676.

Closes #2676

51c4b7c4 [sychen] trigger test
56fb5ca3 [sychen] liveUpdate period

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: ulysses-you <ulyssesyou@apache.org>
This commit is contained in:
sychen 2022-06-07 09:10:14 +08:00 committed by ulysses-you
parent 0cb6f162c0
commit 411992cd00
No known key found for this signature in database
GPG Key ID: 4C500BC62D576766

View File

@ -31,6 +31,7 @@ class SparkOperationProgressSuite extends WithSparkSQLEngine with HiveJDBCTestHe
override protected def jdbcUrl: String = getJdbcUrl
override def withKyuubiConf: Map[String, String] = Map(
"spark.master" -> "local[1]",
"spark.ui.liveUpdate.period" -> "0",
"kyuubi.operation.progress.enabled" -> "true",
"kyuubi.operation.status.polling.timeout" -> "1000")