github-actions[bot] commented on code in PR #62449:
URL: https://github.com/apache/doris/pull/62449#discussion_r3084387697
##########
fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingInsertJob.java:
##########
@@ -1152,6 +1156,7 @@ public void gsonPostProcess() throws IOException {
if (offsetProvider == null) {
if (tvfType != null) {
offsetProvider =
SourceOffsetProviderFactory.createSourceOffsetProvider(tvfType);
Review Comment:
`restoreFromPersistInfo()` makes `offsetProviderPersist` the source of truth
for TVF jobs right after image load, but the cloud S3 commit path still never
refreshes that field. In `StreamingJobSchedulerTask`, `replayOnCloudMode()`
only runs while the job is `PENDING`; a job that is already `PAUSED` after
checkpoint restart will only use the value restored here. That means a
cloud-mode S3 job can consume data, get paused, checkpoint, and come back with
an empty/stale `currentOffset` unless it happened to go through `ALTER JOB`.
Please keep `offsetProviderPersist` in sync from
`updateCloudJobStatisticAndOffset()` as well, or rehydrate paused cloud jobs
from the metastore during image load.
##########
fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingJobStatistic.java:
##########
@@ -34,12 +34,15 @@ public class StreamingJobStatistic {
private long loadBytes;
@Getter
@Setter
+ @SerializedName("fileNumber")
private long fileNumber;
@Getter
@Setter
+ @SerializedName("fileSize")
private long fileSize;
@Getter
@Setter
+ @SerializedName("filteredRows")
Review Comment:
Adding `@SerializedName("filteredRows")` alone does not actually fix
`filteredRows` for streaming insert jobs. On the txn-backed path,
`beforeCommitted()` builds `StreamingTaskTxnCommitAttachment` from
`LoadStatistic`, but that attachment only carries scanned rows, load bytes,
file count and file size; `updateJobStatisticAndOffset()` never calls
`jobStatistic.setFilteredRows(...)` either. So this field is still serialized
as a permanent `0`, and the new regression test does not catch it because it
only compares before/after values. Please either wire filtered rows through the
commit attachment or drop this field from the claimed fix/test coverage.
--
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]