(partitions []int32)
| 534 | } |
| 535 | |
| 536 | func formatActivePartitions(partitions []int32) string { |
| 537 | var strArr []string |
| 538 | for _, v := range partitions { |
| 539 | strArr = append(strArr, strconv.Itoa(int(v))) |
| 540 | } |
| 541 | return strings.Join(strArr, ",") |
| 542 | } |
| 543 | |
| 544 | // It fetches all the offsets for the blockbuilder topic, for each owned partitions it calculates their last committed records and the |
| 545 | // end record offset. Based on that it sort the partitions by lag |