From 50b7a35d560d6493884a423d7b928d48fab1ba65 Mon Sep 17 00:00:00 2001 From: Li Lu Date: Wed, 27 Apr 2016 10:57:10 -0700 Subject: [PATCH] YARN-4956. findbug issue on LevelDBCacheTimelineStore. (Zhiyuan Yang via gtcarrera9) (cherry picked from commit f16722d2ef31338a57a13e2c8d18c1c62d58bbaf) --- .../hadoop/yarn/server/timeline/LevelDBCacheTimelineStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timeline-pluginstorage/src/main/java/org/apache/hadoop/yarn/server/timeline/LevelDBCacheTimelineStore.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timeline-pluginstorage/src/main/java/org/apache/hadoop/yarn/server/timeline/LevelDBCacheTimelineStore.java index 3ff5dd7d27e..ccf2d944a76 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timeline-pluginstorage/src/main/java/org/apache/hadoop/yarn/server/timeline/LevelDBCacheTimelineStore.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timeline-pluginstorage/src/main/java/org/apache/hadoop/yarn/server/timeline/LevelDBCacheTimelineStore.java @@ -78,7 +78,7 @@ public class LevelDBCacheTimelineStore extends KeyValueBasedTimelineStore { } @Override - protected void serviceInit(Configuration conf) throws Exception { + protected synchronized void serviceInit(Configuration conf) throws Exception { configuration = conf; Options options = new Options(); options.createIfMissing(true);