From 59ff0ed9b769a529c6aa8c947111617b94925351 Mon Sep 17 00:00:00 2001 From: janiussyafiq Date: Tue, 8 Sep 2026 12:22:13 +0800 Subject: [PATCH] test(elasticsearch-logger): drop the max_pending_entries metadata after the discard test TEST 1 of t/plugin/elasticsearch-logger2.t sets plugin metadata max_pending_entries = 1 and leaves it in etcd for the rest of the file. Since #13826 the batch processor discards a new entry while one is still pending, so TEST 8 loses its second log entry whenever the first bulk request to Elasticsearch is still in flight, which is always the case when ES has to create the index first. Delete the metadata at the end of TEST 1, as t/plugin/elasticsearch-logger.t already does. --- t/plugin/elasticsearch-logger2.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/plugin/elasticsearch-logger2.t b/t/plugin/elasticsearch-logger2.t index 108176a8e401..dec188fd8562 100644 --- a/t/plugin/elasticsearch-logger2.t +++ b/t/plugin/elasticsearch-logger2.t @@ -136,6 +136,7 @@ location /t { keepalive_pool = 1, }) ngx.sleep(2) + t('/apisix/admin/plugin_metadata/elasticsearch-logger', ngx.HTTP_DELETE) } } --- error_log