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

Valery Kharseko
20 hours ago a141034da9ca73beb15ca36dcf8bd6c57f322905
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -2865,12 +2865,16 @@
   * Returns whether the provided result code reports a failure of this server rather
   * than a change which can not be applied: the backend being offline or rebuilt
   * (OPENDJ-49), or the storage failing to serve the operation.
   * <p>
   * Package private for the tests, which pin what it answers for every registered result
   * code directly rather than through a running server.
   *
   * @param result the result code of a replayed operation
   * @param serverErrorResultCode the result code this server puts on an internal error
   * @return {@code true} if the operation failed on the server itself
   */
  private static boolean isServerFailure(ResultCode result, ResultCode serverErrorResultCode)
  @VisibleForTesting
  static boolean isServerFailure(ResultCode result, ResultCode serverErrorResultCode)
  {
    /*
     * The result code the server puts on an internal error is configurable and is not