Skip to content

[improve][client] Change the get lastMessageId to debug level#18421

Merged
codelipenghui merged 1 commit intoapache:masterfrom
zymap:log-info-to-debug
Nov 14, 2022
Merged

[improve][client] Change the get lastMessageId to debug level#18421
codelipenghui merged 1 commit intoapache:masterfrom
zymap:log-info-to-debug

Conversation

@zymap
Copy link
Copy Markdown
Member

@zymap zymap commented Nov 11, 2022

Motivation

When using RawReader to read the topic, the getLastMessageId continues to print to the logs, change it to the debug level to avoid printing it too much.

Modifications

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 the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: zymap#42

@zymap zymap self-assigned this Nov 11, 2022
@github-actions
Copy link
Copy Markdown

@zymap Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

@zymap zymap added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/client and removed doc-label-missing labels Nov 11, 2022
@zymap zymap added this to the 2.12.0 milestone Nov 11, 2022
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Nov 11, 2022
---
### Motivation

When using RawReader to read the topic, the getLastMessageId continue
to print to the logs, change it to the debug leve to avoid print it
to much.
@lifepuzzlefun
Copy link
Copy Markdown
Contributor

Good catch !

@codelipenghui
Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 11, 2022

Codecov Report

Merging #18421 (c3a57c4) into master (b31c5a6) will decrease coverage by 16.89%.
The diff coverage is 4.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18421       +/-   ##
=============================================
- Coverage     46.98%   30.09%   -16.90%     
+ Complexity    10343     5705     -4638     
=============================================
  Files           692      613       -79     
  Lines         67766    58395     -9371     
  Branches       7259     6088     -1171     
=============================================
- Hits          31842    17575    -14267     
- Misses        32344    38354     +6010     
+ Partials       3580     2466     -1114     
Flag Coverage Δ
unittests 30.09% <4.00%> (-16.90%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...va/org/apache/pulsar/broker/service/ServerCnx.java 33.50% <ø> (-15.19%) ⬇️
.../java/org/apache/pulsar/client/impl/ClientCnx.java 30.16% <ø> (ø)
...a/org/apache/pulsar/client/impl/TableViewImpl.java 0.00% <0.00%> (ø)
...ar/client/impl/conf/ProducerConfigurationData.java 84.70% <ø> (-0.18%) ⬇️
...va/org/apache/pulsar/client/impl/ConsumerImpl.java 15.07% <7.69%> (+0.03%) ⬆️
...n/java/org/apache/pulsar/client/api/RawReader.java 0.00% <0.00%> (-100.00%) ⬇️
...ava/org/apache/pulsar/broker/admin/v1/Brokers.java 0.00% <0.00%> (-100.00%) ⬇️
...ava/org/apache/pulsar/broker/admin/v2/Brokers.java 0.00% <0.00%> (-100.00%) ⬇️
...va/org/apache/pulsar/broker/admin/v1/Clusters.java 0.00% <0.00%> (-100.00%) ⬇️
.../org/apache/pulsar/broker/admin/v1/Properties.java 0.00% <0.00%> (-100.00%) ⬇️
... and 250 more

Copy link
Copy Markdown
Contributor

@lordcheng10 lordcheng10 left a comment

Choose a reason for hiding this comment

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

LGTM

coderzc pushed a commit that referenced this pull request Feb 28, 2023
@coderzc coderzc added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Feb 28, 2023
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Feb 28, 2023
Annavar-satish pushed a commit to pandio-com/pulsar that referenced this pull request Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/client cherry-picked/branch-2.9 Archived: 2.9 is end of life cherry-picked/branch-2.10 cherry-picked/branch-2.11 doc-not-needed Your PR changes do not impact docs ready-to-test release/2.9.5 release/2.10.4 release/2.11.1 type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.