Conversation
This was referenced Sep 28, 2026
REST catalog requests went out without a User-Agent. They now send Paimon's unified User-Agent format, module(transport;features) extended, by default paimon-rust/<version>(reqwest). The parts come from the catalog options user-agent.module, user-agent.features and user-agent.extended, which object storage requests share. A user-set header.User-Agent option still takes precedence and is the only User-Agent sent. The DLF ECS token client sends the default.
sundapeng
force-pushed
the
rest-user-agent
branch
from
September 29, 2026 01:08
5714b6f to
70cf3bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
REST catalog requests from paimon-rust carry no
User-Agent, since reqwest sets none by default, so these clients can't be attributed in the catalog server's request logs.REST requests now carry Paimon's unified User-Agent format,
<module>(<transport>[;<feature>...])[ <extended>], the one object storage requests adopt as well (#991).Brief change log
paimon-rust/<version>(reqwest), built from the catalog optionsuser-agent.module,user-agent.featuresanduser-agent.extended, which object storage requests read too. The version is a compile-time constant.header.User-Agentoption still takes precedence and is the only User-Agent sent.Examples:
paimon-rust/0.4.0(reqwest)user-agent.features=Flink,user-agent.extended=vvrpaimon-rust/0.4.0(reqwest;Flink) vvrheader.User-Agent=starrocks/userstarrocks/userRelated: #991 (object storage User-Agent), apache/paimon#10308 (Java REST), apache/paimon#10309 (Python REST).
Tests
api::unit tests: new cases on a local HTTP endpoint for the default, the new options and theheader.User-Agentoverride; 92 passed, plusrest_api_test(45) andrest_catalog_test(79). Also checked on a live DLF REST catalog: its request log shows the configured features and extended part.cargo fmt --all -- --checkandcargo clippy --locked --all-targets --workspace --features fulltext,vortex -- -D warnings.API and Format
No.
Documentation
No.