incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r1446798 - in /incubator/ambari/trunk: ./ ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ ambari-server/src/main/java/org/apache/ambari/server/controller/ ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ amb...
Date Fri, 15 Feb 2013 22:52:09 GMT
Author: mahadev
Date: Fri Feb 15 22:52:08 2013
New Revision: 1446798

URL: http://svn.apache.org/r1446798
Log:
AMBARI-1435. L2 Cache does not work due to Eclipse Link exception. (Sid Wagle via mahadev)

Removed:
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ClearEntityManagerInterceptor.java
Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ComponentConfigMappingDAO.java
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/DaoUtils.java
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KeyValueDAO.java
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StageDAO.java
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ExecutionCommandEntity.java
    incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
    incubator/ambari/trunk/ambari-server/src/main/resources/META-INF/persistence.xml

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Feb 15 22:52:08 2013
@@ -283,6 +283,9 @@ Trunk (unreleased changes):
  AMBARI-1433. Allow capacity scheduler to be configurable via the API's.
  (mahadev)
 
+ AMBARI-1435. L2 Cache does not work due to Eclipse Link exception.
+ (Sid Wagle via mahadev)
+
  BUG FIXES
 
  AMBARI-1431. Hosts table no longer allows sorting. (yusaku)

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/actionmanager/ActionDBAccessorImpl.java
Fri Feb 15 22:52:08 2013
@@ -181,6 +181,8 @@ public class ActionDBAccessorImpl implem
         hostRoleCommand.setTaskId(hostRoleCommandEntity.getTaskId());
         ExecutionCommandEntity executionCommandEntity = hostRoleCommand.constructExecutionCommandEntity();
         executionCommandEntity.setHostRoleCommand(hostRoleCommandEntity);
+
+        executionCommandEntity.setTaskId(hostRoleCommandEntity.getTaskId());
         hostRoleCommandEntity.setExecutionCommand(executionCommandEntity);
 
         executionCommandDAO.create(hostRoleCommandEntity.getExecutionCommand());

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
Fri Feb 15 22:52:08 2013
@@ -17,17 +17,15 @@
  */
 
 package org.apache.ambari.server.controller;
+
 import com.google.gson.Gson;
 import com.google.inject.Scopes;
 import com.google.inject.assistedinject.FactoryModuleBuilder;
-import com.google.inject.matcher.Matchers;
-import com.google.inject.persist.Transactional;
 import com.google.inject.persist.jpa.JpaPersistModule;
 import org.apache.ambari.server.actionmanager.*;
 import org.apache.ambari.server.api.services.AmbariMetaInfo;
 import org.apache.ambari.server.configuration.Configuration;
 import org.apache.ambari.server.orm.PersistenceType;
-import org.apache.ambari.server.orm.dao.ClearEntityManagerInterceptor;
 import org.apache.ambari.server.state.*;
 import org.apache.ambari.server.state.cluster.ClusterFactory;
 import org.apache.ambari.server.state.cluster.ClusterImpl;
@@ -45,14 +43,13 @@ import java.util.Properties;
 
 /**
  * Used for injection purposes.
- *
  */
 public class ControllerModule extends AbstractModule {
 
   private final Configuration configuration;
   private final AmbariMetaInfo ambariMetaInfo;
   private final HostsMap hostsMap;
-  
+
   public ControllerModule() throws Exception {
     configuration = new Configuration();
     ambariMetaInfo = new AmbariMetaInfo(configuration);
@@ -67,13 +64,11 @@ public class ControllerModule extends Ab
 
   @Override
   protected void configure() {
-    bindInterceptors();
     installFactories();
 
     bind(Configuration.class).toInstance(configuration);
     bind(AmbariMetaInfo.class).toInstance(ambariMetaInfo);
     bind(HostsMap.class).toInstance(hostsMap);
-    
     bind(PasswordEncoder.class).toInstance(new StandardPasswordEncoder());
 
     JpaPersistModule jpaPersistModule = new JpaPersistModule(configuration.getPersistenceType().getUnitName());
@@ -115,10 +110,4 @@ public class ControllerModule extends Ab
     install(new FactoryModuleBuilder().build(HostRoleCommandFactory.class));
   }
 
-  private void bindInterceptors() {
-    ClearEntityManagerInterceptor clearEntityManagerInterceptor = new ClearEntityManagerInterceptor();
-    requestInjection(clearEntityManagerInterceptor);
-    bindInterceptor(Matchers.any(), Matchers.annotatedWith(Transactional.class), clearEntityManagerInterceptor);
-
-  }
 }

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ComponentConfigMappingDAO.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ComponentConfigMappingDAO.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ComponentConfigMappingDAO.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ComponentConfigMappingDAO.java
Fri Feb 15 22:52:08 2013
@@ -49,6 +49,7 @@ public class ComponentConfigMappingDAO {
     return daoUtils.selectList(query, configTypes);
   }
 
+  @Transactional
   public List<ComponentConfigMappingEntity> findByComponentAndType(long clusterId,
String serviceName, String componentName,
                                                                    Collection<String>
configTypes) {
     if (configTypes.isEmpty()) {

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/DaoUtils.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/DaoUtils.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/DaoUtils.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/DaoUtils.java
Fri Feb 15 22:52:08 2013
@@ -27,7 +27,7 @@ import java.util.Collections;
 import java.util.List;
 
 @Singleton
-public class DaoUtils {
+class DaoUtils {
 
   public <T> List<T> selectList(TypedQuery<T> query, Object... parameters)
{
     setParameters(query, parameters);

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KeyValueDAO.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KeyValueDAO.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KeyValueDAO.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KeyValueDAO.java
Fri Feb 15 22:52:08 2013
@@ -39,6 +39,7 @@ public class KeyValueDAO {
     return entityManagerProvider.get().find(KeyValueEntity.class, key);
   }
 
+  @Transactional
   public Collection<KeyValueEntity> findAll() {
     TypedQuery<KeyValueEntity> query =
         entityManagerProvider.get().createQuery("SELECT keyValue FROM KeyValueEntity keyValue",
KeyValueEntity.class);

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StageDAO.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StageDAO.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StageDAO.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StageDAO.java
Fri Feb 15 22:52:08 2013
@@ -43,6 +43,7 @@ public class StageDAO {
     return entityManagerProvider.get().find(StageEntity.class, stageEntityPK);
   }
 
+  @Transactional
   public long getLastRequestId() {
     TypedQuery<Long> query = entityManagerProvider.get().createQuery("SELECT max(stage.requestId)
FROM StageEntity stage", Long.class);
     Long result = daoUtils.selectSingle(query);

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ExecutionCommandEntity.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ExecutionCommandEntity.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ExecutionCommandEntity.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ExecutionCommandEntity.java
Fri Feb 15 22:52:08 2013
@@ -19,13 +19,14 @@
 package org.apache.ambari.server.orm.entities;
 
 import javax.persistence.*;
+import java.util.Arrays;
 
 @Table(name = "execution_command", schema = "ambari", catalog = "")
 @Entity
 public class ExecutionCommandEntity {
   private Long taskId;
 
-  @Column(name = "task_id", insertable = false, updatable = false, nullable = false)
+  @Column(name = "task_id")
   @Id
   public Long getTaskId() {
     return taskId;
@@ -55,7 +56,7 @@ public class ExecutionCommandEntity {
 
     ExecutionCommandEntity that = (ExecutionCommandEntity) o;
 
-    if (command != null ? !command.equals(that.command) : that.command != null) return false;
+    if (command != null ? !Arrays.equals(command, that.command) : that.command != null) return
false;
     if (taskId != null ? !taskId.equals(that.taskId) : that.taskId != null) return false;
 
     return true;
@@ -64,14 +65,14 @@ public class ExecutionCommandEntity {
   @Override
   public int hashCode() {
     int result = taskId != null ? taskId.hashCode() : 0;
-    result = 31 * result + (command != null ? command.hashCode() : 0);
+    result = 31 * result + (command != null ? Arrays.hashCode(command) : 0);
     return result;
   }
 
   private HostRoleCommandEntity hostRoleCommand;
 
   @OneToOne
-  @JoinColumn(name = "task_id", referencedColumnName = "task_id", nullable = false)
+  @JoinColumn(name = "task_id", referencedColumnName = "task_id", nullable = false, insertable
= false, updatable = false)
   public HostRoleCommandEntity getHostRoleCommand() {
     return hostRoleCommand;
   }

Modified: incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
(original)
+++ incubator/ambari/trunk/ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostRoleCommandEntity.java
Fri Feb 15 22:52:08 2013
@@ -23,6 +23,7 @@ import org.apache.ambari.server.RoleComm
 import org.apache.ambari.server.actionmanager.HostRoleStatus;
 
 import javax.persistence.*;
+import java.util.Arrays;
 
 @Table(name = "host_role_command", schema = "ambari", catalog = "")
 @Entity
@@ -218,8 +219,8 @@ public class HostRoleCommandEntity {
     if (stageId != null ? !stageId.equals(that.stageId) : that.stageId != null) return false;
     if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return
false;
     if (status != null ? !status.equals(that.status) : that.status != null) return false;
-    if (stdError != null ? !stdError.equals(that.stdError) : that.stdError != null) return
false;
-    if (stdOut != null ? !stdOut.equals(that.stdOut) : that.stdOut != null) return false;
+    if (stdError != null ? !Arrays.equals(stdError, that.stdError) : that.stdError != null)
return false;
+    if (stdOut != null ? !Arrays.equals(stdOut, that.stdOut) : that.stdOut != null) return
false;
     if (taskId != null ? !taskId.equals(that.taskId) : that.taskId != null) return false;
 
     return true;
@@ -235,8 +236,8 @@ public class HostRoleCommandEntity {
     result = 31 * result + (event != null ? event.hashCode() : 0);
     result = 31 * result + (exitcode != null ? exitcode.hashCode() : 0);
     result = 31 * result + (status != null ? status.hashCode() : 0);
-    result = 31 * result + (stdError != null ? stdError.hashCode() : 0);
-    result = 31 * result + (stdOut != null ? stdOut.hashCode() : 0);
+    result = 31 * result + (stdError != null ? Arrays.hashCode(stdError) : 0);
+    result = 31 * result + (stdOut != null ? Arrays.hashCode(stdOut) : 0);
     result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
     result = 31 * result + (lastAttemptTime != null ? lastAttemptTime.hashCode() : 0);
     result = 31 * result + (attemptCount != null ? attemptCount.hashCode() : 0);

Modified: incubator/ambari/trunk/ambari-server/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-server/src/main/resources/META-INF/persistence.xml?rev=1446798&r1=1446797&r2=1446798&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-server/src/main/resources/META-INF/persistence.xml (original)
+++ incubator/ambari/trunk/ambari-server/src/main/resources/META-INF/persistence.xml Fri Feb
15 22:52:08 2013
@@ -12,87 +12,58 @@
 <persistence xmlns="http://java.sun.com/xml/ns/persistence"
   version="2.0">
 
-  <persistence-unit name="ambari-postgres">
+  <persistence-unit name="ambari-postgres" transaction-type="RESOURCE_LOCAL">
+    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
     <class>org.apache.ambari.server.orm.entities.ClusterEntity</class>
-    <class>org.apache.ambari.server.orm.entities.ClusterConfigEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ClusterServiceEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ClusterStateEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ComponentConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredStateEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentStateEntity
-    </class>
+    <class>org.apache.ambari.server.orm.entities.ClusterConfigEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ClusterServiceEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ClusterStateEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ComponentConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredStateEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentStateEntity</class>
     <class>org.apache.ambari.server.orm.entities.HostEntity</class>
     <class>org.apache.ambari.server.orm.entities.HostStateEntity</class>
-    <class>org.apache.ambari.server.orm.entities.ServiceComponentDesiredStateEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ServiceConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ServiceDesiredStateEntity
-    </class>
+    <class>org.apache.ambari.server.orm.entities.ServiceComponentDesiredStateEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ServiceConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ServiceDesiredStateEntity</class>
     <class>org.apache.ambari.server.orm.entities.RoleEntity</class>
     <class>org.apache.ambari.server.orm.entities.UserEntity</class>
-    <class>org.apache.ambari.server.orm.entities.ExecutionCommandEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostRoleCommandEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.RoleSuccessCriteriaEntity
-    </class>
+    <class>org.apache.ambari.server.orm.entities.ExecutionCommandEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostRoleCommandEntity</class>
+    <class>org.apache.ambari.server.orm.entities.RoleSuccessCriteriaEntity</class>
     <class>org.apache.ambari.server.orm.entities.StageEntity</class>
     <class>org.apache.ambari.server.orm.entities.KeyValueEntity</class>
 
     <properties>
       <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost/ambari"
/>
       <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" />
-      <property name="eclipselink.cache.shared.default" value="false" />
-      <property name="eclipselink.cache.size.default" value="0" />
-      <property name="eclipselink.cache.type.default" value="None" />
-      <property name="eclipselink.query-results-cache" value="false" />
+      <property name="eclipselink.cache.size.default" value="3000" />
     </properties>
   </persistence-unit>
 
-  <persistence-unit name="ambari-javadb">
+  <persistence-unit name="ambari-javadb" transaction-type="RESOURCE_LOCAL">
+    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
     <class>org.apache.ambari.server.orm.entities.ClusterEntity</class>
-    <class>org.apache.ambari.server.orm.entities.ClusterConfigEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ClusterServiceEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ClusterStateEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ComponentConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredStateEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostComponentStateEntity
-    </class>
+    <class>org.apache.ambari.server.orm.entities.ClusterConfigEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ClusterServiceEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ClusterStateEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ComponentConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentDesiredStateEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostComponentStateEntity</class>
     <class>org.apache.ambari.server.orm.entities.HostEntity</class>
     <class>org.apache.ambari.server.orm.entities.HostStateEntity</class>
-    <class>org.apache.ambari.server.orm.entities.ServiceComponentDesiredStateEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ServiceConfigMappingEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.ServiceDesiredStateEntity
-    </class>
+    <class>org.apache.ambari.server.orm.entities.ServiceComponentDesiredStateEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ServiceConfigMappingEntity</class>
+    <class>org.apache.ambari.server.orm.entities.ServiceDesiredStateEntity</class>
     <class>org.apache.ambari.server.orm.entities.RoleEntity</class>
     <class>org.apache.ambari.server.orm.entities.UserEntity</class>
-    <class>org.apache.ambari.server.orm.entities.ExecutionCommandEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.HostRoleCommandEntity
-    </class>
-    <class>org.apache.ambari.server.orm.entities.RoleSuccessCriteriaEntity
-    </class>
+    <class>org.apache.ambari.server.orm.entities.ExecutionCommandEntity</class>
+    <class>org.apache.ambari.server.orm.entities.HostRoleCommandEntity</class>
+    <class>org.apache.ambari.server.orm.entities.RoleSuccessCriteriaEntity</class>
     <class>org.apache.ambari.server.orm.entities.StageEntity</class>
     <class>org.apache.ambari.server.orm.entities.KeyValueEntity</class>
 
@@ -102,11 +73,8 @@
       <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"
/>
       <property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
       <property name="eclipselink.orm.throw.exceptions" value="true" />
-      <property name="eclipselink.cache.shared.default" value="false" />
-      <property name="eclipselink.cache.size.default" value="0" />
-      <property name="eclipselink.cache.type.default" value="None" />
-      <property name="eclipselink.query-results-cache" value="false" />
-      <!-- <property name="eclipselink.logging.level" value="FINE"/> -->
+      <property name="eclipselink.cache.size.default" value="3000" />
+      <!--<property name="eclipselink.logging.level" value="FINEST"/>-->
     </properties>
   </persistence-unit>
 </persistence>



Mime
View raw message