massakam opened a new pull request #11495:
URL: https://github.com/apache/pulsar/pull/11495


   ### Motivation
   
   On the consumer endpoint of WebSocket API, we can specify the delay time 
before a message which is negatively acknowledged is redelivered using the 
query parameter `negativeAckRedeliveryDelay`.
   
   However, this parameter is currently ignored when DLQ is disabled. I think 
this is an implementation mistake. Users should be able to specify 
`negativeAckRedeliveryDelay` even if DLQ is disabled.
   
https://github.com/apache/pulsar/blob/ee202d06548e3c73d70ad52374658ee3507ca809/pulsar-websocket/src/main/java/org/apache/pulsar/websocket/ConsumerHandler.java#L389-L403
   
   Related PR: https://github.com/apache/pulsar/pull/8249
   
   ### Modifications
   
   Fixed `ConsumerHandler` of WebSocket to use the `negativeAckRedeliveryDelay` 
value specified by the client even if DLQ is disabled. In addition, fixed an 
inappropriate test code (`ProxyPublishConsumeTest#nackMessageTest()`). 
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   ### Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (yes)
     - 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)
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to