@Override
    public int compareTo(final Partition other) {
        if (this.broker.getBrokerId() != other.broker.getBrokerId()) {
            return this.broker.getBrokerId() > other.broker.getBrokerId() ? 1 : -1;
        }
        if (!this.broker.getHost().equals(other.broker.getHost())) {
            return this.broker.getHost().compareTo(other.broker.getHost());
        }
        if (!this.topic.equals(other.topic)) {
            return this.topic.compareTo(other.topic);
        } else if (this.partitionId != other.partitionId) {
            return this.partitionId > other.partitionId ? 1 : -1;
        }
        return 0;
    }
create a Partition with full broker and part info string

@param broker
@param partStr
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/cluster/Partition.java