Skip to content

Conversation

@ericsyh
Copy link
Contributor

@ericsyh ericsyh commented Jul 1, 2022

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

On the java client loadconf page there is a config useTls on the list but I think this config should be the enableTls and I also check on ClientBuilder there is no method as useTls

Modifications

Replace the incorrect tls config useTls by enableTls on the java client doc.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • 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)

ericsyh added 2 commits July 1, 2022 11:22
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
@github-actions github-actions bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Jul 1, 2022
@dave2wave
Copy link
Member

I think that this looks correct, but there are conflicts to resolve

ericsyh added 2 commits July 8, 2022 09:24
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
@ericsyh
Copy link
Contributor Author

ericsyh commented Jul 16, 2022

I think that this looks correct, but there are conflicts to resolve

@michaeljmarshall @dave2wave Conflicts resolved. PTAL again.

@ericsyh
Copy link
Contributor Author

ericsyh commented Jul 19, 2022

cc @Anonymitaet Could help take a look at this Doc PR or assign a technical review?

Copy link
Member

@Anonymitaet Anonymitaet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaoran10
could you please review this PR from the technical perspective? Thank you!

`numListenerThreads`|int|The number of threads used for handling message listeners. The listener thread pool is shared across all the consumers and readers using the "listener" model to get messages. For a given consumer, the listener is always invoked from the same thread to ensure ordering. If you want multiple threads to process a single topic, you need to create a [`shared`](/concepts-messaging.md#shared) subscription and multiple consumers for this subscription. This does not ensure ordering.| 1
`useTcpNoDelay`| boolean| Whether to use TCP no-delay flag on the connection to disable Nagle algorithm |true
`useTls` |boolean |Whether to use TLS encryption on the connection| false
`enableTls` |boolean | Whether to use TLS encryption on the connection. **Deprecated**. use "pulsar+ssl://" in serviceUrl to enable | false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does Deprecated mean? enableTls is deprecated or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to config enableTls in pulsar client to enable Tls, just use pulsar+ssl:// in the connection address

### TLS Authentication

To use [TLS](security-tls-authentication), you need to set TLS to `true` using the `setUseTls` method, point your Pulsar client to a TLS cert path, and provide paths to cert and key files.
To use [TLS](security-tls-authentication.md), you need to set TLS to `true` using the `enableTls` method, point your Pulsar client to a TLS cert path, and provide paths to cert and key files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@momo-jun FYI: here is a missing occurrence (the .md issue)

Copy link
Contributor

@momo-jun momo-jun Jul 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the reminder. I just covered three versions 2.10.0, 2.10.1, and master, but didn't have a chance to fix them in doc versions earlier than 2.10. There are hundreds of them in each version, so I need to implement it by phase to avoid getting dizzy and crazy. Maybe I can file an good-first-issue :)

nicoloboschi and others added 3 commits July 21, 2022 14:54
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! LGTM.

@ericsyh may you tidy the PR description?

@Anonymitaet it seems this PR needs one more approval from committers to merge, could you help with reviewing?

@Anonymitaet Anonymitaet merged commit e1050e1 into apache:master Aug 1, 2022
@Anonymitaet
Copy link
Member

@tisonkun thanks!

@ericsyh I've merged your PR with modifying the commit message to [fix][doc] fix incorrect tls config in java client doc

Gleiphir2769 pushed a commit to Gleiphir2769/pulsar that referenced this pull request Aug 4, 2022
momo-jun added a commit to momo-jun/pulsar that referenced this pull request Aug 17, 2022
momo-jun added a commit that referenced this pull request Sep 7, 2022
* Sync recent changes from #17030, #17039, #16315, and #17057

* fix #17119

* minor updates

* add link of release notes to navigation

* fix

* update release process as per PIP-190

* minor fix

* minor fix

* Update release-process.md
@ericsyh ericsyh deleted the java-client-tls-config branch June 14, 2023 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants