singhpk234 commented on code in PR #18878:
URL: https://github.com/apache/iceberg/pull/18878#discussion_r4728717014
##########
docs/docs/rest-catalog.md:
##########
@@ -90,7 +90,8 @@ at connection time through
| `rest.client.connections-per-route` | `100` | Maximum number of pooled
connections per route.
|
| `rest.client.connection-timeout-ms` | null | Timeout in milliseconds for
establishing a connection to the server. If not set, the HTTP client library
default is used.
|
| `rest.client.socket-timeout-ms` | null | Socket timeout in
milliseconds for awaiting data on a connection. If not set, the HTTP client
library default is used.
|
-| `rest.client.user-agent` | null | Custom `User-Agent` header
value to send with each request. If not set, the HTTP client library default is
used.
|
+| `rest.client.user-agent` | null | Replaces the whole
`User-Agent` header. If unset, the header is `iceberg-java/<version> (jvm <java
version>)`, after any tokens from `rest.client.user-agent.prefix`. Only visible
ASCII characters and spaces are allowed.
|
+| `rest.client.user-agent.prefix` | null | Client application's product
tokens, such as `Trino/438`, sent before the `iceberg-java` token in the
`User-Agent` header. Ignored if `rest.client.user-agent` is set. Only visible
ASCII characters and spaces are allowed.
|
Review Comment:
> If setting both failed, each of them would have to check for
rest.client.user-agent first, or users who set it would get an error
users setting this would still work its only when they do both they face
error, which imho would ok, so this would be backward compatible (older
versions) in case they wana use this new feature they would unset the old prop
and use the prefix option. So i would prefer if we have only one set at a time.
I understand where you are coming from Rahul, lets take another reviewer
opinion here, i am fine with either but would prefer being explicit in only one
being set
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]