You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by db...@apache.org on 2016/06/09 12:28:19 UTC
ambari git commit: AMBARI-17085 : corrected the initialization
condition of view entities. (Nitiraj Rathore via dipayanb)
Repository: ambari
Updated Branches:
refs/heads/trunk ddb201f8c -> 140c9f13d
AMBARI-17085 : corrected the initialization condition of view entities. (Nitiraj Rathore via dipayanb)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/140c9f13
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/140c9f13
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/140c9f13
Branch: refs/heads/trunk
Commit: 140c9f13d6b663847473d50ad3b3bed74c3de84f
Parents: ddb201f
Author: Dipayan Bhowmick <di...@gmail.com>
Authored: Thu Jun 9 17:58:01 2016 +0530
Committer: Dipayan Bhowmick <di...@gmail.com>
Committed: Thu Jun 9 17:58:01 2016 +0530
----------------------------------------------------------------------
.../org/apache/ambari/server/view/persistence/DataStoreImpl.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/140c9f13/ambari-server/src/main/java/org/apache/ambari/server/view/persistence/DataStoreImpl.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/view/persistence/DataStoreImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/view/persistence/DataStoreImpl.java
index 039fd6f..a604458 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/view/persistence/DataStoreImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/view/persistence/DataStoreImpl.java
@@ -255,7 +255,6 @@ public class DataStoreImpl implements DataStore {
if (!initialized) {
synchronized (this) {
if (!initialized) {
- initialized = true;
try {
for (ViewEntityEntity viewEntityEntity : viewInstanceEntity.getEntities()){
@@ -266,9 +265,9 @@ public class DataStoreImpl implements DataStore {
entityMap.put(name, viewEntityEntity);
entityClassMap.put(clazz, name);
}
-
configureTypes(jpaDynamicHelper, classLoader);
+ initialized = true;
} catch (Exception e) {
throwPersistenceException("Can't initialize data store for view " +
viewInstanceEntity.getViewName() + "." + viewInstanceEntity.getName(), e);