Open ahu-zwq opened 2 years ago
com.bellszhu.elasticsearch.plugin.synonym.analysis.DynamicSynonymTokenFilterFactory protected Map<AbsSynonymFilter, Integer> dynamicSynonymFilters = new WeakHashMap<>(); 换成 protected Map<AbsSynonymFilter, Integer> dynamicSynonymFilters = Collections.synchronizedMap(new WeakHashMap<>());
WeakHashMap线程不安全,容易造成cpu占满
com.bellszhu.elasticsearch.plugin.synonym.analysis.DynamicSynonymTokenFilterFactory protected Map<AbsSynonymFilter, Integer> dynamicSynonymFilters = new WeakHashMap<>(); 换成 protected Map<AbsSynonymFilter, Integer> dynamicSynonymFilters = Collections.synchronizedMap(new WeakHashMap<>());
WeakHashMap线程不安全,容易造成cpu占满