Skip to content

[SPARK-55291][CONNECT] Pre-process metadata headers at client interceptor construction time#54074

Closed
heyihong wants to merge 1 commit intoapache:masterfrom
heyihong:SPARK-55291
Closed

[SPARK-55291][CONNECT] Pre-process metadata headers at client interceptor construction time#54074
heyihong wants to merge 1 commit intoapache:masterfrom
heyihong:SPARK-55291

Conversation

@heyihong
Copy link
Contributor

What changes were proposed in this pull request?

Refactored MetadataHeaderClientInterceptor to pre-process metadata headers (key creation and Base64 decoding) at construction time instead of on every RPC call.

Why are the changes needed?

  • Avoids redundant processing on every RPC
  • Catches invalid Base64-encoded binary headers earlier at construction time

Does this PR introduce any user-facing change?

No.

How was this patch tested?

build/sbt "connect-client-jvm/testOnly *SparkConnectClientSuite -- -z SPARK-55243"

Was this patch authored or co-authored using generative AI tooling?

Yes

@github-actions
Copy link

JIRA Issue Information

=== Sub-task SPARK-55291 ===
Summary: Pre-process metadata headers at client interceptor construction time
Assignee: None
Status: Open
Affected: ["4.2"]


This comment was automatically generated by GitHub Actions

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in fac11c4 Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants