Map<Partition, Partition> srcTargetPartitionMap =
this.getSrcTargetPartitionMap(this.getSourcePartitions(src, start, end), target, targetStart);
for (String group : groups) {
for (Map.Entry<Partition, Partition> entry : srcTargetPartitionMap.entrySet()) {
Partition oldPartition = entry.getKey();
Partition newPartition = entry.getValue();
String srcOffset = this.query.queryOffset(new OffsetQueryDO(topic, group, oldPartition.toString(), "zk"));
if (!StringUtils.isBlank(srcOffset)) {
if (!StringUtils.isBlank(this.query.queryOffset(new OffsetQueryDO(topic, group, newPartition.toString(), "zk")))) {
this.println("topic=" + topic + ",group=" + group + ",partition[" + newPartition
+ "] offset �Ѿ�����");
continue;
}
this.zkManager.setOffset(topic, group, newPartition, srcOffset);