github-actions[bot] commented on code in PR #70651:
URL: https://github.com/apache/doris/pull/70651#discussion_r4662956753
##########
regression-test/suites/job_p0/streaming_job/test_streaming_job_restart_fe.groovy:
##########
@@ -30,6 +30,13 @@ suite("test_streaming_job_restart_fe", "docker") {
options.cloudMode = null
docker(options) {
+ def bucket = getS3BucketName()
+ def prefix =
"regression/load/streaming_job/${jobName}/${UUID.randomUUID()}"
+ def s3Client = getS3Client()
+ (0..1).each { index ->
+ s3Client.copyObject(bucket,
"regression/load/data/example_${index}.csv",
Review Comment:
[P2] Use the configured storage provider for restart fixtures
With the supported `s3Source=azure` configuration, `getS3Provider()` is
Azure, but `getS3Client()` always builds `AmazonS3` using the raw endpoint
(`azure-endpoint` by default). These unconditional copies therefore fail before
`CREATE JOB`; supplying a real Blob endpoint still does not make it implement
S3 authentication/copy requests. The later `putObject()` has the same problem.
Use provider-aware copy/upload operations, analogous to the existing Azure
regression uploaders, so this suite retains coverage with the configured
provider.
##########
regression-test/suites/job_p0/streaming_job/test_streaming_job_restart_fe.groovy:
##########
@@ -103,28 +109,35 @@ suite("test_streaming_job_restart_fe", "docker") {
select currentOffset, endoffset, loadStatistic from
jobs("type"="insert") where Name='${jobName}'
"""
log.info("jobInfo: " + jobInfo)
- assert jobInfo.get(0).get(0) ==
"{\"fileName\":\"regression/load/data/example_1.csv\"}";
+ assert parseJson(jobInfo[0][0]).fileName == "${prefix}/example_1.csv"
def loadStat = parseJson(jobInfo.get(0).get(2))
assert loadStat.scannedRows == 20
assert loadStat.loadBytes == 425
assert loadStat.fileNumber == 2
assert loadStat.fileSize == 256
+ Awaitility.await().pollInSameThread().atMost(300,
SECONDS).pollInterval(1, SECONDS).until {
+ sql("SELECT COUNT(*) FROM ${tableName}")[0][0] == 20
+ }
+ order_qt_before_restart "SELECT * FROM ${tableName} ORDER BY c1, c2,
c3"
Review Comment:
[P2] Reopen expected results for each Docker mode
With the default `UNKNOWN` run mode and no external FE, `options.cloudMode =
null` makes `Suite.docker()` execute this closure in non-cloud mode and then
cloud mode on the same thread. The first pass consumes all three blocks in the
new `.out` file, while `dockerImpl()` resets only the connection and
`SuiteContext.getOutputIterator()` retains its forward-only reader until the
whole suite ends. The second pass therefore throws `Missing output block for
tag 'before_restart'` here even when recovery succeeds. Close/reopen the
expected results per mode, or provide baselines for both executions while
retaining both modes.
--
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]