This is an automated email from the ASF dual-hosted git repository.
yashmayya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 0add9103a78 Mark nullable fields correctly in RebalanceResult (#18086)
0add9103a78 is described below
commit 0add9103a78c3486ebdc9c935093ecb13863b5d5
Author: Jhow <[email protected]>
AuthorDate: Mon Apr 6 12:14:27 2026 -0700
Mark nullable fields correctly in RebalanceResult (#18086)
---
.../pinot/controller/helix/core/rebalance/RebalanceResult.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git
a/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/RebalanceResult.java
b/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/RebalanceResult.java
index cfc38a8033a..98dcbcf8757 100644
---
a/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/RebalanceResult.java
+++
b/pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/RebalanceResult.java
@@ -36,15 +36,20 @@ import
org.apache.pinot.spi.config.table.assignment.InstancePartitionsType;
public class RebalanceResult {
private final String _jobId;
private final Status _status;
+ @Nullable
@JsonInclude(JsonInclude.Include.NON_NULL)
private final Map<InstancePartitionsType, InstancePartitions>
_instanceAssignment;
+ @Nullable
@JsonInclude(JsonInclude.Include.NON_NULL)
private final Map<String, InstancePartitions> _tierInstanceAssignment;
+ @Nullable
@JsonInclude(JsonInclude.Include.NON_NULL)
private final Map<String, Map<String, String>> _segmentAssignment;
private final String _description;
+ @Nullable
@JsonInclude(JsonInclude.Include.NON_NULL)
private final Map<String, RebalancePreCheckerResult> _preChecksResult;
+ @Nullable
@JsonInclude(JsonInclude.Include.NON_NULL)
private final RebalanceSummaryResult _rebalanceSummaryResult;
@@ -82,26 +87,31 @@ public class RebalanceResult {
return _description;
}
+ @Nullable
@JsonProperty
public Map<InstancePartitionsType, InstancePartitions>
getInstanceAssignment() {
return _instanceAssignment;
}
+ @Nullable
@JsonProperty
public Map<String, InstancePartitions> getTierInstanceAssignment() {
return _tierInstanceAssignment;
}
+ @Nullable
@JsonProperty
public Map<String, Map<String, String>> getSegmentAssignment() {
return _segmentAssignment;
}
+ @Nullable
@JsonProperty
public Map<String, RebalancePreCheckerResult> getPreChecksResult() {
return _preChecksResult;
}
+ @Nullable
@JsonProperty
public RebalanceSummaryResult getRebalanceSummaryResult() {
return _rebalanceSummaryResult;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]