@@ -489,54 +489,29 @@ static int rd_kafka_assignment_serve_pending(rd_kafka_t *rk) {
489489                         * 
490490                         * Start fetcher for partition and forward partition's 
491491                         * fetchq to consumer group's queue. */ 
492-                         rd_kafka_fetch_pos_t  pos  = 
493-                             rd_kafka_topic_partition_get_fetch_pos (rktpar );
494492
495-                         /* Reset the (lib) pause flag which may have 
496-                          * been set by the cgrp when scheduling the 
497-                          * rebalance callback. */ 
493+                         rd_kafka_dbg (rk , CGRP , "SRVPEND" ,
494+                                      "Starting pending assigned partition " 
495+                                      "%s [%"  PRId32  "] at %s" ,
496+                                      rktpar -> topic , rktpar -> partition ,
497+                                      rd_kafka_fetch_pos2str (
498+                                          rd_kafka_topic_partition_get_fetch_pos (
499+                                              rktpar )));
500+ 
501+                         /* Reset the (lib) pause flag which may have been set by 
502+                          * the cgrp when scheduling the rebalance callback. */ 
498503                        rd_kafka_toppar_op_pause_resume (
499504                            rktp , rd_false  /*resume*/ ,
500505                            RD_KAFKA_TOPPAR_F_LIB_PAUSE , RD_KAFKA_NO_REPLYQ );
501506
502-                         if  (!RD_KAFKA_OFFSET_IS_LOGICAL (rktpar -> offset ) && 
503-                             pos .leader_epoch  !=  -1 ) {
504-                                 rd_kafka_dbg (
505-                                     rk , CGRP , "SRVPEND" ,
506-                                     "Validating assigned partition offset " 
507-                                     "%s [%"  PRId32  "] at %s" ,
508-                                     rktpar -> topic , rktpar -> partition ,
509-                                     rd_kafka_fetch_pos2str (pos ));
510- 
511-                                 rd_kafka_toppar_forward_internal (
512-                                     rktp , rk -> rk_consumer .q );
513-                                 rd_kafka_toppar_lock (rktp );
514-                                 rd_kafka_toppar_set_fetch_state (
515-                                     rktp ,
516-                                     RD_KAFKA_TOPPAR_FETCH_VALIDATE_EPOCH_WAIT );
517-                                 rd_kafka_toppar_set_next_fetch_position (rktp ,
518-                                                                         pos );
519-                                 rd_kafka_toppar_set_offset_validation_position (
520-                                     rktp , pos );
521-                                 rd_kafka_offset_validate (rktp , "offset fetch" );
522-                                 rd_kafka_toppar_unlock (rktp );
523- 
524-                         } else  {
525-                                 rd_kafka_dbg (
526-                                     rk , CGRP , "SRVPEND" ,
527-                                     "Starting pending assigned partition " 
528-                                     "%s [%"  PRId32  "] at %s" ,
529-                                     rktpar -> topic , rktpar -> partition ,
530-                                     rd_kafka_fetch_pos2str (pos ));
531- 
532-                                 /* Start the fetcher */ 
533-                                 rktp -> rktp_started  =  rd_true ;
534-                                 rk -> rk_consumer .assignment .started_cnt ++ ;
535- 
536-                                 rd_kafka_toppar_op_fetch_start (
537-                                     rktp , pos , rk -> rk_consumer .q ,
538-                                     RD_KAFKA_NO_REPLYQ );
539-                         }
507+                         /* Start the fetcher */ 
508+                         rktp -> rktp_started  =  rd_true ;
509+                         rk -> rk_consumer .assignment .started_cnt ++ ;
510+ 
511+                         rd_kafka_toppar_op_fetch_start (
512+                             rktp ,
513+                             rd_kafka_topic_partition_get_fetch_pos (rktpar ),
514+                             rk -> rk_consumer .q , RD_KAFKA_NO_REPLYQ );
540515
541516
542517                } else  if  (can_query_offsets ) {
0 commit comments