فهرست منبع

Fix test failure (#135649)

Kathleen DeRusso 1 هفته پیش
والد
کامیت
daf5ddc082
2فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 0 3
      muted-tests.yml
  2. 1 1
      server/src/main/java/org/elasticsearch/action/admin/cluster/stats/SearchUsageStats.java

+ 0 - 3
muted-tests.yml

@@ -591,9 +591,6 @@ tests:
 - class: org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT
   method: test
   issue: https://github.com/elastic/elasticsearch/issues/134407
-- class: org.elasticsearch.action.admin.cluster.stats.SearchUsageStatsTests
-  method: testToXContent
-  issue: https://github.com/elastic/elasticsearch/issues/135558
 - class: org.elasticsearch.cluster.routing.allocation.decider.RestoreInProgressAllocationDeciderTests
   method: testCanAllocatePrimaryExistingInRestoreInProgress
   issue: https://github.com/elastic/elasticsearch/issues/135566

+ 1 - 1
server/src/main/java/org/elasticsearch/action/admin/cluster/stats/SearchUsageStats.java

@@ -51,7 +51,7 @@ public final class SearchUsageStats implements Writeable, ToXContentFragment {
         this.sections = new HashMap<>();
         this.rescorers = new HashMap<>();
         this.retrievers = new HashMap<>();
-        this.extendedSearchUsageStats = ExtendedSearchUsageStats.EMPTY;
+        this.extendedSearchUsageStats = new ExtendedSearchUsageStats();
     }
 
     /**