You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "poorbarcode (via GitHub)" <gi...@apache.org> on 2023/07/16 17:59:30 UTC

[GitHub] [pulsar] poorbarcode opened a new pull request, #20819: [fix] [cli] the variable producerName of BatchMsgContainer is null

poorbarcode opened a new pull request, #20819:
URL: https://github.com/apache/pulsar/pull/20819

   ### Motivation
   
   If the producer name is generated by the Broker, the producer will update the variable `producerName` after connecting, but not update the same variable of the batch message container.
   
   ### Modifications
   
   - fix bug
   - add a debug log of batch messages send in the client library.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: x
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] poorbarcode commented on pull request #20819: [fix] [cli] the variable producerName of BatchMsgContainer is null

Posted by "poorbarcode (via GitHub)" <gi...@apache.org>.
poorbarcode commented on PR #20819:
URL: https://github.com/apache/pulsar/pull/20819#issuecomment-1637152818

   /pulsarbot rerun-failure-checks


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] poorbarcode merged pull request #20819: [fix] [cli] the variable producerName of BatchMsgContainer is null

Posted by "poorbarcode (via GitHub)" <gi...@apache.org>.
poorbarcode merged PR #20819:
URL: https://github.com/apache/pulsar/pull/20819


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] liangyepianzhou commented on a diff in pull request #20819: [fix] [cli] the variable producerName of BatchMsgContainer is null

Posted by "liangyepianzhou (via GitHub)" <gi...@apache.org>.
liangyepianzhou commented on code in PR #20819:
URL: https://github.com/apache/pulsar/pull/20819#discussion_r1264786365


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/BatchMessageContainerImpl.java:
##########
@@ -304,6 +304,13 @@ public OpSendMsg createOpSendMsg() throws IOException {
         ByteBufPair cmd = producer.sendMessage(producer.producerId, messageMetadata.getSequenceId(),
                 messageMetadata.getHighestSequenceId(), numMessagesInBatch, messageMetadata, encryptedPayload);
 
+        if (log.isInfoEnabled()) {

Review Comment:
   Maybe using the debug level is much better.



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] codecov-commenter commented on pull request #20819: [fix] [cli] the variable producerName of BatchMsgContainer is null

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #20819:
URL: https://github.com/apache/pulsar/pull/20819#issuecomment-1637366608

   ## [Codecov](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#20819](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (400b6e5) into [master](https://app.codecov.io/gh/apache/pulsar/commit/b05f4360585316870961436b43a0c50d6ea60898?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (b05f436) will **decrease** coverage by `0.07%`.
   > The diff coverage is `35.71%`.
   
   [![Impacted file tree graph](https://app.codecov.io/gh/apache/pulsar/pull/20819/graphs/tree.svg?width=650&height=150&src=pr&token=acYqCpsK9J&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #20819      +/-   ##
   ============================================
   - Coverage     73.19%   73.12%   -0.08%     
   + Complexity    32185    32175      -10     
   ============================================
     Files          1867     1868       +1     
     Lines        139071   139159      +88     
     Branches      15305    15314       +9     
   ============================================
   - Hits         101795   101762      -33     
   - Misses        29234    29336     +102     
   - Partials       8042     8061      +19     
   ```
   
   | Flag | Coverage Δ | |
   |---|---|---|
   | inttests | `24.18% <35.71%> (-0.09%)` | :arrow_down: |
   | systests | `25.18% <35.71%> (+<0.01%)` | :arrow_up: |
   | unittests | `72.41% <35.71%> (-0.05%)` | :arrow_down: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [...va/org/apache/pulsar/broker/service/ServerCnx.java](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9zZXJ2aWNlL1NlcnZlckNueC5qYXZh) | `71.13% <0.00%> (-0.14%)` | :arrow_down: |
   | [...sar/client/impl/AbstractBatchMessageContainer.java](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL0Fic3RyYWN0QmF0Y2hNZXNzYWdlQ29udGFpbmVyLmphdmE=) | `75.67% <ø> (-0.65%)` | :arrow_down: |
   | [...sar/client/impl/BatchMessageKeyBasedContainer.java](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL0JhdGNoTWVzc2FnZUtleUJhc2VkQ29udGFpbmVyLmphdmE=) | `63.82% <0.00%> (ø)` | |
   | [.../pulsar/client/impl/BatchMessageContainerImpl.java](https://app.codecov.io/gh/apache/pulsar/pull/20819?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL0JhdGNoTWVzc2FnZUNvbnRhaW5lckltcGwuamF2YQ==) | `83.90% <50.00%> (-0.03%)` | :arrow_down: |
   
   ... and [77 files with indirect coverage changes](https://app.codecov.io/gh/apache/pulsar/pull/20819/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org