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

Producer's BufferPool may block the producer from closing.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.1
    • Component/s: None
    • Labels:
      None

      Description

      The producer's BufferPool may block allocations if its memory limit has hit capacity. If the producer is closed, it's possible for the allocation waiters to wait for max.block.ms if progress cannot be made, even when force-closed (immediate), which can cause indefinite blocking if max.block.ms is particularly high.

      The BufferPool should be made close-able, which should immediate wake up any waiters that are pending allocations and throw a "producer is closing" exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bbyrne Brian Byrne
                Reporter:
                bbyrne Brian Byrne
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: