code: private void failAssignment(String streamSegmentName, Throwable reason) {
          finishPendingRequests(streamSegmentName, PendingRequest::completeExceptionally, reason);
      }
docs: Fails the assignment for the given StreamSegment Id with the given reason.