Technoboy- opened a new pull request, #15017:
URL: https://github.com/apache/pulsar/pull/15017

   ### Motivation
   
   It's the same issue with patch #14876 fixed.
   
   When topic does not exist, the original logic will return 
`TEMPORARY_REDIRECT`, it will cause the client below exception : 
   
   ```
   Caused by: java.lang.NullPointerException: originalUrl
        at org.asynchttpclient.util.Assertions.assertNotNull(Assertions.java:23)
        at org.asynchttpclient.uri.UriParser.parse(UriParser.java:344)
        at org.asynchttpclient.uri.Uri.create(Uri.java:67)
        at 
org.asynchttpclient.netty.handler.intercept.Redirect30xInterceptor.exitAfterHandlingRedirect(Redirect30xInterceptor.java:128)
        at 
org.asynchttpclient.netty.handler.intercept.Interceptors.exitAfterIntercept(Interceptors.java:98)
        at 
org.asynchttpclient.netty.handler.HttpHandler.handleHttpResponse(HttpHandler.java:78)
        at 
org.asynchttpclient.netty.handler.HttpHandler.handleRead(HttpHandler.java:140)
   ```
   
   ### Modifications
   
   - Add `checkTransactionCoordinatorEnabled`.
   - Return `NOT_FOUND` instead of `TEMPORARY_REDIRECT`.
   - Make `internalGetTransactionInPendingAckStats` fully async.
   - Make `internalGetTransactionInBufferStats` fully async.
   - Make `internalGetTransactionBufferStats` fully async.
   - Make `internalGetPendingAckStats` fully async.
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   
   ### Documentation
   
     
   - [x] `no-need-doc` 
     
   
   
   
   


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