This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 132f14f4f9 [hotfix] RestCatalog: fix potential dead loop when
listTables/Views/Partitions (#5210)
132f14f4f9 is described below
commit 132f14f4f9260ddc3a7966c6da144948501a7925
Author: XiaoHongbo <[email protected]>
AuthorDate: Wed Mar 5 12:09:36 2025 +0800
[hotfix] RestCatalog: fix potential dead loop when
listTables/Views/Partitions (#5210)
---
paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java
b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java
index b667570011..7ded01995e 100644
--- a/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java
+++ b/paimon-core/src/main/java/org/apache/paimon/rest/RESTCatalog.java
@@ -293,6 +293,7 @@ public class RESTCatalog implements Catalog,
SupportsSnapshots, SupportsBranches
"response of listTables for {} is null with params
{}",
databaseName,
queryParams);
+ break;
}
} while (StringUtils.isNotEmpty(pageToken));
return tables;
@@ -684,6 +685,7 @@ public class RESTCatalog implements Catalog,
SupportsSnapshots, SupportsBranches
identifier.getDatabaseName(),
identifier.getTableName(),
queryParams);
+ break;
}
} while (StringUtils.isNotEmpty(pageToken));
return partitions;
@@ -884,6 +886,7 @@ public class RESTCatalog implements Catalog,
SupportsSnapshots, SupportsBranches
"response of listViews for {} is null with params
{}",
databaseName,
queryParams);
+ break;
}
} while (StringUtils.isNotEmpty(pageToken));
return views;