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

FencedException in commitAsync not propagated without callback

    XMLWordPrintableJSON

Details

    Description

      The javadocs for commitAsync() (w/o callback) say:
      @throws org.apache.kafka.common.errors.FencedInstanceIdException if this consumer instance gets fenced by broker.
       
      If no callback is passed into commitAsync(), no offset commit callback invocation is submitted. However, we only check for a FencedInstanceIdException when we execute a callback. It seems to me that with commitAsync() we would not throw at all when the consumer gets fenced.
      In any case, we need a unit test that verifies that the FencedInstanceIdException is thrown for each version of commitAsync().
       

      Attachments

        Issue Links

          Activity

            People

              lucasbru Lucas Brutschy
              lucasbru Lucas Brutschy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: