This is an automated email from the ASF dual-hosted git repository.
daijy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 12f8371 HIVE-21478: Metastore cache update shall capture exception
(Daniel Dai, reviewed by Zoltan Haindrich)
12f8371 is described below
commit 12f83719d940034dc8c6273e2772f6b30d07108e
Author: Daniel Dai <[email protected]>
AuthorDate: Tue Mar 26 14:31:13 2019 -0700
HIVE-21478: Metastore cache update shall capture exception (Daniel Dai,
reviewed by Zoltan Haindrich)
Signed-off-by: Zoltan Haindrich <[email protected]>
---
.../java/org/apache/hadoop/hive/metastore/cache/CachedStore.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
index bded743..41b72d1 100644
---
a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
+++
b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
@@ -715,7 +715,11 @@ public class CachedStore implements RawStore, Configurable
{
}
} else {
// TODO: prewarm and update can probably be merged.
- update();
+ try {
+ update();
+ } catch (Exception e) {
+ LOG.error("periodical refresh fail ", e);
+ }
}
} else {
try {