private void recordExceptionStatusIfNecessary(final String message) {
    if (!Objects.equals(exceptionRecordedMessage.get(), message)) {
      exceptionFirstEncounteredTime.set(System.currentTimeMillis());
      exceptionEventHasBeenRetried.set(false);
      exceptionRecordedMessage.set(message);
    }
  }
Handle {@link TSStatus} returned by receiver. Do nothing if ignore the {@link Event}, and throw
exception if retry the {@link Event}. Upper class must ensure that the method is invoked only
by a single thread.

@throws PipeException to retry the current {@link Event}
@param status the {@link TSStatus} to judge
@param exceptionMessage The exception message to throw
@param recordMessage The message to record an ignored {@link Event}, the caller should assure
    that the same {@link Event} generates always the same record message, for instance, do not
    put any time-related info here
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/receiver/PipeReceiverStatusHandler.java