Uploaded image for project: 'Java DCP Client'
  1. Java DCP Client
  2. JDCP-193

Rollback in maybeMovePartition() causes StreamFailure in high-level API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.34.0
    • None
    • None
    • 1

    Description

      Conductor.maybeMovePartition was unconditionally published a FailedToMovePartitionEvent whenever the move failed, even it failed due to rollback (which is recoverable).

      Since FailedToMovePartitionEvent is a subclass of DcpFailureEvent, EventHandlerAdapter treats it as a fatal error and dispatches it to the StreamError callback method, leading to the connector shutdown in KAFKAC-211.

      Proposed fix is for Conductor.maybeMovePartition to publish the FailedToMovePartitionEvent only if the failure was not due to rollback.

      Attachments

        Issue Links

          For Gerrit Dashboard: JDCP-193
          # Subject Branch Project Status CR V

          Activity

            People

              david.nault David Nault
              david.nault David Nault
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty