You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/04/03 15:10:19 UTC
[doris] 06/07: [Fix](multi-catalog) fix hms automatic update error. (#18252)
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 <du...@gmail.com>
AuthorDate: Thu Mar 30 23:09:07 2023 +0800
[Fix](multi-catalog) fix hms automatic update error. (#18252)
Co-authored-by: wangxiangyu@360shuke.com <wa...@360shuke.com>
---
.../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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org