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

Matthew Swift
06.48.2011 7e276e1b98fca03dc85e7e9c1925c555da11da59
Fix OPENDJ-64 - Exception and stacktrace while running dsreplication

The "approx-older-change-not-synchronized-millis" monitor attribute is optional, so we should avoid throwing unnecessary exceptions.
1 files modified
11 ■■■■ changed files
opends/src/ads/org/opends/admin/ads/TopologyCache.java 11 ●●●● patch | view | raw | blame | history
opends/src/ads/org/opends/admin/ads/TopologyCache.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2008-2010 Sun Microsystems, Inc.
 *      Portions copyright 2011 ForgeRock AS
 */
package org.opends.admin.ads;
@@ -507,9 +508,13 @@
          {
            try
            {
              replica.setAgeOfOldestMissingChange(
                  new Long(ConnectionUtils.getFirstValue(sr,
                      "approx-older-change-not-synchronized-millis")));
              // This statistic is optional.
              String s = ConnectionUtils.getFirstValue(sr,
                  "approx-older-change-not-synchronized-millis");
              if (s != null)
              {
                replica.setAgeOfOldestMissingChange(Long.valueOf(s));
              }
            }
            catch (Throwable t)
            {