public Optional<Pair<String, String>> parseSubscriptionId(
      String subscriptionId, boolean isTableModel) {
    acquireReadLock();
    try {
      List<SubscriptionMeta> allSubscriptions =
          getAllSubscriptionMetaInternal(topicMeta -> topicMeta.visibleUnder(isTableModel));
      for (SubscriptionMeta subscriptionMeta : allSubscriptions) {
        if (Objects.equals(subscriptionId, subscriptionMeta.getSubscriptionId())) {
          return Optional.of(
              new Pair<>(
                  subscriptionMeta.getTopicMeta().getTopicName(),
                  subscriptionMeta.getConsumerGroupId()));
        }
      }
      return Optional.empty();
    } finally {
      releaseReadLock();
    }
  }
Caller should ensure that the method is called in the lock {@link #acquireWriteLock}.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/subscription/SubscriptionInfo.java