This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit 1b2096502b682da77551938fca7099e79787319a Author: Xiangyu Wang <[email protected]> AuthorDate: Thu Mar 30 23:09:07 2023 +0800 [Fix](multi-catalog) fix hms automatic update error. (#18252) Co-authored-by: [email protected] <[email protected]> --- .../src/main/java/org/apache/doris/datasource/HMSExternalCatalog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/HMSExternalCatalog.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/HMSExternalCatalog.java index 0cf7afdc53..1f0b65c720 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/HMSExternalCatalog.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/HMSExternalCatalog.java @@ -52,7 +52,9 @@ public class HMSExternalCatalog extends ExternalCatalog { private static final int MAX_CLIENT_POOL_SIZE = 8; protected PooledHiveMetaStoreClient client; // Record the latest synced event id when processing hive events - private long lastSyncedEventId; + // Must set to -1 otherwise client.getNextNotification will throw exception + // Reference to https://github.com/apache/doris/issues/18251 + private long lastSyncedEventId = -1L; /** * Default constructor for HMSExternalCatalog. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
