Skip to content

Commit

Permalink
Update getDataSourceMetadata to get for initial state
Browse files Browse the repository at this point in the history
Signed-off-by: acarbonetto <andrewc@bitquilltech.com>
  • Loading branch information
acarbonetto committed Aug 22, 2023
1 parent ba5b851 commit 629d900
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public OpenSearchDataSourceMetadataStorage(

@Override
public List<DataSourceMetadata> getDataSourceMetadata() {
if (this.clusterService.state() == null) {
if (!this.clusterService.getClusterApplierService().isInitialClusterStateSet()) {
return Collections.emptyList();
}
if (!this.clusterService.state().routingTable().hasIndex(DATASOURCE_INDEX_NAME)) {
Expand Down

0 comments on commit 629d900

Please sign in to comment.