Add missing readonly field (#1506)

Signed-off-by: Roman Zabaluev <rzabaluev@provectus.com>
This commit is contained in:
Roman Zabaluev 2022-01-28 15:24:50 +03:00 committed by GitHub
parent 1ae0d4d8aa
commit afca54d374
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,7 @@ public class InternalClusterState {
private List<Feature> features;
private BigDecimal bytesInPerSec;
private BigDecimal bytesOutPerSec;
private Boolean readOnly;
public InternalClusterState(KafkaCluster cluster, MetricsCache.Metrics metrics) {
name = cluster.getName();
@ -66,6 +67,7 @@ public class InternalClusterState {
inSyncReplicasCount = partitionsStats.getInSyncReplicasCount();
outOfSyncReplicasCount = partitionsStats.getOutOfSyncReplicasCount();
underReplicatedPartitionCount = partitionsStats.getUnderReplicatedPartitionCount();
readOnly = cluster.getReadOnly();
}
}