cryptoe commented on a change in pull request #11723:
URL: https://github.com/apache/druid/pull/11723#discussion_r730574530
##########
File path:
indexing-service/src/main/java/org/apache/druid/indexing/overlord/sampler/SamplerExceptionMapper.java
##########
@@ -28,13 +29,21 @@
@Provider
public class SamplerExceptionMapper implements
ExceptionMapper<SamplerException>
{
+ private static final Logger LOG = new Logger(SamplerExceptionMapper.class);
+
@Override
public Response toResponse(SamplerException exception)
{
+ String message = exception.getMessage() == null ? "The sampler encountered
an issue" : exception.getMessage();
+
+ // stack trace is not returned to the client,
Review comment:
```suggestion
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]