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

Transient failure in SslSelectorTest.testMuteOnOOM

    XMLWordPrintableJSON

    Details

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

      Description

      There are a couple of issues:
      1. `Selector.determineHandlingOrder()` currently doesn't clear selection keys when keys are shuffled. This can result in select returning zero even when there are ready keys, resulting in a tight loop of polls with no keys processed.
      2. The test expects `Selector.isOutOfMemory()` to be set in a poll that waits only for 10ms. This is expecting two reads from two connections to be processed within 10ms of each other, which may not always be the case.

      Error:

      org.apache.kafka.common.network.SslSelectorTest > testMuteOnOOM FAILED
      java.lang.AssertionError: could not initiate connections within timeout
      at org.junit.Assert.fail(Assert.java:88)
      at org.apache.kafka.common.network.SslSelectorTest.testMuteOnOOM(SslSelectorTest.java:236)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rsivaram Rajini Sivaram
                Reporter:
                rsivaram Rajini Sivaram
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: