mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
06.28.2013 2dce766bd0edb8bb1f7cd8f2fedd463da775bbf3
Temporary workaround for OPENDJ-1243: ClassCastException while accessing EnvironmentStats appearing frequently in debug logs

* avoiding collecting buggy stats.
1 files modified
6 ■■■■■ changed files
opends/src/server/org/opends/server/monitors/DatabaseEnvironmentMonitor.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/monitors/DatabaseEnvironmentMonitor.java
@@ -177,6 +177,12 @@
      // Invoke all the getters returning integer values.
      if (method.getName().startsWith("get"))
      {
        // Temporary workaround for issue OPENDJ-1243.
        if (method.getName().startsWith("getAvgBatch"))
        {
          continue;
        }
        Class<?> returnType = method.getReturnType();
        if (returnType.equals(int.class) || returnType.equals(long.class))
        {