Skip to content

Commit

Permalink
empty implementation for OS deleteIndexMetadata
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Kao <seankao@amazon.com>
  • Loading branch information
seankao-az committed Aug 6, 2024
1 parent f07289c commit 9fdac45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class FlintOpenSearchIndexMetadataService(options: FlintOptions)
}
}

// Do nothing. For OpenSearch, deleting the index will also delete its metadata
override def deleteIndexMetadata(indexName: String): Unit = {}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import org.opensearch.flint.common.metadata.log.OptimisticTransaction.NO_LOG_ENT
import org.opensearch.flint.core.{FlintClient, FlintClientBuilder}
import org.opensearch.flint.core.metadata.FlintIndexMetadataServiceBuilder
import org.opensearch.flint.core.metadata.log.FlintMetadataLogServiceBuilder
import org.opensearch.flint.core.storage.FlintOpenSearchIndexMetadataService
import org.opensearch.flint.spark.FlintSparkIndex.ID_COLUMN
import org.opensearch.flint.spark.FlintSparkIndexOptions.OptionName._
import org.opensearch.flint.spark.covering.FlintSparkCoveringIndex
Expand Down Expand Up @@ -278,7 +277,7 @@ class FlintSpark(val spark: SparkSession) extends FlintSparkTransactionSupport w
.finalLog(_ => NO_LOG_ENTRY)
.commit(_ => {
flintClient.deleteIndex(indexName)
// TODO: delete index metadata
flintIndexMetadataService.deleteIndexMetadata(indexName)
true
})
} else {
Expand Down

0 comments on commit 9fdac45

Please sign in to comment.