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
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.34.0
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            There are no comments yet on this issue.

            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