From 63bfde7caabf4ddd932a69dd08112ece116a50b9 Mon Sep 17 00:00:00 2001 From: 18823700357 <329386014@qq.com> Date: Mon, 6 Mar 2023 10:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/apache/nifi/processors/huawei/obs/ListOBSObject.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nifi-huawei-processors/src/main/java/org/apache/nifi/processors/huawei/obs/ListOBSObject.java b/nifi-huawei-processors/src/main/java/org/apache/nifi/processors/huawei/obs/ListOBSObject.java index 3bf50e8..53290b7 100644 --- a/nifi-huawei-processors/src/main/java/org/apache/nifi/processors/huawei/obs/ListOBSObject.java +++ b/nifi-huawei-processors/src/main/java/org/apache/nifi/processors/huawei/obs/ListOBSObject.java @@ -150,7 +150,7 @@ public class ListOBSObject extends AbstractListHuaweiProcessor { ObsBucketLister bucketLister = new OBSObjectBucketLister(client, context); do { ListVersionsResult versionListing = bucketLister.listVersions(); - getLogger().warn("ListVersionsResult count : {}", versionListing.getVersions().length); + for (VersionOrDeleteMarker versionSummary : versionListing.getVersions()) { if (!isFileInfoMatchesWithAgeAndSize(context, minimumTimestamp, versionSummary.getLastModified().getTime(), versionSummary.getSize())) { continue; @@ -164,6 +164,7 @@ public class ListOBSObject extends AbstractListHuaweiProcessor { list.add(record); batchCount++; } + getLogger().warn("ListVersionsResult count : {}/{}", batchCount, versionListing.getVersions().length); bucketLister.setNextMarker(); getLogger().info("Successfully listed {} new files from OBS; routing to success", batchCount); batchCount = 0; -- Gitee