Skip to content

Avoid serializing exceptions as JSON in remote write endpoint#143987

Merged
sidosera merged 6 commits intoelastic:mainfrom
felixbarny:remote-write-action-listener
Mar 11, 2026
Merged

Avoid serializing exceptions as JSON in remote write endpoint#143987
sidosera merged 6 commits intoelastic:mainfrom
felixbarny:remote-write-action-listener

Conversation

@felixbarny
Copy link
Copy Markdown
Member

Avoid using a RestResponseListener in PrometheusRemoteWriteRestAction so that the response is never rendered as JSON, even for exceptions that get thrown before the transport action is invoked.

The transport action can now also use the onFailure callback instead of onResponse which simplifies the handling and makes it more idiomatic.

This is a follow-up from #143894 (comment)

@felixbarny felixbarny requested a review from DaveCTurner March 11, 2026 08:05
@felixbarny felixbarny self-assigned this Mar 11, 2026
@felixbarny felixbarny added the :StorageEngine/TSDB You know, for Metrics label Mar 11, 2026
@elasticsearchmachine elasticsearchmachine added v9.4.0 Team:StorageEngine external-contributor Pull request authored by a developer outside the Elasticsearch team labels Mar 11, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM (one nit about the exception logging)

@felixbarny felixbarny enabled auto-merge (squash) March 11, 2026 09:05
@sidosera sidosera disabled auto-merge March 11, 2026 15:30
@sidosera sidosera merged commit c01f7bc into elastic:main Mar 11, 2026
8 of 30 checks passed
@felixbarny felixbarny deleted the remote-write-action-listener branch March 11, 2026 15:31
szybia added a commit to szybia/elasticsearch that referenced this pull request Mar 11, 2026
…elocations

* upstream/main: (54 commits)
  [ES|QL|DS] Wire parallel parsing into production for text formats (elastic#143997)
  ESQL: Allow EXTERNAL commands be run part of the CsvTests suite (elastic#143970)
  [ESQL] Push stats to external source via metadata (elastic#143940)
  Mute org.elasticsearch.xpack.esql.CsvIT test {csv-spec:approximation.Approximate stats with stats where} elastic#144051
  Refactored SortedNumericDocValuesSyntheticFieldLoader into a Layer (elastic#143912)
  Enable extended doc_values params feature flag in RandomizedRollingUpgradeIT (elastic#143918)
  Mute org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT test {csv-spec:approximation.Approximate stats with sample} elastic#144022
  Ensure we use float values for rolling upgrade float vectors (elastic#144032)
  Remove sensitive info from reindex task description (elastic#143635)
  Fix HistogramUnionState.equals (elastic#143990)
  Use dedicated IndexRouting API in ShardSplittingQuery (elastic#143776)
  Engine/Store DistributedArchitectureGuide doc (elastic#143818)
  Mute org.elasticsearch.snapshots.ConcurrentSnapshotsIT testDeletesAreBatched elastic#144034
  Avoid serializing exceptions as JSON in remote write endpoint (elastic#143987)
  allow testLoadDocSequenceReturnsCorrectResultsText to circuit break, it happens in serverless occasionally (elastic#144023)
  [ESQL] Adds memory accounting to GroupedLimitOperator (elastic#143941)
  Adjust ESIntegTestCase.getLiveDocs method to account for pruned sequence numbers (elastic#143999)
  Support target bucket count in `TBUCKET` with explicit from/to date range (elastic#142747)
  TSDBDocValuesFormatSingleNodeTests with and without synthetic id (elastic#144002)
  Fix circuit breaker leak in BreakingTDigestHolder (elastic#143873)
  ...
michalborek pushed a commit to michalborek/elasticsearch that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/TSDB You know, for Metrics Team:StorageEngine v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants