arunramani commented on code in PR #16325:
URL: https://github.com/apache/druid/pull/16325#discussion_r1577183620


##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/TaskQueue.java:
##########
@@ -424,15 +426,16 @@ private void manageInternalCritical(
           catch (Exception e) {
             log.warn(e, "Exception thrown during isReady for task: %s", 
task.getId());
             final String errorMessage;
-            if (e instanceof MaxAllowedLocksExceededException) {
+            if (e instanceof MaxAllowedLocksExceededException || e instanceof 
LockAcquisitionFailedException) {
               errorMessage = e.getMessage();
             } else {
               errorMessage = StringUtils.format(
-                  "Encountered error[%s] while waiting for task to be ready. 
See Overlord logs for more details.",
-                  StringUtils.chop(e.getMessage(), 100)
+                  "Encountered error while waiting for task to be ready. See 
Overlord logs for more details. Error: %s",
+                  Throwables.getStackTraceAsString(e)

Review Comment:
   Sounds reasonable.



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

Reply via email to