Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-13 Thread Yunze Xu
Hi Zike and Michael, I agree that we can move this method to `ClientBuilderImpl`. Generally users should not set this description, the client version string is used to identify a specific implementation of the Pulsar API. If there is a strong demand to configure the description for the API layer (

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-13 Thread Zike Yang
> I'd rather use the "description" term, which indicates the client version has extra description in addition to the client version string. The `description` term and 64 length limit all make sense to me. > Is there any way we can avoid giving regular users easy access to this field via the Clien

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-12 Thread Yunze Xu
> I think we > should consider putting a character limit on the field to prevent > descriptions that are too long. Good suggestion. A long description string is unnecessary and could be used as malicious code. What do you think of limiting the length to 64? I think it's long enough. Thanks, Yunz

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-09 Thread Michael Marshall
Great discussion. Derivative clients are an important consideration for our discussion around capturing the version information. Is there any way we can avoid giving regular users easy access to this field via the ClientBuilder while still letting libraries add their own suffix? We cannot prevent

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-09 Thread Yunze Xu
I've updated this proposal to retain the original client version string. I'd rather use the "description" term, which indicates the client version has extra description in addition to the client version string. Thanks, Yunze On Fri, Mar 10, 2023 at 10:11 AM Yunze Xu wrote: > > Hi Zike, > > Good

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-09 Thread Yunze Xu
Hi Zike, Good suggestion. I agree with this approach. Maybe we can name it as `subVersionString` to indicate that? Thanks, Yunze On Thu, Mar 9, 2023 at 3:14 PM Zike Yang wrote: > > Hi Yunze, > > > I have changed this proposal to just add a config to `ClientBuilder`. > > I propose to add a field

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-08 Thread Zike Yang
Hi Yunze, > I have changed this proposal to just add a config to `ClientBuilder`. I propose to add a field named `clientVersionSuffix` rather than the `clientVersion`. As I said before: https://lists.apache.org/thread/g0128l85fkcmw4821188mjjznxbo4lhd This is helpful for debugging. Especially for

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-08 Thread Yunze Xu
Hi, I have changed this proposal to just add a config to `ClientBuilder`. And here is the demo implementation: https://github.com/BewareMyPower/pulsar/pull/21/files PTAL again. Thanks, Yunze On Sat, Mar 4, 2023 at 10:39 PM Yunze Xu wrote: > > Hi Enrico, > > Thanks for your suggestion. It makes

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-04 Thread Yunze Xu
Hi Enrico, Thanks for your suggestion. It makes sense to me. I will think again and modify this proposal. Hi Tison, I mentioned the C++ client because the initial motivation is to solve the issue for the Python client and Node.js client. But after thinking for a while, I believe it's more genera

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-03 Thread tison
I agree with Enrico that it's better to have a config option. Also, we cannot simply replace the PulsarVersion call with the DynamicPulsarVersion call because the client version string is now constructed as: String.format("Pulsar-Java-v%s", PulsarVersion.getVersion()) It's a config of client ver

Re: [DISCUSS] PIP-254: Support configuring client version at SDK level

2023-03-03 Thread Enrico Olivelli
Yunze, Il Ven 3 Mar 2023, 12:31 Yunze Xu ha scritto: > Hi all, > > Based on the previous discussion [1], I created a proposal to support > configuring client version at SDK level: > https://github.com/apache/pulsar/issues/19705 > > I've added more explanations in the motivation part, let's use t