FrankYang0529 commented on code in PR #15868:
URL: https://github.com/apache/kafka/pull/15868#discussion_r1592697934


##########
connect/runtime/src/test/java/org/apache/kafka/connect/integration/SessionedProtocolIntegrationTest.java:
##########
@@ -115,11 +112,11 @@ public void ensureInternalEndpointIsSecured() throws 
Throwable {
         // Try again, but with an invalid signature
         log.info(
             "Making a POST request to the {} endpoint with no connector 
started and an invalid signature header; "
-                + "expecting 403 error response",
+                + "expecting 503 error response",
             connectorTasksEndpoint
         );
         assertEquals(
-            FORBIDDEN.getStatusCode(),
+            SERVICE_UNAVAILABLE.getStatusCode(),

Review Comment:
   Here, if the connector is not started, there is no `sessionKey`.
   
   
https://github.com/apache/kafka/blob/05df10449eb9c95fe6d6055b302c84686be8058d/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java#L2748-L2752



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to