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

gbellato
30.39.2007 dc10487212c34cafbc966bc1b7d1fbb5558b3f36
fix for 2094 : Total update of sub-suffix does not replicate entries

Also 2094 problem is mostly due to a bad configuration, this fix makes sure
that the exception happening at the database level is correctly taken
into account to update the task status.

1 files modified
16 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 16 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java
@@ -826,15 +826,16 @@
              }
              catch(DirectoryException de)
              {
                // Return an error message to notify the sender
                ErrorMessage errorMsg =
                  new ErrorMessage(importMsg.getsenderID(),
                                   de.getMessageObject());
                MessageBuilder mb = new MessageBuilder();
                mb.append(de.getMessageObject());
                mb.append("Backend ID: ");
                mb.append(backend.getBackendID());
                log(mb.toMessage());
                // Return an error message to notify the sender
                ErrorMessage errorMsg =
                  new ErrorMessage(importMsg.getsenderID(),
                                   de.getMessageObject());
                broker.publish(errorMsg);
              }
            }
@@ -2745,8 +2746,11 @@
    }
    catch(Exception e)
    {
      throw new DirectoryException(ResultCode.OTHER,
              Message.raw(e.getLocalizedMessage()));
      DirectoryException de =
        new DirectoryException(
            ResultCode.OTHER, Message.raw(e.getLocalizedMessage()));
      ieContext.exception = de;
      throw (de);
    }
    finally
    {