You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2015/05/12 18:09:39 UTC

svn commit: r1678993 - /qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java

Author: orudyy
Date: Tue May 12 16:09:39 2015
New Revision: 1678993

URL: http://svn.apache.org/r1678993
Log:
QPID-6539: Force loading of RepParams class before EnvironmentFacade creation in order to avoid throwing of CME on Environment creation
           when BDB HA VHN is activated at the same time causing loading of RepParams class and modification of EnvironmentParams.SUPPORTED_PARAMS

Modified:
    qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java

Modified: qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java?rev=1678993&r1=1678992&r2=1678993&view=diff
==============================================================================
--- qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java (original)
+++ qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java Tue May 12 16:09:39 2015
@@ -22,11 +22,22 @@ package org.apache.qpid.server.store.ber
 
 import java.util.Map;
 
+import com.sleepycat.je.rep.impl.RepParams;
 import org.apache.qpid.server.model.ConfiguredObject;
 import org.apache.qpid.server.store.FileBasedSettings;
 
 public class StandardEnvironmentFacadeFactory implements EnvironmentFacadeFactory
 {
+
+    static
+    {
+        // Force loading of RepParams class and adding its ConfigParam objects into EnvironmentParams.SUPPORTED_PARAMS
+        // It is needed to avoid CME thrown from Iterator of EnvironmentParams.SUPPORTED_PARAMS on creation of Environment
+        // when BDB HA VHN instance is activated at the same time causing loading of RepParams class and modification of
+        // EnvironmentParams.SUPPORTED_PARAMS
+        RepParams.GROUP_NAME.getName();
+    }
+
     @SuppressWarnings("unchecked")
     @Override
     public EnvironmentFacade createEnvironmentFacade(final ConfiguredObject<?> parent)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org