public void setFailed() {
    this.success = false;
    this.map = new HashMap<>();
  }
set failed and clear the map
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/cache/partition/DatabaseCacheResult.java