Skip to content

Commit

Permalink
fix(elasticsearch): make indexNameMapping in IndexConventionImpl thre…
Browse files Browse the repository at this point in the history
…adsafe (datahub-project#7565)

Co-authored-by: Indy Prentice <indy@Indys-MacBook-Pro.local>
  • Loading branch information
2 people authored and shirshanka committed Mar 22, 2023
1 parent b7691b3 commit 0f79f37
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -2,17 +2,17 @@

import com.linkedin.data.template.RecordTemplate;
import com.linkedin.metadata.models.EntitySpec;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.apache.commons.lang3.StringUtils;


// Default implementation of search index naming convention
public class IndexConventionImpl implements IndexConvention {
private final Map<String, String> indexNameMapping = new HashMap<>();
private final Map<String, String> indexNameMapping = new ConcurrentHashMap<>();
private final Optional<String> _prefix;
private final String _getAllEntityIndicesPattern;
private final String _getAllTimeseriesIndicesPattern;
Expand Down

0 comments on commit 0f79f37

Please sign in to comment.