mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
bugfix, fix underReplicatedPartitionCount
This commit is contained in:
@@ -78,6 +78,7 @@ public class BrokerModelConverter {
|
|||||||
Double bytesInPerSec = brokerOverallDTO.getBytesInPerSec() / 1024.0 / 1024.0;
|
Double bytesInPerSec = brokerOverallDTO.getBytesInPerSec() / 1024.0 / 1024.0;
|
||||||
brokerOverviewVO.setBytesInPerSec(Math.round(bytesInPerSec * 100) / 100.0);
|
brokerOverviewVO.setBytesInPerSec(Math.round(bytesInPerSec * 100) / 100.0);
|
||||||
}
|
}
|
||||||
|
brokerOverviewVO.setUnderReplicatedPartitionCount(brokerOverallDTO.getUnderReplicatedPartitions());
|
||||||
brokerOverviewVO.setLeaderCount(brokerOverallDTO.getLeaderCount());
|
brokerOverviewVO.setLeaderCount(brokerOverallDTO.getLeaderCount());
|
||||||
if (brokerOverallDTO.getPartitionCount() != null && brokerOverallDTO.getUnderReplicatedPartitions() != null) {
|
if (brokerOverallDTO.getPartitionCount() != null && brokerOverallDTO.getUnderReplicatedPartitions() != null) {
|
||||||
brokerOverviewVO.setNotUnderReplicatedPartitionCount(brokerOverallDTO.getPartitionCount() - brokerOverallDTO.getUnderReplicatedPartitions());
|
brokerOverviewVO.setNotUnderReplicatedPartitionCount(brokerOverallDTO.getPartitionCount() - brokerOverallDTO.getUnderReplicatedPartitions());
|
||||||
|
|||||||
@@ -30,9 +30,13 @@ public class BrokerOverallVO {
|
|||||||
@ApiModelProperty(value = "分区数")
|
@ApiModelProperty(value = "分区数")
|
||||||
private Integer partitionCount;
|
private Integer partitionCount;
|
||||||
|
|
||||||
@ApiModelProperty(value = "未同步分区数")
|
@Deprecated
|
||||||
|
@ApiModelProperty(value = "同步分区数")
|
||||||
private Integer notUnderReplicatedPartitionCount;
|
private Integer notUnderReplicatedPartitionCount;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "未同步分区数")
|
||||||
|
private Integer underReplicatedPartitionCount;
|
||||||
|
|
||||||
@ApiModelProperty(value = "leader数")
|
@ApiModelProperty(value = "leader数")
|
||||||
private Integer leaderCount;
|
private Integer leaderCount;
|
||||||
|
|
||||||
@@ -103,6 +107,14 @@ public class BrokerOverallVO {
|
|||||||
this.notUnderReplicatedPartitionCount = notUnderReplicatedPartitionCount;
|
this.notUnderReplicatedPartitionCount = notUnderReplicatedPartitionCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getUnderReplicatedPartitionCount() {
|
||||||
|
return underReplicatedPartitionCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnderReplicatedPartitionCount(Integer underReplicatedPartitionCount) {
|
||||||
|
this.underReplicatedPartitionCount = underReplicatedPartitionCount;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getLeaderCount() {
|
public Integer getLeaderCount() {
|
||||||
return leaderCount;
|
return leaderCount;
|
||||||
}
|
}
|
||||||
@@ -130,6 +142,7 @@ public class BrokerOverallVO {
|
|||||||
", bytesInPerSec=" + bytesInPerSec +
|
", bytesInPerSec=" + bytesInPerSec +
|
||||||
", partitionCount=" + partitionCount +
|
", partitionCount=" + partitionCount +
|
||||||
", notUnderReplicatedPartitionCount=" + notUnderReplicatedPartitionCount +
|
", notUnderReplicatedPartitionCount=" + notUnderReplicatedPartitionCount +
|
||||||
|
", underReplicatedPartitionCount=" + underReplicatedPartitionCount +
|
||||||
", leaderCount=" + leaderCount +
|
", leaderCount=" + leaderCount +
|
||||||
", regionName='" + regionName + '\'' +
|
", regionName='" + regionName + '\'' +
|
||||||
'}';
|
'}';
|
||||||
|
|||||||
Reference in New Issue
Block a user