== case=happyLegacyDone
taskCacheSave: id=1001
mergedSave: taskId=1001 shopKey=Demo Shop shopName=Demo Shop error=- countries=1 rows=1 done=true chunk=null/null
result.update: id=2001 success=1 error=- filename=- urlPresent=false size=null contentType=- rowCount=null
mergedRemove: taskId=1001 shopKey=Demo Shop
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=RUNNING total=1 ok=1 fail=0
task.update: id=1001 status=RUNNING ok=null fail=null sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=false
taskCacheSave: id=1001
taskCacheSave: id=1001
task.update: id=1001 status=SUCCESS ok=1 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=true
result.batchUpdate: columns=resultFilename,resultFileUrl,resultFileSize,resultContentType,rowCount where=(id IN (#{ew.paramNameValuePairs.MPGENVAL6}) AND success = #{ew.paramNameValuePairs.MPGENVAL7}) params=MPGENVAL1="店铺数据抓取-Demo Shop-1001.xlsx",MPGENVAL2=null,MPGENVAL3=0,MPGENVAL4="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",MPGENVAL5=1
enqueue: taskId=1001 resultId=2001 scopeKey=task:1001:owner:instance-a
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=SUCCESS total=1 ok=1 fail=0
task.update: id=1001 status=SUCCESS ok=1 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=true
taskCacheDelete: taskId=1001
events=16 heartbeatTouches=1 lockCloses=2 chunks=0 scopes=0 rustfs=0
== case=failedShopFinalizesTaskFailed
taskCacheSave: id=1001
result.update: id=2001 success=0 error=店铺打不开 filename=- urlPresent=false size=0 contentType=- rowCount=0
mergedRemove: taskId=1001 shopKey=Demo Shop
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=RUNNING total=1 ok=0 fail=1
task.update: id=1001 status=RUNNING ok=null fail=null sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=false finishedPresent=false
taskCacheSave: id=1001
taskCacheSave: id=1001
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=FAILED total=1 ok=0 fail=1
task.update: id=1001 status=FAILED ok=0 fail=1 sourceFileCount=null error=Demo Shop: 店铺打不开 resultJsonItems=1 resultJsonHasRows=false finishedPresent=true
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=FAILED total=1 ok=0 fail=1
task.update: id=1001 status=FAILED ok=0 fail=1 sourceFileCount=null error=Demo Shop: 店铺打不开 resultJsonItems=1 resultJsonHasRows=false finishedPresent=true
taskCacheDelete: taskId=1001
events=15 heartbeatTouches=1 lockCloses=2 chunks=0 scopes=0 rustfs=0
== case=legacyWithoutDoneWaits
taskCacheSave: id=1001
mergedSave: taskId=1001 shopKey=Demo Shop shopName=Demo Shop error=- countries=1 rows=1 done=null chunk=null/null
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=RUNNING total=1 ok=0 fail=0
task.update: id=1001 status=RUNNING ok=null fail=null sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=false
taskCacheSave: id=1001
taskCacheSave: id=1001
task.update: id=1001 status=RUNNING ok=0 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=false
taskCacheSave: id=1001
events=9 heartbeatTouches=1 lockCloses=2 chunks=0 scopes=0 rustfs=0
== case=shopNameMismatchRejected
thrown: BusinessException code=- message=回传店铺与任务不匹配
== case=twoShopsRejectedBeforeLock
thrown: BusinessException code=- message=shops 必须且只能包含一个店铺结果
== case=nullRequestRejectedBeforeLock
thrown: BusinessException code=- message=shops 必须且只能包含一个店铺结果
== case=nullShopInListRejected
thrown: BusinessException code=- message=shops 包含空结果
== case=invalidTaskIdRejectedBeforeLock
thrown: BusinessException code=- message=taskId 不合法
events=0 heartbeatTouches=0 lockCloses=0 chunks=0 scopes=0 rustfs=0
== case=terminalTaskRejectedWithoutCode
thrown: BusinessException code=- message=任务已结束，拒绝重复提交
== case=wrongModuleTaskNotFound
thrown: BusinessException code=- message=任务不存在
== case=ownershipCheckedBeforeTerminal
thrown: TaskOwnerMismatchException code=40903 message=该任务已绑定到另一台服务实例处理，请通过原实例继续处理
== case=twoResultRowsRejected
thrown: BusinessException code=- message=任务店铺数据异常
== case=partialChunkStored
taskCacheSave: id=1001
payloadStore: pointer=rustfs:payload-1
chunkInsert: idx=1/2 hash=eafc7b7e1451 scopeKey=result-chunks:Demo Shop
scopeInsert: received=1 total=2 completed=0 scopeKey=result-chunks:Demo Shop
task.update: id=1001 status=RUNNING ok=null fail=null sourceFileCount=null error=- resultJsonItems=0 resultJsonHasRows=false finishedPresent=false
taskCacheSave: id=1001
taskCacheSave: id=1001
task.update: id=1001 status=RUNNING ok=0 fail=0 sourceFileCount=null error=- resultJsonItems=0 resultJsonHasRows=false finishedPresent=false
taskCacheSave: id=1001
events=9 heartbeatTouches=1 lockCloses=2 chunks=1 scopes=1 rustfs=1
== case=secondChunkArrivesFirst
taskCacheSave: id=1001
payloadStore: pointer=rustfs:payload-2
chunkInsert: idx=1/2 hash=eafc7b7e1451 scopeKey=result-chunks:Demo Shop
scopeUpdate: received=2 total=2 completed=1 scopeKey=result-chunks:Demo Shop
payloadResolve: pointer=rustfs:payload-2
payloadResolve: pointer=rustfs:payload-1
result.update: id=2001 success=1 error=- filename=- urlPresent=false size=null contentType=- rowCount=null
mergedRemove: taskId=1001 shopKey=Demo Shop
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=RUNNING total=1 ok=1 fail=0
task.update: id=1001 status=RUNNING ok=0 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=false
taskCacheSave: id=1001
taskCacheSave: id=1001
task.update: id=1001 status=SUCCESS ok=1 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=true
result.batchUpdate: columns=resultFilename,resultFileUrl,resultFileSize,resultContentType,rowCount where=(id IN (#{ew.paramNameValuePairs.MPGENVAL6}) AND success = #{ew.paramNameValuePairs.MPGENVAL7}) params=MPGENVAL1="店铺数据抓取-Demo Shop-1001.xlsx",MPGENVAL2=null,MPGENVAL3=0,MPGENVAL4="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",MPGENVAL5=1
enqueue: taskId=1001 resultId=2001 scopeKey=task:1001:owner:instance-a
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=SUCCESS total=1 ok=1 fail=0
task.update: id=1001 status=SUCCESS ok=1 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=true
taskCacheDelete: taskId=1001
events=20 heartbeatTouches=2 lockCloses=4 chunks=2 scopes=1 rustfs=2
== case=identicalChunkRetryAbsorbed
taskCacheSave: id=1001
payloadStore: pointer=rustfs:payload-2
payloadDelete: pointer=rustfs:payload-2
scopeUpdate: received=1 total=2 completed=0 scopeKey=result-chunks:Demo Shop
task.update: id=1001 status=RUNNING ok=0 fail=0 sourceFileCount=null error=- resultJsonItems=0 resultJsonHasRows=false finishedPresent=false
taskCacheSave: id=1001
taskCacheSave: id=1001
task.update: id=1001 status=RUNNING ok=0 fail=0 sourceFileCount=null error=- resultJsonItems=0 resultJsonHasRows=false finishedPresent=false
taskCacheSave: id=1001
events=9 heartbeatTouches=2 lockCloses=4 chunks=1 scopes=1 rustfs=1
== case=chunkRetryWithDifferentContentRejected
thrown: BusinessException code=- message=同一 chunk_index 已回传不同内容，拒绝覆盖
== case=chunkIndexWithoutTotalRejected
thrown: BusinessException code=- message=chunk_index 与 chunk_total 必须同时传入
== case=chunkTotalChangeRejected
thrown: BusinessException code=- message=同一店铺的 chunk_total 必须保持一致
== case=chunkRejectedWhenRustfsDisabled
thrown: BusinessException code=- message=RustFS 未配置，店铺数据抓取结果分片暂不可接收
== case=completedRowFlushesWorkbookColumns
taskCacheSave: id=1001
payloadStore: pointer=rustfs:payload-1
chunkInsert: idx=1/1 hash=b6c082cd9d58 scopeKey=result-chunks:Demo Shop
scopeInsert: received=1 total=1 completed=1 scopeKey=result-chunks:Demo Shop
payloadResolve: pointer=rustfs:payload-1
result.update: id=2001 success=1 error=- filename=- urlPresent=false size=null contentType=- rowCount=null
mergedRemove: taskId=1001 shopKey=Demo Shop
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=RUNNING total=1 ok=1 fail=0
task.update: id=1001 status=RUNNING ok=null fail=null sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=false
taskCacheSave: id=1001
taskCacheSave: id=1001
task.update: id=1001 status=SUCCESS ok=1 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=true
result.batchUpdate: columns=resultFilename,resultFileUrl,resultFileSize,resultContentType,rowCount where=(id IN (#{ew.paramNameValuePairs.MPGENVAL6}) AND success = #{ew.paramNameValuePairs.MPGENVAL7}) params=MPGENVAL1="店铺数据抓取-Demo Shop-1001.xlsx",MPGENVAL2=null,MPGENVAL3=0,MPGENVAL4="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",MPGENVAL5=1
enqueue: taskId=1001 resultId=2001 scopeKey=task:1001:owner:instance-a
snapshotTable.replace: taskId=1001 items=1
progressSave: taskId=1001 status=SUCCESS total=1 ok=1 fail=0
task.update: id=1001 status=SUCCESS ok=1 fail=0 sourceFileCount=null error=- resultJsonItems=1 resultJsonHasRows=true finishedPresent=true
taskCacheDelete: taskId=1001
events=19 heartbeatTouches=1 lockCloses=2 chunks=1 scopes=1 rustfs=1
