Skip to content

[improve] Refactor client version format#206

Merged
RobertIndie merged 3 commits into
apache:mainfrom
RobertIndie:client-version
Mar 1, 2023
Merged

[improve] Refactor client version format#206
RobertIndie merged 3 commits into
apache:mainfrom
RobertIndie:client-version

Conversation

@RobertIndie
Copy link
Copy Markdown
Member

Motivation

Currently, the client_version only shows the version information. And clients in different languages use their own separate version numbers. This can lead to conflict. For example, the java client 2.10.2 uses the same value 2.10.2 as the C++ client 2.10.2. And C++ client 3.0.0 may conflict with the future java client 3.0.0. The information of client_version is incomplete. We could not determine what language(or specific library) the client uses. This raises inconvenience for debugging.

This PR adopts a new client version format for the C++ client.

Please see the discussion: https://lists.apache.org/thread/n59k537fhthjnzkfxtc2p4zk4l0cv3mp

Modifications

  • Change the client version value to Pulsar-C++-vXXX

Verifying this change

This change added tests.

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

## Motivation
Currently, the client_version  only shows the version information. And clients in different languages use their own separate version numbers. This can lead to conflict. For example, the java client 2.10.2 uses the same value 2.10.2 as the C++ client 2.10.2. And C++ client 3.0.0 may conflict with the future java client 3.0.0. The information of client_version is incomplete. We could not determine what language(or specific library) the client uses. This raises inconvenience for debugging.

Please see the discussion: https://lists.apache.org/thread/n59k537fhthjnzkfxtc2p4zk4l0cv3mp

## Modification
* Change the client version value to Pulsar-C++-vXXX
@RobertIndie RobertIndie added the enhancement New feature or request label Feb 28, 2023
@RobertIndie RobertIndie added this to the 3.2.0 milestone Feb 28, 2023
@RobertIndie RobertIndie self-assigned this Feb 28, 2023
Comment thread lib/Commands.cc Outdated
@shibd
Copy link
Copy Markdown
Member

shibd commented Mar 1, 2023

For Node.js and Python clients, How do we set this parameter?

@RobertIndie
Copy link
Copy Markdown
Member Author

For Node.js and Python clients, How do we set this parameter?

I made a discussion here: https://lists.apache.org/thread/ldmtjrqvz6bz2flpdl89k9ogybcm9mj1
I think we need to expose the configuration of the clientVersion.

@RobertIndie RobertIndie merged commit 070e96f into apache:main Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants