public static FailureStrategy construct(int id) {
    switch (id) {
      case 0:
        return FailureStrategy.OPTIMISTIC;
      case 1:
        return FailureStrategy.PESSIMISTIC;
      default:
        throw new UnsupportedOperationException("Unsupported FailureStrategy Type.");
    }
  }
If this strategy were adopted, the failure of {@link Trigger#fire(Tablet)} of one Tablet
would @@ -45,5 +45,26 @@ public enum FailureStrategy { an insertion, all the triggers that have
not fired will not be fired, and this insertion will be marked as failed even if the insertion
itself executed successfully.
iotdb-api/trigger-api/src/main/java/org/apache/iotdb/trigger/api/enums/FailureStrategy.java