Technoboy- opened a new pull request #14876:
URL: https://github.com/apache/pulsar/pull/14876
### Motivation
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)
```
### Modification
- Return `NOT_FOUND` instead of `TEMPORARY_REDIRECT`
### 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]