[TASK][EASY] Fix flaky test BatchesV2ResourceSuite
- Dominant language
- Scala
- Stars
- 2.4k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before creating
- [X] I have searched in the [task list](https://github.com/orgs/apache/projects/296) and found no similar tasks.
### Mentor
- [ ] I have sufficient knowledge and experience of this task, and I volunteer to be the mentor of this task to guide contributors to complete the task.
### Skill requirements
- Scala
### Background and Goals
```
BatchesV2ResourceSuite:
- open batch session
- open batch session with uploading resource *** FAILED ***
The code passed to eventually never returned normally. Attempted 35 times over 5.016062152 seconds. Last failure message: Array(/home/runner/work/kyuubi/kyuubi/kyuubi-server/target/work/upload/spark-examples_2.12-3.1.3-20231025183320-3.jar) was not empty. (BatchesResourceSuite.scala:308)
```
### Implementation steps
- fix test
- pass the ci
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.