Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5289

One StopReplicaRequest will caused two Responses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.10.0.0
    • 0.11.0.0
    • core
    • None
    • Patch, Important

    Description

      After discussed with my friend markTC,we find a bug.
      One StopReplicaRequest will caused two Responses.

      At core/src/main/scala/kafka/server/KafkaApi.class 175 and 176 lines.

      When an exception caused at 'replicaManager.replicaFetcherManager.shutdownIdleFetcherThreads()',
      will also return two responses.

      one is at 175 lines 'requestChannel.sendResponse(new RequestChannel.Response(request, new ResponseSend(request.connectionId, responseHeader, response)))' and another at 111 lines 'requestChannel.sendResponse(new Response(request, new ResponseSend(request.connectionId, respHeader, response)))'.

      Attachments

        1. handleStopReplicaRequest.png
          287 kB
          ZanderXu
        2. KAFKA-5289.patch
          0.9 kB
          Ma Tianchi

        Issue Links

          Activity

            People

              ijuma Ismael Juma
              xuzq_zander ZanderXu
              Ma Tianchi Ma Tianchi
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: