kfaraz commented on code in PR #18182:
URL: https://github.com/apache/druid/pull/18182#discussion_r2176444707
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/actions/TaskLocks.java:
##########
@@ -57,7 +58,7 @@ static void checkLockCoversSegments(
)
{
if (!isLockCoversSegments(task, taskLockbox, segments)) {
- throw new ISE(
+ throw Forbidden.exception(
Review Comment:
`403` made some sense to me in that this task is forbidden or not authorized
to act on the interval in question since it doesn't hold the required locks.
But I guess it does become ambiguous with a real forbidden error where the
__user__ making the request is not authorized to perform some action.
--
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]