wilfred-s commented on code in PR #588:
URL: https://github.com/apache/yunikorn-core/pull/588#discussion_r1266126687
##########
pkg/webservice/state_dump.go:
##########
@@ -37,16 +37,16 @@ const (
var stateDump sync.Mutex // ensures only one state dump can be handled at a
time
type AggregatedStateInfo struct {
- Timestamp int64
- Partitions []*dao.PartitionInfo
- Applications []*dao.ApplicationDAOInfo
- AppHistory []*dao.ApplicationHistoryDAOInfo
- Nodes []*dao.NodesDAOInfo
- ClusterInfo []*dao.ClusterDAOInfo
- ContainerHistory []*dao.ContainerHistoryDAOInfo
- Queues []dao.PartitionQueueDAOInfo
- RMDiagnostics map[string]interface{}
- LogLevel string
+ Timestamp int64 `json:",omitempty"`
+ Partitions []*dao.PartitionInfo `json:",omitempty"`
+ Applications []*dao.ApplicationDAOInfo `json:",omitempty"`
+ AppHistory []*dao.ApplicationHistoryDAOInfo `json:",omitempty"`
+ Nodes []*dao.NodesDAOInfo `json:",omitempty"`
+ ClusterInfo []*dao.ClusterDAOInfo `json:",omitempty"`
+ ContainerHistory []*dao.ContainerHistoryDAOInfo `json:",omitempty"`
+ Queues []dao.PartitionQueueDAOInfo `json:",omitempty"`
+ RMDiagnostics map[string]interface{} `json:",omitempty"`
+ LogLevel string `json:",omitempty"`
Review Comment:
we should set the json name for these fields inline with all our other
objects that we create
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]