Skip to content

Use a static method to configure benchmark logging#143056

Merged
ldematte merged 2 commits intoelastic:mainfrom
thecoop:fix-benchmark-logging
Feb 27, 2026
Merged

Use a static method to configure benchmark logging#143056
ldematte merged 2 commits intoelastic:mainfrom
thecoop:fix-benchmark-logging

Conversation

@thecoop
Copy link
Copy Markdown
Member

@thecoop thecoop commented Feb 25, 2026

Follow on from #143041 - put logging config in a shared method. Setting the machine name needs to be after the plugin setup

@thecoop thecoop requested a review from ChrisHegarty February 25, 2026 13:19
@thecoop thecoop added >test Issues or PRs that are addressing/adding tests :Search Relevance/Vectors Vector search labels Feb 25, 2026
@elasticsearchmachine elasticsearchmachine added v9.4.0 Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Feb 25, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@thecoop thecoop requested a review from ldematte February 25, 2026 15:39
Copy link
Copy Markdown
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

NodeNamePatternConverter.setGlobalNodeName("benchmark");
LogConfigurator.loadLog4jPlugins();
LogConfigurator.configureESLogging(); // native access requires logging to be initialized
if (supportsHeapSegments() == false) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are losing this log message, but I don't think we care much

@ldematte ldematte merged commit 13f4129 into elastic:main Feb 27, 2026
35 checks passed
szybia added a commit to szybia/elasticsearch that referenced this pull request Feb 27, 2026
…cations

* upstream/main:
  Warn on API key version mismatch (elastic#143127)
  Fixed wrong malformed value ordering in synthetic source tests (elastic#143187)
  [ML] Fix: required_native_memory_bytes Calculated with Wrong Allocation Count (elastic#143077)
  Add configureBenchmarkLogging calls across the various benchmarks (elastic#143185)
  Mute org.elasticsearch.xpack.esql.CsvIT test {csv-spec:k8s-timeseries-avg-over-time.Avg_over_time_aggregate_metric_double_implicit_casting} elastic#143292
  Give system role permission to invoke shard refresh (elastic#143190)
  Mute testSyntheticSourceWithTranslogSnapshot (elastic#143260)
  Adds ResumeInfo Tests (elastic#142769)
  Use a static method to configure benchmark logging (elastic#143056)
  add connectors release notes (elastic#142884)
  Add CI triage guidance for AI agents (elastic#142994)
  ESQL: Data sources: ZSTD, BZIP2 (elastic#143228)
  [ES|QL] Channels issue when an agg is called with the same field (elastic#142180) (elastic#142269)
  Add support for project routing in reindex requests (elastic#142240)
@thecoop thecoop deleted the fix-benchmark-logging branch March 2, 2026 09:05
tballison pushed a commit to tballison/elasticsearch that referenced this pull request Mar 3, 2026
Follow on from elastic#143041 - put logging config in a shared method. Setting the machine name needs to be after the plugin setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants