You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/07/06 09:34:19 UTC

[GitHub] [kafka] yufeiyan1220 commented on a diff in pull request #12360: KAFKA-14032: Dequeue time for forwarded requests is ignored to set

yufeiyan1220 commented on code in PR #12360:
URL: https://github.com/apache/kafka/pull/12360#discussion_r914629492


##########
core/src/test/scala/unit/kafka/server/KafkaApisTest.scala:
##########
@@ -307,8 +307,12 @@ class KafkaApisTest {
         Seq(new AlterConfigsRequest.ConfigEntry("foo", "bar")).asJava))
     val alterConfigsRequest = new AlterConfigsRequest.Builder(configs.asJava, false).build(requestHeader.apiVersion)
 
+    val startTimeNanos = time.nanoseconds()
+    val dequeueCostNanos = 5 * 1000 * 1000
     val request = TestUtils.buildEnvelopeRequest(
-      alterConfigsRequest, kafkaPrincipalSerde, requestChannelMetrics, time.nanoseconds())
+      alterConfigsRequest, kafkaPrincipalSerde, requestChannelMetrics, startTimeNanos)
+    // add dequeue time to simulate request handlers poll request from requestQueue
+    request.requestDequeueTimeNanos = startTimeNanos + dequeueCostNanos

Review Comment:
   Done



-- 
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-unsubscribe@kafka.apache.org

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