You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/01 13:29:24 UTC

[GitHub] [pulsar] liry opened a new pull request #14084: [Doc] Describe default ack timeout in javadoc

liry opened a new pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084


   <!--
   ### Contribution Checklist
     
     - Name the pull request in the form "[Issue XYZ][component] Title of the pull request", where *XYZ* should be replaced by the actual issue number.
       Skip *Issue XYZ* if there is no associated github issue for this pull request.
       Skip *component* if you are unsure about which is the best component. E.g. `[docs] Fix typo in produce method`.
   
     - Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
     
     - Each pull request should address only one issue, not mix up code from multiple issues.
     
     - Each commit in the pull request has a meaningful commit message
   
     - Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
   
   **(The sections below can be removed for hotfixes of typos)**
   -->
   
   *(If this PR fixes a github issue, please add `Fixes #<xyz>`.)*
   
   Fixes #<xyz>
   
   *(or if this PR is one task of a github issue, please add `Master Issue: #<xyz>` to link to the master issue.)*
   
   Master Issue: #<xyz>
   
   ### Motivation
   
   
   *Explain here the context, and why you're making that change. What is the problem you're trying to solve.*
   
   ### Modifications
   
   *Describe the modifications you've done.*
   
   ### 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): (yes / no)
     - The public API: (yes / no)
     - The schema: (yes / no / don't know)
     - The default values of configurations: (yes / no)
     - The wire protocol: (yes / no)
     - The rest endpoints: (yes / no)
     - The admin cli options: (yes / no)
     - Anything that affects deployment: (yes / no / don't know)
   
   ### Documentation
   
   Check the box below or label this PR directly (if you have committer privilege).
   
   Need to update docs? 
   
   - [ ] `doc-required` 
     
     (If you need help on updating docs, create a doc issue)
     
   - [ ] `no-need-doc` 
     
     (Please explain why)
     
   - [ ] `doc` 
     
     (If this PR contains doc changes)
   
   
   


-- 
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] github-actions[bot] commented on pull request #14084: [Doc] Describe default ack timeout and update grammar in ConsumerBuilder javadoc

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1079562552


   The pr had no activity for 30 days, mark with Stale label.


-- 
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] momo-jun commented on a change in pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
momo-jun commented on a change in pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#discussion_r809608000



##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java
##########
@@ -182,7 +182,8 @@
      * 1 second.
      *
      * <p>By default, the acknowledge timeout is disabled and that means that messages delivered to a
-     * consumer will not be re-delivered unless the consumer crashes.
+     * consumer will not be re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy
+     * is specified, and no ackTimeoutMillis is specified, then the ack timeout will be set to 30 seconds.

Review comment:
       ```suggestion
        * is specified, and no ackTimeoutMillis is specified, the ack timeout is set to 30 seconds.
   ```
   The present tense is preferred.




-- 
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] eolivelli commented on pull request #14084: [Doc] Describe default ack timeout and update grammar in ConsumerBuilder javadoc

Posted by GitBox <gi...@apache.org>.
eolivelli commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1079635252


   @Anonymitaet maybe you want to take a look


-- 
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] RobertIndie commented on a change in pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
RobertIndie commented on a change in pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#discussion_r809214276



##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java
##########
@@ -182,7 +182,8 @@
      * 1 second.
      *
      * <p>By default, the acknowledge timeout is disabled and that means that messages delivered to a
-     * consumer will not be re-delivered unless the consumer crashes.
+     * consumer will not be re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy

Review comment:
       Thanks for your information. Nice work. @Anonymitaet @momo-jun PTAL.




-- 
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] Anonymitaet commented on pull request #14084: [Doc] Describe default ack timeout and update grammar in ConsumerBuilder javadoc

Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1080080840


   /pulsarbot run-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] github-actions[bot] commented on pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1026855927


   @liry:Thanks for providing doc info!


-- 
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] Anonymitaet commented on a change in pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on a change in pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#discussion_r809733288



##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java
##########
@@ -182,7 +182,8 @@
      * 1 second.
      *
      * <p>By default, the acknowledge timeout is disabled and that means that messages delivered to a
-     * consumer will not be re-delivered unless the consumer crashes.
+     * consumer will not be re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy

Review comment:
       ```suggestion
        * consumer is not re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy
   ```
   Write in the simple present tense as much as possible if you are covering facts that were, are, and forever shall be true.
   https://docs.google.com/document/d/1lc5j4RtuLIzlEYCBo97AC8-U_3Erzs_lxpkDuseU0n4/edit#bookmark=id.e8uqh1awkcnp




-- 
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] Anonymitaet commented on pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
Anonymitaet commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1044054117


   @liry please label this PR w/ doc
   Details: https://docs.google.com/document/d/1Qw7LHQdXWBW9t2-r-A7QdFDBwmZh6ytB4guwMoXHqc0/edit#bookmark=id.5d66olk7l4oz


-- 
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] liry commented on pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
liry commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1043990772


   > Hi @liry, thanks for your contribution to docs! I suggest a minor change in the writing style. PTAL.
   
   Hi @momo-jun, thanks for suggestion. Updated. PTAL.


-- 
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] liry edited a comment on pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
liry edited a comment on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1047502271


   > @liry please label this PR w/ `doc` Details: https://docs.google.com/document/d/1Qw7LHQdXWBW9t2-r-A7QdFDBwmZh6ytB4guwMoXHqc0/edit#bookmark=id.5d66olk7l4oz
   
   @Anonymitaet  done


-- 
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] liry commented on pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
liry commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1047502271


   > @liry please label this PR w/ `doc` Details: https://docs.google.com/document/d/1Qw7LHQdXWBW9t2-r-A7QdFDBwmZh6ytB4guwMoXHqc0/edit#bookmark=id.5d66olk7l4oz
   
   done


-- 
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] liry commented on a change in pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
liry commented on a change in pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#discussion_r809159852



##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java
##########
@@ -182,7 +182,8 @@
      * 1 second.
      *
      * <p>By default, the acknowledge timeout is disabled and that means that messages delivered to a
-     * consumer will not be re-delivered unless the consumer crashes.
+     * consumer will not be re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy

Review comment:
       Sure, it was added here: https://github.com/apache/pulsar/pull/3014/files




-- 
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] liry commented on a change in pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
liry commented on a change in pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#discussion_r811646105



##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java
##########
@@ -182,7 +182,8 @@
      * 1 second.
      *
      * <p>By default, the acknowledge timeout is disabled and that means that messages delivered to a
-     * consumer will not be re-delivered unless the consumer crashes.
+     * consumer will not be re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy

Review comment:
       Added second commit with these grammar changes ;)




-- 
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] liry commented on pull request #14084: [Doc] Describe default ack timeout and update grammar in ConsumerBuilder javadoc

Posted by GitBox <gi...@apache.org>.
liry commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1049190852


   > Thanks for this useful contribution
   > 
   > Can you please update the title and the description? The patch seems broader than what you describe.
   
   @eolivelli done


-- 
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] github-actions[bot] commented on pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1026845160


   @liry:Thanks for your contribution. For this PR, do we need to update docs?
   (The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)


-- 
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] RobertIndie commented on a change in pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
RobertIndie commented on a change in pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#discussion_r808767563



##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/ConsumerBuilder.java
##########
@@ -182,7 +182,8 @@
      * 1 second.
      *
      * <p>By default, the acknowledge timeout is disabled and that means that messages delivered to a
-     * consumer will not be re-delivered unless the consumer crashes.
+     * consumer will not be re-delivered unless the consumer crashes. Since 2.3.0, when a dead letter policy

Review comment:
       Could you show me where the relevant code is?




-- 
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] Anonymitaet edited a comment on pull request #14084: [Doc] Describe default ack timeout in javadoc

Posted by GitBox <gi...@apache.org>.
Anonymitaet edited a comment on pull request #14084:
URL: https://github.com/apache/pulsar/pull/14084#issuecomment-1044054117


   @liry please label this PR w/ `doc`
   Details: https://docs.google.com/document/d/1Qw7LHQdXWBW9t2-r-A7QdFDBwmZh6ytB4guwMoXHqc0/edit#bookmark=id.5d66olk7l4oz


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