From 2a2f765933bed7ac6ceb12c6677590cc265c5dd1 Mon Sep 17 00:00:00 2001 From: Pete Vilter Date: Thu, 31 May 2018 19:17:02 -0400 Subject: [PATCH 1/2] server: rename ReplicaMatrix endpoint to DataDistribution Release note: None --- pkg/server/admin.go | 24 +- pkg/server/admin_test.go | 18 +- pkg/server/serverpb/admin.pb.go | 604 ++++++++++++++--------------- pkg/server/serverpb/admin.pb.gw.go | 16 +- pkg/server/serverpb/admin.proto | 8 +- 5 files changed, 335 insertions(+), 335 deletions(-) diff --git a/pkg/server/admin.go b/pkg/server/admin.go index 81cbbbb4ad67..81ef17fb7f0f 100644 --- a/pkg/server/admin.go +++ b/pkg/server/admin.go @@ -1359,13 +1359,13 @@ func (s *adminServer) Decommission( return s.DecommissionStatus(ctx, &serverpb.DecommissionStatusRequest{NodeIDs: nodeIDs}) } -// ReplicaMatrix returns a count of replicas on each node for each table. -func (s *adminServer) ReplicaMatrix( - ctx context.Context, req *serverpb.ReplicaMatrixRequest, -) (*serverpb.ReplicaMatrixResponse, error) { - resp := &serverpb.ReplicaMatrixResponse{ - DatabaseInfo: make(map[string]serverpb.ReplicaMatrixResponse_DatabaseInfo), - ZoneConfigs: make(map[int64]serverpb.ReplicaMatrixResponse_ZoneConfig), +// DataDistribution returns a count of replicas on each node for each table. +func (s *adminServer) DataDistribution( + ctx context.Context, req *serverpb.DataDistributionRequest, +) (*serverpb.DataDistributionResponse, error) { + resp := &serverpb.DataDistributionResponse{ + DatabaseInfo: make(map[string]serverpb.DataDistributionResponse_DatabaseInfo), + ZoneConfigs: make(map[int64]serverpb.DataDistributionResponse_ZoneConfig), } // Get ids and names for databases and tables. @@ -1384,7 +1384,7 @@ func (s *adminServer) ReplicaMatrix( } // Used later when we're scanning Meta2 and only have IDs, not names. - tableInfosByTableID := map[uint64]serverpb.ReplicaMatrixResponse_TableInfo{} + tableInfosByTableID := map[uint64]serverpb.DataDistributionResponse_TableInfo{} for _, row := range rows1 { tableName := (*string)(row[0].(*tree.DString)) @@ -1394,8 +1394,8 @@ func (s *adminServer) ReplicaMatrix( // Insert database if it doesn't exist. dbInfo, ok := resp.DatabaseInfo[*dbName] if !ok { - dbInfo = serverpb.ReplicaMatrixResponse_DatabaseInfo{ - TableInfo: make(map[string]serverpb.ReplicaMatrixResponse_TableInfo), + dbInfo = serverpb.DataDistributionResponse_DatabaseInfo{ + TableInfo: make(map[string]serverpb.DataDistributionResponse_TableInfo), } resp.DatabaseInfo[*dbName] = dbInfo } @@ -1422,7 +1422,7 @@ func (s *adminServer) ReplicaMatrix( zcID := int64(tree.MustBeDInt(zcRow[0])) // Insert table. - tableInfo := serverpb.ReplicaMatrixResponse_TableInfo{ + tableInfo := serverpb.DataDistributionResponse_TableInfo{ ReplicaCountByNodeId: make(map[roachpb.NodeID]int64), ZoneConfigId: zcID, } @@ -1492,7 +1492,7 @@ func (s *adminServer) ReplicaMatrix( return nil, s.serverError(err) } - resp.ZoneConfigs[zcID] = serverpb.ReplicaMatrixResponse_ZoneConfig{ + resp.ZoneConfigs[zcID] = serverpb.DataDistributionResponse_ZoneConfig{ CliSpecifier: zcCliSpecifier, Config: zcProto, ConfigYaml: string(zcYaml), diff --git a/pkg/server/admin_test.go b/pkg/server/admin_test.go index a13bc44b5704..a8b2dd71233c 100644 --- a/pkg/server/admin_test.go +++ b/pkg/server/admin_test.go @@ -1305,7 +1305,7 @@ func TestAdminAPIFullRangeLog(t *testing.T) { } } -func TestAdminAPIReplicaMatrix(t *testing.T) { +func TestAdminAPIDataDistribution(t *testing.T) { defer leaktest.AfterTest(t)() t.Skip("#24802") @@ -1328,12 +1328,12 @@ func TestAdminAPIReplicaMatrix(t *testing.T) { sqlDB.Exec(t, `CREATE DATABASE "sp'ec\ch""ars"`) sqlDB.Exec(t, `CREATE TABLE "sp'ec\ch""ars"."more\spec'chars" (id INT PRIMARY KEY)`) - // Verify that we see their replicas in the ReplicaMatrix response, evenly spread + // Verify that we see their replicas in the DataDistribution response, evenly spread // across the test cluster's three nodes. - expectedResp := map[string]serverpb.ReplicaMatrixResponse_DatabaseInfo{ + expectedResp := map[string]serverpb.DataDistributionResponse_DatabaseInfo{ "roachblog": { - TableInfo: map[string]serverpb.ReplicaMatrixResponse_TableInfo{ + TableInfo: map[string]serverpb.DataDistributionResponse_TableInfo{ "posts": { ReplicaCountByNodeId: map[roachpb.NodeID]int64{ 1: 1, @@ -1351,7 +1351,7 @@ func TestAdminAPIReplicaMatrix(t *testing.T) { }, }, `sp'ec\ch"ars`: { - TableInfo: map[string]serverpb.ReplicaMatrixResponse_TableInfo{ + TableInfo: map[string]serverpb.DataDistributionResponse_TableInfo{ `more\spec'chars`: { ReplicaCountByNodeId: map[roachpb.NodeID]int64{ 1: 1, @@ -1365,7 +1365,7 @@ func TestAdminAPIReplicaMatrix(t *testing.T) { // Wait for the new tables' ranges to be created and replicated. testutils.SucceedsSoon(t, func() error { - var resp serverpb.ReplicaMatrixResponse + var resp serverpb.DataDistributionResponse if err := getAdminJSONProto(firstServer, "replica_matrix", &resp); err != nil { t.Fatal(err) } @@ -1399,7 +1399,7 @@ func TestAdminAPIReplicaMatrix(t *testing.T) { // Verify that we see the zone config and its effects. testutils.SucceedsSoon(t, func() error { - var resp serverpb.ReplicaMatrixResponse + var resp serverpb.DataDistributionResponse if err := getAdminJSONProto(firstServer, "replica_matrix", &resp); err != nil { t.Fatal(err) } @@ -1428,7 +1428,7 @@ func TestAdminAPIReplicaMatrix(t *testing.T) { }) } -func BenchmarkAdminAPIReplicaMatrix(b *testing.B) { +func BenchmarkAdminAPIDataDistribution(b *testing.B) { testCluster := serverutils.StartTestCluster(b, 3, base.TestClusterArgs{}) defer testCluster.Stopper().Stop(context.Background()) @@ -1448,7 +1448,7 @@ func BenchmarkAdminAPIReplicaMatrix(b *testing.B) { b.ResetTimer() for n := 0; n < b.N; n++ { - var resp serverpb.ReplicaMatrixResponse + var resp serverpb.DataDistributionResponse if err := getAdminJSONProto(firstServer, "replica_matrix", &resp); err != nil { b.Fatal(err) } diff --git a/pkg/server/serverpb/admin.pb.go b/pkg/server/serverpb/admin.pb.go index 0598e643ec82..16ac6051b98f 100644 --- a/pkg/server/serverpb/admin.pb.go +++ b/pkg/server/serverpb/admin.pb.go @@ -50,8 +50,8 @@ RangeLogResponse QueryPlanRequest QueryPlanResponse - ReplicaMatrixRequest - ReplicaMatrixResponse + DataDistributionRequest + DataDistributionResponse QueriesRequest QueriesResponse UserLoginRequest @@ -937,27 +937,27 @@ func (m *QueryPlanResponse) String() string { return proto.CompactTex func (*QueryPlanResponse) ProtoMessage() {} func (*QueryPlanResponse) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{38} } -type ReplicaMatrixRequest struct { +type DataDistributionRequest struct { } -func (m *ReplicaMatrixRequest) Reset() { *m = ReplicaMatrixRequest{} } -func (m *ReplicaMatrixRequest) String() string { return proto.CompactTextString(m) } -func (*ReplicaMatrixRequest) ProtoMessage() {} -func (*ReplicaMatrixRequest) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{39} } +func (m *DataDistributionRequest) Reset() { *m = DataDistributionRequest{} } +func (m *DataDistributionRequest) String() string { return proto.CompactTextString(m) } +func (*DataDistributionRequest) ProtoMessage() {} +func (*DataDistributionRequest) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{39} } -type ReplicaMatrixResponse struct { +type DataDistributionResponse struct { // By database name. - DatabaseInfo map[string]ReplicaMatrixResponse_DatabaseInfo `protobuf:"bytes,1,rep,name=database_info,json=databaseInfo" json:"database_info" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + DatabaseInfo map[string]DataDistributionResponse_DatabaseInfo `protobuf:"bytes,1,rep,name=database_info,json=databaseInfo" json:"database_info" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` // By zone config id. - ZoneConfigs map[int64]ReplicaMatrixResponse_ZoneConfig `protobuf:"bytes,2,rep,name=zone_configs,json=zoneConfigs" json:"zone_configs" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + ZoneConfigs map[int64]DataDistributionResponse_ZoneConfig `protobuf:"bytes,2,rep,name=zone_configs,json=zoneConfigs" json:"zone_configs" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` } -func (m *ReplicaMatrixResponse) Reset() { *m = ReplicaMatrixResponse{} } -func (m *ReplicaMatrixResponse) String() string { return proto.CompactTextString(m) } -func (*ReplicaMatrixResponse) ProtoMessage() {} -func (*ReplicaMatrixResponse) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{40} } +func (m *DataDistributionResponse) Reset() { *m = DataDistributionResponse{} } +func (m *DataDistributionResponse) String() string { return proto.CompactTextString(m) } +func (*DataDistributionResponse) ProtoMessage() {} +func (*DataDistributionResponse) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{40} } -type ReplicaMatrixResponse_ZoneConfig struct { +type DataDistributionResponse_ZoneConfig struct { // cli_specifier is ".default" for the default zone config. // Otherwise, it's of the form [database.]table[@index[.partition]] CliSpecifier string `protobuf:"bytes,1,opt,name=cli_specifier,json=cliSpecifier,proto3" json:"cli_specifier,omitempty"` @@ -966,34 +966,34 @@ type ReplicaMatrixResponse_ZoneConfig struct { ConfigYaml string `protobuf:"bytes,3,opt,name=config_yaml,json=configYaml,proto3" json:"config_yaml,omitempty"` } -func (m *ReplicaMatrixResponse_ZoneConfig) Reset() { *m = ReplicaMatrixResponse_ZoneConfig{} } -func (m *ReplicaMatrixResponse_ZoneConfig) String() string { return proto.CompactTextString(m) } -func (*ReplicaMatrixResponse_ZoneConfig) ProtoMessage() {} -func (*ReplicaMatrixResponse_ZoneConfig) Descriptor() ([]byte, []int) { +func (m *DataDistributionResponse_ZoneConfig) Reset() { *m = DataDistributionResponse_ZoneConfig{} } +func (m *DataDistributionResponse_ZoneConfig) String() string { return proto.CompactTextString(m) } +func (*DataDistributionResponse_ZoneConfig) ProtoMessage() {} +func (*DataDistributionResponse_ZoneConfig) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{40, 0} } -type ReplicaMatrixResponse_TableInfo struct { +type DataDistributionResponse_TableInfo struct { ReplicaCountByNodeId map[github_com_cockroachdb_cockroach_pkg_roachpb.NodeID]int64 `protobuf:"bytes,1,rep,name=replica_count_by_node_id,json=replicaCountByNodeId,castkey=github.com/cockroachdb/cockroach/pkg/roachpb.NodeID" json:"replica_count_by_node_id,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` ZoneConfigId int64 `protobuf:"varint,2,opt,name=zone_config_id,json=zoneConfigId,proto3" json:"zone_config_id,omitempty"` } -func (m *ReplicaMatrixResponse_TableInfo) Reset() { *m = ReplicaMatrixResponse_TableInfo{} } -func (m *ReplicaMatrixResponse_TableInfo) String() string { return proto.CompactTextString(m) } -func (*ReplicaMatrixResponse_TableInfo) ProtoMessage() {} -func (*ReplicaMatrixResponse_TableInfo) Descriptor() ([]byte, []int) { +func (m *DataDistributionResponse_TableInfo) Reset() { *m = DataDistributionResponse_TableInfo{} } +func (m *DataDistributionResponse_TableInfo) String() string { return proto.CompactTextString(m) } +func (*DataDistributionResponse_TableInfo) ProtoMessage() {} +func (*DataDistributionResponse_TableInfo) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{40, 1} } -type ReplicaMatrixResponse_DatabaseInfo struct { +type DataDistributionResponse_DatabaseInfo struct { // By table name. - TableInfo map[string]ReplicaMatrixResponse_TableInfo `protobuf:"bytes,1,rep,name=table_info,json=tableInfo" json:"table_info" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` + TableInfo map[string]DataDistributionResponse_TableInfo `protobuf:"bytes,1,rep,name=table_info,json=tableInfo" json:"table_info" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` } -func (m *ReplicaMatrixResponse_DatabaseInfo) Reset() { *m = ReplicaMatrixResponse_DatabaseInfo{} } -func (m *ReplicaMatrixResponse_DatabaseInfo) String() string { return proto.CompactTextString(m) } -func (*ReplicaMatrixResponse_DatabaseInfo) ProtoMessage() {} -func (*ReplicaMatrixResponse_DatabaseInfo) Descriptor() ([]byte, []int) { +func (m *DataDistributionResponse_DatabaseInfo) Reset() { *m = DataDistributionResponse_DatabaseInfo{} } +func (m *DataDistributionResponse_DatabaseInfo) String() string { return proto.CompactTextString(m) } +func (*DataDistributionResponse_DatabaseInfo) ProtoMessage() {} +func (*DataDistributionResponse_DatabaseInfo) Descriptor() ([]byte, []int) { return fileDescriptorAdmin, []int{40, 2} } @@ -1068,11 +1068,11 @@ func init() { proto.RegisterType((*RangeLogResponse_Event)(nil), "cockroach.server.serverpb.RangeLogResponse.Event") proto.RegisterType((*QueryPlanRequest)(nil), "cockroach.server.serverpb.QueryPlanRequest") proto.RegisterType((*QueryPlanResponse)(nil), "cockroach.server.serverpb.QueryPlanResponse") - proto.RegisterType((*ReplicaMatrixRequest)(nil), "cockroach.server.serverpb.ReplicaMatrixRequest") - proto.RegisterType((*ReplicaMatrixResponse)(nil), "cockroach.server.serverpb.ReplicaMatrixResponse") - proto.RegisterType((*ReplicaMatrixResponse_ZoneConfig)(nil), "cockroach.server.serverpb.ReplicaMatrixResponse.ZoneConfig") - proto.RegisterType((*ReplicaMatrixResponse_TableInfo)(nil), "cockroach.server.serverpb.ReplicaMatrixResponse.TableInfo") - proto.RegisterType((*ReplicaMatrixResponse_DatabaseInfo)(nil), "cockroach.server.serverpb.ReplicaMatrixResponse.DatabaseInfo") + proto.RegisterType((*DataDistributionRequest)(nil), "cockroach.server.serverpb.DataDistributionRequest") + proto.RegisterType((*DataDistributionResponse)(nil), "cockroach.server.serverpb.DataDistributionResponse") + proto.RegisterType((*DataDistributionResponse_ZoneConfig)(nil), "cockroach.server.serverpb.DataDistributionResponse.ZoneConfig") + proto.RegisterType((*DataDistributionResponse_TableInfo)(nil), "cockroach.server.serverpb.DataDistributionResponse.TableInfo") + proto.RegisterType((*DataDistributionResponse_DatabaseInfo)(nil), "cockroach.server.serverpb.DataDistributionResponse.DatabaseInfo") proto.RegisterType((*QueriesRequest)(nil), "cockroach.server.serverpb.QueriesRequest") proto.RegisterType((*QueriesResponse)(nil), "cockroach.server.serverpb.QueriesResponse") proto.RegisterEnum("cockroach.server.serverpb.ZoneConfigurationLevel", ZoneConfigurationLevel_name, ZoneConfigurationLevel_value) @@ -1162,7 +1162,7 @@ type AdminClient interface { // URL: /_admin/v1/rangelog/1 // URL: /_admin/v1/rangelog/1?limit=100 RangeLog(ctx context.Context, in *RangeLogRequest, opts ...grpc.CallOption) (*RangeLogResponse, error) - ReplicaMatrix(ctx context.Context, in *ReplicaMatrixRequest, opts ...grpc.CallOption) (*ReplicaMatrixResponse, error) + DataDistribution(ctx context.Context, in *DataDistributionRequest, opts ...grpc.CallOption) (*DataDistributionResponse, error) Queries(ctx context.Context, in *QueriesRequest, opts ...grpc.CallOption) (*QueriesResponse, error) } @@ -1377,9 +1377,9 @@ func (c *adminClient) RangeLog(ctx context.Context, in *RangeLogRequest, opts .. return out, nil } -func (c *adminClient) ReplicaMatrix(ctx context.Context, in *ReplicaMatrixRequest, opts ...grpc.CallOption) (*ReplicaMatrixResponse, error) { - out := new(ReplicaMatrixResponse) - err := grpc.Invoke(ctx, "/cockroach.server.serverpb.Admin/ReplicaMatrix", in, out, c.cc, opts...) +func (c *adminClient) DataDistribution(ctx context.Context, in *DataDistributionRequest, opts ...grpc.CallOption) (*DataDistributionResponse, error) { + out := new(DataDistributionResponse) + err := grpc.Invoke(ctx, "/cockroach.server.serverpb.Admin/DataDistribution", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1470,7 +1470,7 @@ type AdminServer interface { // URL: /_admin/v1/rangelog/1 // URL: /_admin/v1/rangelog/1?limit=100 RangeLog(context.Context, *RangeLogRequest) (*RangeLogResponse, error) - ReplicaMatrix(context.Context, *ReplicaMatrixRequest) (*ReplicaMatrixResponse, error) + DataDistribution(context.Context, *DataDistributionRequest) (*DataDistributionResponse, error) Queries(context.Context, *QueriesRequest) (*QueriesResponse, error) } @@ -1841,20 +1841,20 @@ func _Admin_RangeLog_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } -func _Admin_ReplicaMatrix_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReplicaMatrixRequest) +func _Admin_DataDistribution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DataDistributionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(AdminServer).ReplicaMatrix(ctx, in) + return srv.(AdminServer).DataDistribution(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cockroach.server.serverpb.Admin/ReplicaMatrix", + FullMethod: "/cockroach.server.serverpb.Admin/DataDistribution", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).ReplicaMatrix(ctx, req.(*ReplicaMatrixRequest)) + return srv.(AdminServer).DataDistribution(ctx, req.(*DataDistributionRequest)) } return interceptor(ctx, in, info, handler) } @@ -1958,8 +1958,8 @@ var _Admin_serviceDesc = grpc.ServiceDesc{ Handler: _Admin_RangeLog_Handler, }, { - MethodName: "ReplicaMatrix", - Handler: _Admin_ReplicaMatrix_Handler, + MethodName: "DataDistribution", + Handler: _Admin_DataDistribution_Handler, }, { MethodName: "Queries", @@ -3972,7 +3972,7 @@ func (m *QueryPlanResponse) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *ReplicaMatrixRequest) Marshal() (dAtA []byte, err error) { +func (m *DataDistributionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -3982,7 +3982,7 @@ func (m *ReplicaMatrixRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReplicaMatrixRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *DataDistributionRequest) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -3990,7 +3990,7 @@ func (m *ReplicaMatrixRequest) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *ReplicaMatrixResponse) Marshal() (dAtA []byte, err error) { +func (m *DataDistributionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -4000,7 +4000,7 @@ func (m *ReplicaMatrixResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReplicaMatrixResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *DataDistributionResponse) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -4069,7 +4069,7 @@ func (m *ReplicaMatrixResponse) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *ReplicaMatrixResponse_ZoneConfig) Marshal() (dAtA []byte, err error) { +func (m *DataDistributionResponse_ZoneConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -4079,7 +4079,7 @@ func (m *ReplicaMatrixResponse_ZoneConfig) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReplicaMatrixResponse_ZoneConfig) MarshalTo(dAtA []byte) (int, error) { +func (m *DataDistributionResponse_ZoneConfig) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -4107,7 +4107,7 @@ func (m *ReplicaMatrixResponse_ZoneConfig) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *ReplicaMatrixResponse_TableInfo) Marshal() (dAtA []byte, err error) { +func (m *DataDistributionResponse_TableInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -4117,7 +4117,7 @@ func (m *ReplicaMatrixResponse_TableInfo) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ReplicaMatrixResponse_TableInfo) MarshalTo(dAtA []byte) (int, error) { +func (m *DataDistributionResponse_TableInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -4150,7 +4150,7 @@ func (m *ReplicaMatrixResponse_TableInfo) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *ReplicaMatrixResponse_DatabaseInfo) Marshal() (dAtA []byte, err error) { +func (m *DataDistributionResponse_DatabaseInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -4160,7 +4160,7 @@ func (m *ReplicaMatrixResponse_DatabaseInfo) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *ReplicaMatrixResponse_DatabaseInfo) MarshalTo(dAtA []byte) (int, error) { +func (m *DataDistributionResponse_DatabaseInfo) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -5069,13 +5069,13 @@ func (m *QueryPlanResponse) Size() (n int) { return n } -func (m *ReplicaMatrixRequest) Size() (n int) { +func (m *DataDistributionRequest) Size() (n int) { var l int _ = l return n } -func (m *ReplicaMatrixResponse) Size() (n int) { +func (m *DataDistributionResponse) Size() (n int) { var l int _ = l if len(m.DatabaseInfo) > 0 { @@ -5099,7 +5099,7 @@ func (m *ReplicaMatrixResponse) Size() (n int) { return n } -func (m *ReplicaMatrixResponse_ZoneConfig) Size() (n int) { +func (m *DataDistributionResponse_ZoneConfig) Size() (n int) { var l int _ = l l = len(m.CliSpecifier) @@ -5115,7 +5115,7 @@ func (m *ReplicaMatrixResponse_ZoneConfig) Size() (n int) { return n } -func (m *ReplicaMatrixResponse_TableInfo) Size() (n int) { +func (m *DataDistributionResponse_TableInfo) Size() (n int) { var l int _ = l if len(m.ReplicaCountByNodeId) > 0 { @@ -5132,7 +5132,7 @@ func (m *ReplicaMatrixResponse_TableInfo) Size() (n int) { return n } -func (m *ReplicaMatrixResponse_DatabaseInfo) Size() (n int) { +func (m *DataDistributionResponse_DatabaseInfo) Size() (n int) { var l int _ = l if len(m.TableInfo) > 0 { @@ -11456,7 +11456,7 @@ func (m *QueryPlanResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ReplicaMatrixRequest) Unmarshal(dAtA []byte) error { +func (m *DataDistributionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11479,10 +11479,10 @@ func (m *ReplicaMatrixRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReplicaMatrixRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DataDistributionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaMatrixRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DataDistributionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11506,7 +11506,7 @@ func (m *ReplicaMatrixRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ReplicaMatrixResponse) Unmarshal(dAtA []byte) error { +func (m *DataDistributionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11529,10 +11529,10 @@ func (m *ReplicaMatrixResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ReplicaMatrixResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DataDistributionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicaMatrixResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DataDistributionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11562,10 +11562,10 @@ func (m *ReplicaMatrixResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.DatabaseInfo == nil { - m.DatabaseInfo = make(map[string]ReplicaMatrixResponse_DatabaseInfo) + m.DatabaseInfo = make(map[string]DataDistributionResponse_DatabaseInfo) } var mapkey string - mapvalue := &ReplicaMatrixResponse_DatabaseInfo{} + mapvalue := &DataDistributionResponse_DatabaseInfo{} for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -11636,7 +11636,7 @@ func (m *ReplicaMatrixResponse) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &ReplicaMatrixResponse_DatabaseInfo{} + mapvalue = &DataDistributionResponse_DatabaseInfo{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -11685,10 +11685,10 @@ func (m *ReplicaMatrixResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.ZoneConfigs == nil { - m.ZoneConfigs = make(map[int64]ReplicaMatrixResponse_ZoneConfig) + m.ZoneConfigs = make(map[int64]DataDistributionResponse_ZoneConfig) } var mapkey int64 - mapvalue := &ReplicaMatrixResponse_ZoneConfig{} + mapvalue := &DataDistributionResponse_ZoneConfig{} for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -11748,7 +11748,7 @@ func (m *ReplicaMatrixResponse) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &ReplicaMatrixResponse_ZoneConfig{} + mapvalue = &DataDistributionResponse_ZoneConfig{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -11791,7 +11791,7 @@ func (m *ReplicaMatrixResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *ReplicaMatrixResponse_ZoneConfig) Unmarshal(dAtA []byte) error { +func (m *DataDistributionResponse_ZoneConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11929,7 +11929,7 @@ func (m *ReplicaMatrixResponse_ZoneConfig) Unmarshal(dAtA []byte) error { } return nil } -func (m *ReplicaMatrixResponse_TableInfo) Unmarshal(dAtA []byte) error { +func (m *DataDistributionResponse_TableInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12094,7 +12094,7 @@ func (m *ReplicaMatrixResponse_TableInfo) Unmarshal(dAtA []byte) error { } return nil } -func (m *ReplicaMatrixResponse_DatabaseInfo) Unmarshal(dAtA []byte) error { +func (m *DataDistributionResponse_DatabaseInfo) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12150,10 +12150,10 @@ func (m *ReplicaMatrixResponse_DatabaseInfo) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.TableInfo == nil { - m.TableInfo = make(map[string]ReplicaMatrixResponse_TableInfo) + m.TableInfo = make(map[string]DataDistributionResponse_TableInfo) } var mapkey string - mapvalue := &ReplicaMatrixResponse_TableInfo{} + mapvalue := &DataDistributionResponse_TableInfo{} for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 @@ -12224,7 +12224,7 @@ func (m *ReplicaMatrixResponse_DatabaseInfo) Unmarshal(dAtA []byte) error { if postmsgIndex > l { return io.ErrUnexpectedEOF } - mapvalue = &ReplicaMatrixResponse_TableInfo{} + mapvalue = &DataDistributionResponse_TableInfo{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } @@ -12507,226 +12507,226 @@ func init() { proto.RegisterFile("server/serverpb/admin.proto", fileDescriptorAd var fileDescriptorAdmin = []byte{ // 3540 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x3a, 0x4d, 0x6f, 0x1b, 0xd7, - 0xb5, 0x1e, 0x52, 0xfc, 0x3a, 0x24, 0x25, 0xf2, 0x5a, 0x91, 0x69, 0xda, 0x4f, 0x94, 0xc7, 0x2f, - 0xb1, 0x62, 0x3b, 0x64, 0xac, 0x38, 0x4e, 0x9e, 0xed, 0x2c, 0x44, 0x49, 0x90, 0x69, 0xcb, 0x8e,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x74, 0x53, 0xc3, 0x0f, 0xb1, 0x53, 0x8a, 0x3f, 0x1d, 0xb7, 0x0d, 0xb2, 0x5d, 0xa0, - 0xe5, 0xb8, 0x88, 0x79, 0xda, 0xaa, 0xd9, 0x21, 0x26, 0xd0, 0x37, 0x5d, 0x6a, 0x46, 0x71, 0x05, - 0x28, 0x68, 0x85, 0x40, 0xd0, 0x45, 0x98, 0x6b, 0xdb, 0x58, 0x75, 0x71, 0x93, 0x99, 0x31, 0x09, - 0x46, 0xb8, 0x8b, 0x4d, 0x97, 0xda, 0x49, 0x46, 0x99, 0x65, 0xb3, 0x94, 0xe2, 0xa6, 0x98, 0x1b, - 0xb5, 0xce, 0xe4, 0x97, 0x67, 0x9d, 0xa9, 0x2f, 0xcb, 0x3a, 0x0f, 0x3b, 0x5e, 0x7a, 0x1c, 0xc7, - 0x7b, 0x26, 0xa3, 0x2e, 0xef, 0x42, 0x92, 0xa9, 0x97, 0xec, 0x26, 0x11, 0x41, 0xec, 0x26, 0xdf, - 0x04, 0xe6, 0x0e, 0x7a, 0xc2, 0x7c, 0xe9, 0x37, 0xb1, 0x77, 0xb3, 0x6f, 0x18, 0xd4, 0xac, 0x49, - 0x64, 0x48, 0x2b, 0xde, 0x18, 0x9d, 0x26, 0x27, 0xd8, 0x56, 0xfb, 0x86, 0xdb, 0xdc, 0x53, 0x8d, - 0x3e, 0xa6, 0xea, 0xcb, 0x10, 0x7e, 0x29, 0xf0, 0x2e, 0x81, 0x95, 0x3f, 0x95, 0x20, 0x41, 0x55, - 0x1f, 0x4a, 0x72, 0x0e, 0x92, 0x7d, 0x53, 0xdf, 0xed, 0x33, 0xa2, 0x69, 0x85, 0x8f, 0x50, 0x01, - 0xe2, 0x0e, 0xde, 0x65, 0xb1, 0x48, 0x21, 0x9f, 0x64, 0x25, 0xb3, 0x45, 0x4e, 0x85, 0x8f, 0x68, - 0xa0, 0xd6, 0x6d, 0xdc, 0x26, 0x92, 0xe6, 0x36, 0xe1, 0x03, 0x50, 0x09, 0x52, 0xe4, 0x66, 0xd1, - 0x4d, 0x66, 0x04, 0x69, 0x45, 0x0c, 0xc9, 0xc1, 0xf4, 0x6e, 0xcf, 0xd0, 0xdb, 0xba, 0x4b, 0x95, - 0x9a, 0x56, 0xbc, 0xb1, 0xbc, 0x06, 0x45, 0xcf, 0xa0, 0x9e, 0xc1, 0xf3, 0x7f, 0x12, 0x07, 0x14, - 0xc4, 0xc3, 0xfd, 0x7e, 0xc4, 0xe6, 0xa5, 0x43, 0x36, 0x7f, 0x1a, 0xf2, 0x36, 0x26, 0xac, 0xa8, - 0x7c, 0x49, 0x8c, 0x2e, 0xc9, 0x71, 0x20, 0x5b, 0xf4, 0x6f, 0x00, 0xa6, 0xa5, 0x09, 0x24, 0x4c, - 0x50, 0x19, 0x02, 0x61, 0xd3, 0xd7, 0x20, 0x41, 0xef, 0x6d, 0x1e, 0x99, 0xcf, 0x07, 0x0d, 0x96, - 0x5d, 0xb5, 0x55, 0x76, 0x3f, 0x57, 0xc5, 0x35, 0x5d, 0xbd, 0x79, 0x77, 0x65, 0x85, 0x72, 0xca, - 0x7d, 0x81, 0x21, 0x40, 0x1a, 0xe4, 0xbb, 0xba, 0xe3, 0xe8, 0x66, 0xa7, 0x49, 0xd0, 0x3b, 0xa5, - 0x04, 0xf5, 0xff, 0xff, 0x78, 0x92, 0xff, 0x0f, 0x1d, 0xba, 0x7a, 0x93, 0xa1, 0xb8, 0x65, 0x69, - 0x98, 0xa3, 0xcf, 0x75, 0x7d, 0x90, 0x43, 0xfc, 0x5c, 0xed, 0xf5, 0x6c, 0xeb, 0xa1, 0xde, 0x25, - 0xce, 0xae, 0xe9, 0xce, 0x4e, 0xb3, 0x35, 0x70, 0xb1, 0x43, 0xf5, 0x36, 0xa5, 0xcc, 0x06, 0x66, - 0x57, 0x75, 0x67, 0xa7, 0x4e, 0xe6, 0xca, 0x6f, 0x43, 0x36, 0x80, 0x18, 0x9d, 0x86, 0x14, 0x95, - 0x89, 0xae, 0x31, 0x0d, 0xd5, 0xe1, 0x60, 0xbf, 0x92, 0x24, 0x53, 0x8d, 0x55, 0x25, 0x49, 0xa6, - 0x1a, 0x1a, 0x91, 0x2e, 0xb6, 0x6d, 0xcb, 0x6e, 0x76, 0xb1, 0xe3, 0xa8, 0x1d, 0xa1, 0xb3, 0x1c, - 0x05, 0xde, 0x64, 0x30, 0x79, 0x0e, 0x66, 0x6f, 0x59, 0xe6, 0x21, 0x23, 0x90, 0x6d, 0x78, 0x6e, - 0x04, 0xce, 0x95, 0xfa, 0x0e, 0x14, 0x49, 0xae, 0xd1, 0x74, 0xb0, 0xad, 0x63, 0x87, 0xe5, 0x4c, - 0x94, 0x89, 0xec, 0xd2, 0x4b, 0x13, 0x49, 0x4a, 0x99, 0x21, 0x78, 0x36, 0x29, 0x1a, 0x3a, 0x21, - 0x4f, 0x43, 0xee, 0x8e, 0x83, 0x6d, 0x8f, 0x87, 0x8f, 0x20, 0xcf, 0xc7, 0x9c, 0x76, 0x03, 0x12, - 0xc4, 0xfb, 0xc5, 0x3d, 0x12, 0x45, 0x6f, 0x68, 0x23, 0x1d, 0x09, 0x65, 0x53, 0x0c, 0x65, 0x19, - 0xa6, 0x08, 0x90, 0x18, 0x3b, 0x01, 0x04, 0xfc, 0xd5, 0x1b, 0xcb, 0x77, 0x21, 0xbf, 0xb6, 0x87, - 0x4d, 0xdf, 0x33, 0x44, 0xdc, 0x90, 0x02, 0x71, 0xe3, 0x04, 0x64, 0x5c, 0xd5, 0xee, 0x60, 0x97, - 0x28, 0x83, 0xd9, 0x6f, 0x9a, 0x01, 0x1a, 0x1a, 0x71, 0x17, 0x43, 0xef, 0xea, 0xcc, 0x6c, 0x13, - 0x0a, 0x1b, 0xc8, 0x7f, 0x8d, 0xc1, 0xb4, 0x40, 0xcc, 0x4f, 0x76, 0x13, 0x92, 0x98, 0x42, 0xf8, - 0xd1, 0x6a, 0x11, 0x47, 0x1b, 0xde, 0xca, 0x86, 0xe2, 0x72, 0x64, 0x48, 0xca, 0x5f, 0x89, 0x41, - 0x82, 0xc2, 0x51, 0x1d, 0x32, 0x5e, 0x6a, 0xc8, 0xd5, 0x54, 0xae, 0xb2, 0xe4, 0xb1, 0x2a, 0x92, - 0xc7, 0xea, 0x96, 0x58, 0x51, 0x4f, 0x13, 0x34, 0x9f, 0x7c, 0x5e, 0x91, 0x14, 0x7f, 0x1b, 0xf1, - 0x40, 0x8a, 0xb7, 0x19, 0x08, 0x9a, 0x19, 0x0a, 0xd9, 0x22, 0x12, 0x78, 0x31, 0x28, 0x01, 0x96, - 0x54, 0xe5, 0x0e, 0xf6, 0x2b, 0xe9, 0x2d, 0x26, 0x85, 0xd5, 0x80, 0x3c, 0x96, 0x80, 0xf8, 0xb6, - 0x65, 0xbb, 0xc4, 0xc9, 0x74, 0x8d, 0x5d, 0x83, 0xf5, 0x99, 0x83, 0xfd, 0x4a, 0x56, 0x11, 0xf0, - 0xc6, 0xaa, 0x92, 0xf5, 0x16, 0x35, 0x34, 0x22, 0x74, 0xdd, 0xdc, 0xb6, 0x78, 0xc8, 0xa3, 0xdf, - 0x84, 0x24, 0x8b, 0x9f, 0x04, 0x09, 0xf1, 0x9b, 0x1c, 0x23, 0x79, 0x87, 0x02, 0x09, 0x49, 0x36, - 0xdd, 0xd0, 0xe4, 0x1f, 0x49, 0x50, 0xd8, 0xc4, 0xee, 0x9d, 0x06, 0x49, 0x26, 0x85, 0x22, 0xdf, - 0x01, 0xd8, 0xc1, 0x03, 0x16, 0xcc, 0x85, 0xc8, 0x2f, 0x47, 0x88, 0x7c, 0x14, 0x41, 0xf5, 0x06, - 0x1e, 0xd0, 0xa8, 0xef, 0xac, 0x99, 0xae, 0x3d, 0x50, 0x32, 0x3b, 0x62, 0x5c, 0xbe, 0x0a, 0xd3, - 0xc3, 0x93, 0x24, 0xc4, 0xef, 0xe0, 0x01, 0x37, 0x1a, 0xf2, 0x49, 0xcc, 0x82, 0xdd, 0x23, 0x44, - 0x96, 0x39, 0x85, 0x0d, 0x2e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0x49, 0x30, 0x95, 0x5c, 0x09, 0xaa, 0x64, 0x7a, - 0xe9, 0xf9, 0x90, 0x53, 0x13, 0xb4, 0x82, 0x5f, 0xee, 0xe6, 0x01, 0x35, 0xf4, 0x20, 0x7b, 0xdd, - 0x6a, 0x79, 0x56, 0xee, 0xa5, 0x96, 0x52, 0x20, 0xb5, 0x24, 0xc5, 0xa3, 0x17, 0x55, 0x68, 0xf1, - 0xc8, 0x46, 0xe8, 0x15, 0x6e, 0x6a, 0x71, 0x4a, 0xbc, 0x12, 0x24, 0xbe, 0x6b, 0x54, 0x69, 0x6f, - 0x93, 0xf5, 0x39, 0xab, 0x24, 0xa5, 0x63, 0xb6, 0x28, 0x7f, 0x35, 0x01, 0x39, 0x46, 0x92, 0xab, - 0x6f, 0x0d, 0xa6, 0xc8, 0x2a, 0xae, 0xb8, 0x73, 0x11, 0x62, 0x0f, 0x6e, 0x23, 0x03, 0xae, 0x48, - 0xba, 0xbd, 0xfc, 0xe9, 0x14, 0xc4, 0xaf, 0x5b, 0x2d, 0x34, 0x07, 0x31, 0x1e, 0x96, 0xe2, 0xf5, - 0xe4, 0xc1, 0x7e, 0x25, 0xd6, 0x58, 0x55, 0x62, 0xba, 0xf6, 0x74, 0x7e, 0x31, 0x94, 0xc9, 0x4f, - 0x0d, 0x67, 0xf2, 0xc8, 0x82, 0xe9, 0xa1, 0x16, 0x04, 0xab, 0xed, 0xf2, 0xf5, 0x6b, 0x07, 0xfb, - 0x95, 0x7c, 0xb0, 0x07, 0x31, 0xfe, 0x05, 0xe1, 0xec, 0x1a, 0xe4, 0x1f, 0xa9, 0x8a, 0xab, 0x8d, - 0x55, 0x25, 0x1f, 0xec, 0x5d, 0x38, 0x01, 0x3d, 0x24, 0x87, 0xf4, 0x70, 0x19, 0x52, 0xac, 0x8f, - 0xa3, 0xd1, 0x5a, 0x3c, 0x3a, 0x0d, 0x9a, 0xa2, 0x29, 0x90, 0xd8, 0x40, 0xf6, 0x3a, 0xae, 0x6a, - 0x93, 0xbd, 0xe9, 0x71, 0xf7, 0xf2, 0x0d, 0xe8, 0x2a, 0xa4, 0xb7, 0x75, 0x53, 0x77, 0xee, 0x63, - 0xad, 0x94, 0x19, 0x73, 0xb3, 0xb7, 0x83, 0xec, 0xee, 0x5a, 0x9a, 0xbe, 0xad, 0x63, 0xad, 0x04, - 0xe3, 0xee, 0x16, 0x3b, 0x48, 0x0e, 0xb3, 0x6d, 0xab, 0xb4, 0x4d, 0xd1, 0x6c, 0x5b, 0xdd, 0x9e, - 0x81, 0xc9, 0x11, 0xb2, 0x0b, 0xd2, 0x62, 0x4c, 0x29, 0x8a, 0x99, 0x15, 0x31, 0x41, 0x0c, 0x9b, - 0x56, 0xa8, 0xa5, 0x1c, 0x8b, 0x95, 0x74, 0x20, 0x23, 0x28, 0x6c, 0x58, 0x6d, 0xd6, 0x03, 0x17, - 0x21, 0xe6, 0x1f, 0x12, 0x14, 0x03, 0x40, 0xaf, 0x40, 0xcd, 0x18, 0x02, 0x38, 0x46, 0xc3, 0xf1, - 0x10, 0x02, 0x0f, 0x22, 0xe2, 0xb9, 0x87, 0xad, 0xfc, 0x35, 0x09, 0xd2, 0x62, 0x16, 0x9d, 0x82, - 0x1c, 0x99, 0x31, 0x74, 0x77, 0xd0, 0xf4, 0xc3, 0x6f, 0x56, 0xc0, 0x6e, 0xe0, 0x01, 0x7a, 0x1e, - 0xa6, 0xbd, 0x25, 0xbe, 0xf3, 0x67, 0x94, 0xbc, 0x80, 0xb2, 0xdb, 0xa1, 0x0c, 0x69, 0x43, 0x75, - 0x75, 0xb7, 0xaf, 0x31, 0x07, 0x95, 0x14, 0x6f, 0x8c, 0x4e, 0x92, 0xd3, 0x98, 0x1d, 0x36, 0x39, - 0x45, 0x27, 0x7d, 0x80, 0x5c, 0x87, 0x19, 0x45, 0x35, 0x3b, 0x78, 0xc3, 0xea, 0x88, 0xb8, 0x70, - 0x1c, 0xd2, 0xac, 0xe9, 0x22, 0x5c, 0x4b, 0x49, 0xd1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xab, 0xd3, 0x24, 0xe8, 0xdd, 0x52, + 0x82, 0xda, 0xff, 0xdf, 0x3e, 0xcb, 0xfe, 0x87, 0x2e, 0x5d, 0xb9, 0xcd, 0x50, 0xdc, 0xb1, 0x75, + 0xcc, 0xd1, 0xe7, 0xba, 0x01, 0xc8, 0x25, 0x76, 0xae, 0xf5, 0x7a, 0x8e, 0xfd, 0xc8, 0xe8, 0x12, + 0x63, 0xd7, 0x0d, 0x77, 0xbb, 0xd9, 0x1a, 0x78, 0xd8, 0xa5, 0x72, 0x9b, 0x52, 0x67, 0x43, 0xb3, + 0x75, 0xc3, 0xdd, 0xae, 0x91, 0x39, 0xf9, 0x7d, 0xc8, 0x86, 0x10, 0xa3, 0x33, 0x90, 0xa2, 0x3c, + 0x31, 0x74, 0x26, 0xa1, 0x1a, 0xec, 0xef, 0x95, 0x93, 0x64, 0xaa, 0x51, 0x57, 0x93, 0x64, 0xaa, + 0xa1, 0x13, 0xee, 0x62, 0xc7, 0xb1, 0x9d, 0x66, 0x17, 0xbb, 0xae, 0xd6, 0x11, 0x32, 0xcb, 0x51, + 0xe0, 0x6d, 0x06, 0x53, 0xe6, 0x60, 0xf6, 0x8e, 0x6d, 0x1d, 0x50, 0x02, 0xc5, 0x81, 0x17, 0x46, + 0xe0, 0x5c, 0xa8, 0x1f, 0x40, 0x91, 0xc4, 0x1a, 0x4d, 0x17, 0x3b, 0x06, 0x76, 0x59, 0xcc, 0x44, + 0x89, 0xc8, 0x2e, 0xbd, 0x76, 0x28, 0x4e, 0xa9, 0x33, 0x04, 0xcf, 0x06, 0x45, 0x43, 0x27, 0x94, + 0x69, 0xc8, 0xdd, 0x75, 0xb1, 0xe3, 0xd3, 0xf0, 0x19, 0xe4, 0xf9, 0x98, 0x9f, 0xdd, 0x80, 0x04, + 0xb1, 0x7e, 0xf1, 0x8e, 0x44, 0x9d, 0x37, 0xb4, 0x91, 0x8e, 0x84, 0xb0, 0x29, 0x06, 0x59, 0x81, + 0x29, 0x02, 0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46, 0xa5, 0x10, 0xc9, + 0x96, 0x6d, 0x31, 0x02, 0x29, 0x11, 0x8f, 0x20, 0xc9, 0x3a, 0x48, 0x68, 0x71, 0x82, 0x26, 0x13, + 0xa3, 0xe3, 0xd5, 0x89, 0xdb, 0x51, 0xca, 0x49, 0x4a, 0xc0, 0x71, 0x54, 0x0c, 0x11, 0xc0, 0x72, + 0x00, 0x6a, 0x8f, 0x7e, 0x77, 0x23, 0xd2, 0x1e, 0x47, 0xfb, 0x2d, 0x91, 0xf6, 0x78, 0xb0, 0x61, + 0xc2, 0xed, 0x51, 0x09, 0xd3, 0xd0, 0x37, 0x88, 0xb8, 0xae, 0x4a, 0xe7, 0xd0, 0xe7, 0x12, 0x64, + 0xd6, 0x26, 0x22, 0x63, 0xed, 0x30, 0x64, 0x1c, 0x68, 0x27, 0x8c, 0x65, 0x05, 0x23, 0x03, 0x7d, + 0x02, 0x29, 0xde, 0x1c, 0x40, 0x51, 0xbc, 0x1d, 0x6e, 0x3e, 0xc8, 0xe7, 0x26, 0x59, 0xca, 0x0f, + 0x97, 0xe9, 0xe1, 0xb3, 0x08, 0x85, 0x0e, 0xe7, 0x4d, 0x08, 0xf4, 0xcf, 0x12, 0xa4, 0x45, 0xdd, + 0x0f, 0x9d, 0x9b, 0xa8, 0x38, 0xc8, 0x08, 0x38, 0x7f, 0x88, 0x42, 0xa2, 0x72, 0x8a, 0x52, 0xf0, + 0x02, 0x3a, 0x1e, 0xa2, 0xc0, 0x15, 0xa7, 0x3e, 0x82, 0x24, 0xab, 0x21, 0x46, 0x6a, 0xe1, 0x50, + 0xdd, 0x31, 0x52, 0x0b, 0x47, 0x0a, 0x92, 0xe3, 0x58, 0xff, 0x80, 0x9d, 0x47, 0x2e, 0x2f, 0xaa, + 0x6c, 0x91, 0x97, 0x1f, 0xa9, 0x68, 0x46, 0x5e, 0x7e, 0xb4, 0xcc, 0x38, 0xf6, 0xf2, 0xa2, 0x8a, + 0x89, 0x7a, 0x30, 0x75, 0xd3, 0x6e, 0xb9, 0xe8, 0x95, 0x67, 0x56, 0xd0, 0xd8, 0xc9, 0x67, 0x27, + 0xac, 0xb4, 0x29, 0x27, 0xe8, 0xa9, 0x45, 0x34, 0x13, 0x3a, 0xf5, 0x23, 0x72, 0x12, 0x31, 0x3d, + 0xbf, 0xd2, 0x11, 0xa9, 0xf3, 0xa3, 0x55, 0x96, 0x48, 0x9d, 0x3f, 0x50, 0x3c, 0x19, 0xfb, 0x14, + 0xfa, 0x05, 0x14, 0x4a, 0x86, 0x9f, 0xfd, 0x45, 0x92, 0x31, 0x9a, 0xb2, 0x46, 0x92, 0x71, 0x20, + 0x6b, 0x1d, 0x4b, 0x06, 0xcd, 0x5a, 0x49, 0xd2, 0x8a, 0x06, 0x90, 0xa0, 0xd1, 0x4b, 0x64, 0x38, + 0x12, 0x6e, 0xa4, 0x45, 0x86, 0x23, 0x43, 0x3d, 0x32, 0x21, 0x78, 0x25, 0x1c, 0x8e, 0xd0, 0x6e, + 0xc5, 0x55, 0xe9, 0xdc, 0xeb, 0x12, 0x7a, 0x08, 0xb9, 0x70, 0x37, 0x27, 0xf2, 0x9d, 0x1d, 0xd3, + 0xde, 0x92, 0xdf, 0x38, 0x52, 0x9b, 0x48, 0x39, 0x86, 0xfe, 0x45, 0x02, 0x74, 0x70, 0x01, 0xba, + 0x7c, 0x48, 0x7c, 0xcf, 0x49, 0xc5, 0xff, 0x4b, 0x90, 0x16, 0x45, 0x8c, 0x48, 0xe3, 0x1b, 0x29, + 0x6b, 0x45, 0x1a, 0xdf, 0x68, 0x55, 0x44, 0x79, 0x9b, 0xca, 0xe0, 0xcd, 0x21, 0xe3, 0xa3, 0x45, + 0x30, 0xd3, 0xee, 0xdc, 0x5f, 0x40, 0xf3, 0x63, 0xc0, 0xd5, 0xc7, 0xa2, 0x6a, 0xf6, 0x29, 0x09, + 0xd8, 0x0a, 0xa3, 0xe1, 0x3c, 0x5a, 0x3a, 0x54, 0xec, 0xcf, 0x88, 0xbe, 0x74, 0x84, 0x7c, 0x41, + 0x79, 0x89, 0x12, 0x3f, 0x8f, 0x4e, 0x8f, 0x04, 0x1d, 0x4d, 0x3d, 0x4c, 0xce, 0x27, 0x90, 0xe2, + 0xd9, 0x42, 0xe4, 0x03, 0x32, 0x9c, 0x63, 0x44, 0x3e, 0x20, 0x23, 0xc9, 0xc7, 0xd8, 0x07, 0x84, + 0xe7, 0x12, 0x35, 0xe5, 0xc9, 0xef, 0xe6, 0x8f, 0x3d, 0xd9, 0x9f, 0x97, 0x7e, 0xbe, 0x3f, 0x2f, + 0xfd, 0x6a, 0x7f, 0x5e, 0xfa, 0xed, 0xfe, 0xbc, 0xf4, 0xe5, 0x37, 0xf3, 0xc7, 0xee, 0xa7, 0x05, + 0xbe, 0x56, 0x92, 0x96, 0x86, 0x2f, 0xfd, 0x25, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x5e, 0x22, 0xf0, + 0xae, 0x2d, 0x00, 0x00, } diff --git a/pkg/server/serverpb/admin.pb.gw.go b/pkg/server/serverpb/admin.pb.gw.go index 0a184f81898f..f222a8882bbd 100644 --- a/pkg/server/serverpb/admin.pb.gw.go +++ b/pkg/server/serverpb/admin.pb.gw.go @@ -366,11 +366,11 @@ func request_Admin_RangeLog_1(ctx context.Context, marshaler runtime.Marshaler, } -func request_Admin_ReplicaMatrix_0(ctx context.Context, marshaler runtime.Marshaler, client AdminClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ReplicaMatrixRequest +func request_Admin_DataDistribution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq DataDistributionRequest var metadata runtime.ServerMetadata - msg, err := client.ReplicaMatrix(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.DataDistribution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } @@ -973,7 +973,7 @@ func RegisterAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Admin_ReplicaMatrix_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Admin_DataDistribution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() if cn, ok := w.(http.CloseNotifier); ok { @@ -991,14 +991,14 @@ func RegisterAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Admin_ReplicaMatrix_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Admin_DataDistribution_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Admin_ReplicaMatrix_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Admin_DataDistribution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1073,7 +1073,7 @@ var ( pattern_Admin_RangeLog_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"_admin", "v1", "rangelog", "range_id"}, "")) - pattern_Admin_ReplicaMatrix_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"_admin", "v1", "replica_matrix"}, "")) + pattern_Admin_DataDistribution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"_admin", "v1", "data_distribution"}, "")) pattern_Admin_Queries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"_admin", "v1", "queries"}, "")) ) @@ -1117,7 +1117,7 @@ var ( forward_Admin_RangeLog_1 = runtime.ForwardResponseMessage - forward_Admin_ReplicaMatrix_0 = runtime.ForwardResponseMessage + forward_Admin_DataDistribution_0 = runtime.ForwardResponseMessage forward_Admin_Queries_0 = runtime.ForwardResponseMessage ) diff --git a/pkg/server/serverpb/admin.proto b/pkg/server/serverpb/admin.proto index 1434be2a0a40..842fc5c908a5 100644 --- a/pkg/server/serverpb/admin.proto +++ b/pkg/server/serverpb/admin.proto @@ -515,10 +515,10 @@ message QueryPlanResponse { string distsql_physical_query_plan = 1 [(gogoproto.customname) = "DistSQLPhysicalQueryPlan"]; } -message ReplicaMatrixRequest { +message DataDistributionRequest { } -message ReplicaMatrixResponse { +message DataDistributionResponse { message ZoneConfig { // cli_specifier is ".default" for the default zone config. // Otherwise, it's of the form [database.]table[@index[.partition]] @@ -729,9 +729,9 @@ service Admin { }; } - rpc ReplicaMatrix(ReplicaMatrixRequest) returns (ReplicaMatrixResponse) { + rpc DataDistribution(DataDistributionRequest) returns (DataDistributionResponse) { option (google.api.http) = { - get: "/_admin/v1/replica_matrix" + get: "/_admin/v1/data_distribution" }; } From 721de4c73223cd6e89ff8d73a8627a09943e4e79 Mon Sep 17 00:00:00 2001 From: Pete Vilter Date: Mon, 4 Dec 2017 18:45:43 -0500 Subject: [PATCH 2/2] ui: add data distribution screen (aka replica matrix) with collapsible tree matrix widget Release note (admin ui change): Add "data distribution" debug page, showing how table data is distributed across nodes, as well as the zone configs which are affecting that distribution. --- pkg/ui/src/index.tsx | 4 + pkg/ui/src/redux/apiReducers.ts | 9 + pkg/ui/src/util/api.ts | 7 + pkg/ui/src/util/docs.ts | 1 + .../containers/dataDistribution/index.styl | 11 + .../containers/dataDistribution/index.tsx | 216 ++++++++ .../dataDistribution/replicaMatrix.styl | 43 ++ .../dataDistribution/replicaMatrix.tsx | 198 +++++++ .../containers/dataDistribution/tree.spec.ts | 269 ++++++++++ .../containers/dataDistribution/tree.ts | 498 ++++++++++++++++++ .../views/reports/containers/debug/index.tsx | 6 +- 11 files changed, 1261 insertions(+), 1 deletion(-) create mode 100644 pkg/ui/src/views/cluster/containers/dataDistribution/index.styl create mode 100644 pkg/ui/src/views/cluster/containers/dataDistribution/index.tsx create mode 100644 pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.styl create mode 100644 pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.tsx create mode 100644 pkg/ui/src/views/cluster/containers/dataDistribution/tree.spec.ts create mode 100644 pkg/ui/src/views/cluster/containers/dataDistribution/tree.ts diff --git a/pkg/ui/src/index.tsx b/pkg/ui/src/index.tsx index 3b7c5a735250..ab5924987dbc 100644 --- a/pkg/ui/src/index.tsx +++ b/pkg/ui/src/index.tsx @@ -33,6 +33,7 @@ import Layout from "src/views/app/containers/layout"; import { DatabaseTablesList, DatabaseGrantsList } from "src/views/databases/containers/databases"; import TableDetails from "src/views/databases/containers/tableDetails"; import { EventPage } from "src/views/cluster/containers/events"; +import DataDistributionPage from "src/views/cluster/containers/dataDistribution"; import Raft from "src/views/devtools/containers/raft"; import RaftRanges from "src/views/devtools/containers/raftRanges"; import RaftMessages from "src/views/devtools/containers/raftMessages"; @@ -122,6 +123,9 @@ ReactDOM.render( + { /* data distribution */ } + + { /* debug pages */ } diff --git a/pkg/ui/src/redux/apiReducers.ts b/pkg/ui/src/redux/apiReducers.ts index 055eb553b20b..582fb24178ad 100644 --- a/pkg/ui/src/redux/apiReducers.ts +++ b/pkg/ui/src/redux/apiReducers.ts @@ -248,6 +248,13 @@ const queriesReducerObj = new CachedDataReducer( ); export const refreshQueries = queriesReducerObj.refresh; +const dataDistributionReducerObj = new CachedDataReducer( + api.getDataDistribution, + "dataDistribution", + moment.duration(1, "m"), +); +export const refreshDataDistribution = dataDistributionReducerObj.refresh; + export interface APIReducersState { cluster: CachedDataReducerState; events: CachedDataReducerState; @@ -274,6 +281,7 @@ export interface APIReducersState { settings: CachedDataReducerState; stores: KeyedCachedDataReducerState; queries: CachedDataReducerState; + dataDistribution: CachedDataReducerState; } export const apiReducersReducer = combineReducers({ @@ -302,6 +310,7 @@ export const apiReducersReducer = combineReducers({ [settingsReducerObj.actionNamespace]: settingsReducerObj.reducer, [storesReducerObj.actionNamespace]: storesReducerObj.reducer, [queriesReducerObj.actionNamespace]: queriesReducerObj.reducer, + [dataDistributionReducerObj.actionNamespace]: dataDistributionReducerObj.reducer, }); export { CachedDataReducerState, KeyedCachedDataReducerState }; diff --git a/pkg/ui/src/util/api.ts b/pkg/ui/src/util/api.ts index 3330c6f7b3d0..78be246f54af 100644 --- a/pkg/ui/src/util/api.ts +++ b/pkg/ui/src/util/api.ts @@ -96,6 +96,8 @@ export type UserLogoutResponseMessage = protos.cockroach.server.serverpb.UserLog export type QueriesResponseMessage = protos.cockroach.server.serverpb.QueriesResponse; +export type DataDistributionResponseMessage = protos.cockroach.server.serverpb.DataDistributionResponse; + // API constants export const API_PREFIX = "_admin/v1"; @@ -337,3 +339,8 @@ export function getStores(req: StoresRequestMessage, timeout?: moment.Duration): export function getQueries(timeout?: moment.Duration): Promise { return timeoutFetch(serverpb.QueriesResponse, `${API_PREFIX}/queries`, null, timeout); } + +// getDataDistribution returns information about how replicas are distributed across nodes. +export function getDataDistribution(timeout?: moment.Duration): Promise { + return timeoutFetch(serverpb.DataDistributionResponse, `${API_PREFIX}/data_distribution`, null, timeout); +} diff --git a/pkg/ui/src/util/docs.ts b/pkg/ui/src/util/docs.ts index 4cb7fef85463..60492e558711 100644 --- a/pkg/ui/src/util/docs.ts +++ b/pkg/ui/src/util/docs.ts @@ -12,6 +12,7 @@ export const startFlags = docsURL("start-a-node.html#flags"); export const pauseJob = docsURL("pause-job.html"); export const cancelJob = docsURL("cancel-job.html"); export const enableNodeMap = docsURL("enable-node-map.html"); +export const configureReplicationZones = docsURL("configure-replication-zones.html"); // Note that these explicitly don't use the current version, since we want to // link to the most up-to-date documentation available. diff --git a/pkg/ui/src/views/cluster/containers/dataDistribution/index.styl b/pkg/ui/src/views/cluster/containers/dataDistribution/index.styl new file mode 100644 index 000000000000..3f0834e34117 --- /dev/null +++ b/pkg/ui/src/views/cluster/containers/dataDistribution/index.styl @@ -0,0 +1,11 @@ +.data-distribution + display: flex + + &__zone-config-sidebar + padding-right 20px + +.zone-config + padding-top 10px + + &__raw-yaml + padding-top 5px diff --git a/pkg/ui/src/views/cluster/containers/dataDistribution/index.tsx b/pkg/ui/src/views/cluster/containers/dataDistribution/index.tsx new file mode 100644 index 000000000000..cdeb6de3139c --- /dev/null +++ b/pkg/ui/src/views/cluster/containers/dataDistribution/index.tsx @@ -0,0 +1,216 @@ +import _ from "lodash"; +import React from "react"; +import { createSelector } from "reselect"; +import { connect } from "react-redux"; +import Helmet from "react-helmet"; + +import Loading from "src/views/shared/components/loading"; +import spinner from "assets/spinner.gif"; +import { ToolTipWrapper } from "src/views/shared/components/toolTip"; +import * as docsURL from "src/util/docs"; +import { FixLong } from "src/util/fixLong"; +import { cockroach } from "src/js/protos"; +import { AdminUIState } from "src/redux/state"; +import { refreshDataDistribution, refreshNodes, refreshLiveness } from "src/redux/apiReducers"; +import { LocalityTree, selectLocalityTree } from "src/redux/localities"; +import ReplicaMatrix, { SchemaObject } from "./replicaMatrix"; +import { TreeNode, TreePath } from "./tree"; +import "./index.styl"; + +type DataDistributionResponse = cockroach.server.serverpb.DataDistributionResponse; +type NodeDescriptor = cockroach.roachpb.NodeDescriptor$Properties; +type ZoneConfig$Properties = cockroach.server.serverpb.DataDistributionResponse.ZoneConfig$Properties; + +const ZONE_CONFIG_TEXT = ( + + Zone configurations + (see documentation) + control how CockroachDB distributes data across nodes. + +); + +interface DataDistributionProps { + dataDistribution: DataDistributionResponse; + localityTree: LocalityTree; + sortedZoneConfigs: ZoneConfig$Properties[]; +} + +class DataDistribution extends React.Component { + + renderZoneConfigs() { + return ( +
+
    + {this.props.sortedZoneConfigs.map((zoneConfig) => ( +
  • +

    {zoneConfig.cli_specifier}

    +
    +                {zoneConfig.config_yaml}
    +              
    +
  • + ))} +
+
+ ); + } + + getCellValue = (dbPath: TreePath, nodePath: TreePath): number => { + const [dbName, tableName] = dbPath; + const nodeID = nodePath[nodePath.length - 1]; + const databaseInfo = this.props.dataDistribution.database_info; + + const res = databaseInfo[dbName].table_info[tableName].replica_count_by_node_id[nodeID]; + if (!res) { + return 0; + } + return FixLong(res).toInt(); + } + + render() { + const nodeTree = nodeTreeFromLocalityTree("Cluster", this.props.localityTree); + + const databaseInfo = this.props.dataDistribution.database_info; + const dbTree: TreeNode = { + name: "Cluster", + data: { dbName: null, tableName: null }, + children: _.map(databaseInfo, (dbInfo, dbName) => ({ + name: dbName, + data: { dbName }, + children: _.map(dbInfo.table_info, (_tableInfo, tableName) => ({ + name: tableName, + data: { dbName, tableName }, + })), + })), + }; + + return ( +
+
+

+ Zone Configs{" "} +
+ +
+
i
+
+
+
+

+ {this.renderZoneConfigs()} +
+
+ +
+
+ ); + } +} + +interface DataDistributionPageProps { + dataDistribution: DataDistributionResponse; + localityTree: LocalityTree; + sortedZoneConfigs: ZoneConfig$Properties[]; + refreshDataDistribution: typeof refreshDataDistribution; + refreshNodes: typeof refreshNodes; + refreshLiveness: typeof refreshLiveness; +} + +class DataDistributionPage extends React.Component { + + componentDidMount() { + this.props.refreshDataDistribution(); + this.props.refreshNodes(); + this.props.refreshLiveness(); + } + + componentWillReceiveProps() { + this.props.refreshDataDistribution(); + this.props.refreshNodes(); + this.props.refreshLiveness(); + } + + render() { + return ( +
+ + Data Distribution + +
+

Data Distribution

+
+
+ + + +
+
+ ); + } +} + +const sortedZoneConfigs = createSelector( + (state: AdminUIState) => state.cachedData.dataDistribution, + (dataDistributionState) => { + if (!dataDistributionState.data) { + return null; + } + return _.sortBy(dataDistributionState.data.zone_configs, (zc) => zc.cli_specifier); + }, +); + +// tslint:disable-next-line:variable-name +const DataDistributionPageConnected = connect( + (state: AdminUIState) => ({ + dataDistribution: state.cachedData.dataDistribution.data, + sortedZoneConfigs: sortedZoneConfigs(state), + localityTree: selectLocalityTree(state), + }), + { + refreshDataDistribution, + refreshNodes, + refreshLiveness, + }, +)(DataDistributionPage); + +export default DataDistributionPageConnected; + +// Helpers + +function nodeTreeFromLocalityTree( + rootName: string, + localityTree: LocalityTree, +): TreeNode { + const children: TreeNode[] = []; + + // Add child localities. + _.forEach(localityTree.localities, (valuesForKey, key) => { + _.forEach(valuesForKey, (subLocalityTree, value) => { + children.push(nodeTreeFromLocalityTree(`${key}=${value}`, subLocalityTree)); + }); + }); + + // Add child nodes. + _.forEach(localityTree.nodes, (node) => { + children.push({ + name: node.desc.node_id.toString(), + data: node.desc, + }); + }); + + return { + name: rootName, + children: children, + }; +} diff --git a/pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.styl b/pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.styl new file mode 100644 index 000000000000..abf832ed856a --- /dev/null +++ b/pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.styl @@ -0,0 +1,43 @@ +.matrix + background-color white + border-collapse collapse + border-bottom 1px solid lightgrey + border-top 1px solid lightgrey + + thead + border-bottom 1px solid black + + th, td + padding 5px + border-left 1px solid lightgrey + border-right 1px solid lightgrey + + td.value + text-align center + + &__metric-label + font-style italic + + &__row--internal-node + cursor pointer + + &__row--internal-node:hover + background-color rgb(240, 240, 240) + + &__row-header + text-align left + + &__row-header--internal-node + font-weight bold + + &__column-header + font-weight bold + + &__column-header--internal-node + cursor pointer + + &__column-header--internal-node:hover + background-color rgb(240, 240, 240) + + &__cell-value + text-align right diff --git a/pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.tsx b/pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.tsx new file mode 100644 index 000000000000..f0f5392600dd --- /dev/null +++ b/pkg/ui/src/views/cluster/containers/dataDistribution/replicaMatrix.tsx @@ -0,0 +1,198 @@ +import _ from "lodash"; +import React, { Component } from "react"; +import classNames from "classnames"; + +import { + TreeNode, + TreePath, + layoutTreeHorizontal, + flatten, + sumValuesUnderPaths, + LayoutCell, + FlattenedNode, +} from "./tree"; +import { cockroach } from "src/js/protos"; +import NodeDescriptor$Properties = cockroach.roachpb.NodeDescriptor$Properties; +import "./replicaMatrix.styl"; + +const DOWN_ARROW = "▼"; +const SIDE_ARROW = "▶"; + +interface ReplicaMatrixState { + collapsedRows: TreePath[]; + collapsedCols: TreePath[]; +} + +interface ReplicaMatrixProps { + cols: TreeNode; + rows: TreeNode; + getValue: (rowPath: TreePath, colPath: TreePath) => number; +} + +// Amount to indent for a row each level of depth in the tree. +const ROW_TREE_INDENT_PX = 18; +// Margin for all rows in the matrix. Strangely, s can't have margins +// applied in CSS. +const ROW_LEFT_MARGIN_PX = 5; + +class ReplicaMatrix extends Component { + + constructor(props: ReplicaMatrixProps) { + super(props); + this.state = { + collapsedRows: [["system"], ["defaultdb"], ["postgres"]], + collapsedCols: [], + }; + } + + expandRow = (path: TreePath) => { + this.setState({ + collapsedRows: this.state.collapsedRows.filter((tp) => !_.isEqual(tp, path)), + }); + } + + collapseRow = (path: TreePath) => { + this.setState({ + collapsedRows: [...this.state.collapsedRows, path], + }); + } + + expandCol = (path: TreePath) => { + this.setState({ + collapsedCols: this.state.collapsedCols.filter((tp) => !_.isEqual(tp, path)), + }); + } + + collapseCol = (path: TreePath) => { + this.setState({ + collapsedCols: [...this.state.collapsedCols, path], + }); + } + + colLabel(col: LayoutCell): string { + if (col.isPlaceholder) { + return null; + } + + if (col.isLeaf) { + return `n${col.data.node_id}`; + } + + const arrow = col.isCollapsed ? SIDE_ARROW : DOWN_ARROW; + const localityLabel = col.path.length === 0 ? "Cluster" : col.path[col.path.length - 1]; + return `${arrow} ${localityLabel}`; + } + + rowLabel(row: FlattenedNode): string { + if (row.isLeaf) { + return row.data.tableName; + } + + const arrow = row.isCollapsed ? SIDE_ARROW : DOWN_ARROW; + const label = row.data.dbName ? `DB: ${row.data.dbName}` : "Cluster"; + + return `${arrow} ${label}`; + } + + render() { + const { + cols, + rows, + getValue, + } = this.props; + const { + collapsedRows, + collapsedCols, + } = this.state; + + const flattenedRows = flatten(rows, collapsedRows, true /* includeNodes */); + const headerRows = layoutTreeHorizontal(cols, collapsedCols); + const flattenedCols = flatten(cols, collapsedCols, false /* includeNodes */); + + return ( + + + {headerRows.map((row, idx) => ( + + {idx === 0 + ? + : + ))} + + ))} + + + {flattenedRows.map((row) => { + return ( + ( + row.isCollapsed + ? this.expandRow(row.path) + : this.collapseRow(row.path) + )} + > + + {flattenedCols.map((col) => { + return ( + + ); + })} + + ); + })} + +
# Replicas} + {row.map((col) => ( + ( + col.isCollapsed + ? this.expandCol(col.path) + : this.collapseCol(col.path) + )} + > + {this.colLabel(col)} +
+ {this.rowLabel(row)} + + {row.isLeaf || row.isCollapsed + ? emptyIfZero(sumValuesUnderPaths(rows, cols, row.path, col.path, getValue)) + : null} +
+ ); + } + +} + +function emptyIfZero(n: number): string { + if (n === 0) { + return ""; + } + return `${n}`; +} + +export default ReplicaMatrix; + +export interface SchemaObject { + dbName?: string; + tableName?: string; +} diff --git a/pkg/ui/src/views/cluster/containers/dataDistribution/tree.spec.ts b/pkg/ui/src/views/cluster/containers/dataDistribution/tree.spec.ts new file mode 100644 index 000000000000..42d8e807fd31 --- /dev/null +++ b/pkg/ui/src/views/cluster/containers/dataDistribution/tree.spec.ts @@ -0,0 +1,269 @@ +import { assert } from "chai"; + +import { + flatten, layoutTreeHorizontal, sumValuesUnderPaths, TreePath, LayoutCell, +} from "./tree"; + +describe("tree", () => { + + describe("layoutTreeHorizontal", () => { + + it("lays out a simple tree", () => { + const tree = { + name: "a", data: "a", + children: [ + { name: "b", data: "b" }, + { name: "c", data: "c" }, + ], + }; + + // | a | + // | b | c | + const expectedLayout: LayoutCell[][] = [ + [ { width: 2, data: "a", path: [], isCollapsed: false, isPlaceholder: false, isLeaf: false } ], + [ + { width: 1, path: ["b"], data: "b", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["c"], data: "c", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + ], + ]; + assert.deepEqual(layoutTreeHorizontal(tree, []), expectedLayout); + }); + + it("lays out a tree of inconsistent depth, inserting a placeholder", () => { + const tree = { + name: "a", data: "a", + children: [ + { name: "b", data: "b" }, + { + name: "c", data: "c", + children: [ + { name: "d", data: "d" }, + { name: "e", data: "e" }, + ], + }, + ], + }; + + // | a | + // |

| c | + // | b | d | e | + const expectedLayout = [ + [ { width: 3, data: "a", path: [], isCollapsed: false, isPlaceholder: false, isLeaf: false } ], + [ { width: 1, path: ["b"], data: "b", isCollapsed: false, isPlaceholder: true, isLeaf: false }, + { width: 2, data: "c", path: ["c" ], isCollapsed: false, isPlaceholder: false, isLeaf: false }, + ], + [ { width: 1, path: ["b"], data: "b", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["c", "d"], data: "d", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["c", "e"], data: "e", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + ], + ]; + const actualLayout = layoutTreeHorizontal(tree, []); + assert.deepEqual(actualLayout, expectedLayout); + }); + + it("inserts placeholders under a collapsed node, if other subtrees are deeper", () => { + const tree = { + name: "a", data: "a", + children: [ + { name: "b", data: "b", + children: [ + { name: "c", data: "c" }, + { name: "d", data: "d" }, + ], + }, + { + name: "e", data: "e", + children: [ + { name: "f", data: "f" }, + { name: "g", data: "g" }, + ], + }, + ], + }; + + // Without anything collapsed: + // | a | + // | b | e | + // | c | d | f | g | + const expectedLayout = [ + [ { width: 4, data: "a", path: [], isCollapsed: false, isPlaceholder: false, isLeaf: false } ], + [ { width: 2, path: ["b"], data: "b", isCollapsed: false, isPlaceholder: false, isLeaf: false }, + { width: 2, path: ["e"], data: "e", isCollapsed: false, isPlaceholder: false, isLeaf: false }, + ], + [ { width: 1, path: ["b", "c"], data: "c", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["b", "d"], data: "d", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["e", "f"], data: "f", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["e", "g"], data: "g", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + ], + ]; + const actualLayout = layoutTreeHorizontal(tree, []); + assert.deepEqual(actualLayout, expectedLayout); + + // Collapse e: + // | a | + // | b | e | + // | c | d |

| + const expectedLayoutCollapseE = [ + [ { width: 3, data: "a", path: [], isCollapsed: false, isPlaceholder: false, isLeaf: false } ], + [ { width: 2, path: ["b"], data: "b", isCollapsed: false, isPlaceholder: false, isLeaf: false }, + { width: 1, path: ["e"], data: "e", isCollapsed: true, isPlaceholder: false, isLeaf: false }, + ], + [ { width: 1, path: ["b", "c"], data: "c", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["b", "d"], data: "d", isCollapsed: false, isPlaceholder: false, isLeaf: true }, + { width: 1, path: ["e"], data: "e", isCollapsed: false, isPlaceholder: true, isLeaf: false }, + ], + ]; + const actualLayoutCollapseE = layoutTreeHorizontal(tree, [["e"]]); + assert.deepEqual(actualLayoutCollapseE, expectedLayoutCollapseE); + + // Collapse e and b: + // | a | + // | b | e | + const expectedLayoutCollapseBE: LayoutCell[][] = [ + [ { width: 2, data: "a", path: [], isCollapsed: false, isPlaceholder: false, isLeaf: false } ], + [ { width: 1, path: ["b"], data: "b", isCollapsed: true, isPlaceholder: false, isLeaf: false }, + { width: 1, path: ["e"], data: "e", isCollapsed: true, isPlaceholder: false, isLeaf: false }, + ], + ]; + const actualLayoutCollapseBE = layoutTreeHorizontal(tree, [["b"], ["e"]]); + assert.deepEqual(actualLayoutCollapseBE, expectedLayoutCollapseBE); + + }); + + }); + + describe("flatten", () => { + + const tree = { + name: "a", data: "a", + children: [ + { name: "b", data: "b", + children: [ + { name: "c", data: "c" }, + { name: "d", data: "d" }, + ], + }, + { + name: "e", data: "e", + children: [ + { name: "f", data: "f" }, + { name: "g", data: "g" }, + ], + }, + ], + }; + + describe("with includeNodes = true", () => { + + it("lays out a tree with nothing collapsed", () => { + const actualFlattened = flatten(tree, [], true); + const expectedFlattened = [ + { depth: 0, isLeaf: false, isCollapsed: false, data: "a", path: [] }, + { depth: 1, isLeaf: false, isCollapsed: false, data: "b", path: ["b"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "c", path: ["b", "c"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "d", path: ["b", "d"] }, + { depth: 1, isLeaf: false, isCollapsed: false, data: "e", path: ["e"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "f", path: ["e", "f"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "g", path: ["e", "g"] }, + ]; + + assert.deepEqual(actualFlattened, expectedFlattened); + }); + + it("lays out a tree with a node collapsed", () => { + const actualFlattened = flatten(tree, [["b"]], true); + const expectedFlattened = [ + { depth: 0, isLeaf: false, isCollapsed: false, data: "a", path: [] }, + { depth: 1, isLeaf: false, isCollapsed: true, data: "b", path: ["b"] }, + { depth: 1, isLeaf: false, isCollapsed: false, data: "e", path: ["e"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "f", path: ["e", "f"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "g", path: ["e", "g"] }, + ]; + + assert.deepEqual(actualFlattened, expectedFlattened); + }); + + }); + + describe("with includeNodes = false", () => { + + it("lays out a tree with nothing collapsed", () => { + const actualFlattened = flatten(tree, [], false); + const expectedFlattened = [ + { depth: 2, isLeaf: true, isCollapsed: false, data: "c", path: ["b", "c"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "d", path: ["b", "d"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "f", path: ["e", "f"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "g", path: ["e", "g"] }, + ]; + + assert.deepEqual(actualFlattened, expectedFlattened); + }); + + it("lays out a tree with a node collapsed", () => { + const actualFlattened = flatten(tree, [["b"]], false); + const expectedFlattened = [ + { depth: 1, isLeaf: false, isCollapsed: true, data: "b", path: ["b"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "f", path: ["e", "f"] }, + { depth: 2, isLeaf: true, isCollapsed: false, data: "g", path: ["e", "g"] }, + ]; + + assert.deepEqual(actualFlattened, expectedFlattened); + }); + + }); + + }); + + describe("sumValuesUnderPaths", () => { + + // | | C_1 | + // | | C_2 | C_3 | + // |-------|-----|-----| + // | R_a | | | + // | R_b | 1 | 2 | + // | R_c | 3 | 4 | + + const rowTree = { + name: "a", + children: [ + { name: "b" }, + { name: "c" }, + ], + }; + const colTree = { + name: "1", + children: [ + { name: "2" }, + { name: "3" }, + ], + }; + // by row, then col. + const values: {[name: string]: {[name: string]: number}} = { + "b": {"2": 1, "3": 2}, + "c": {"2": 3, "3": 4}, + }; + function getValue(rowPath: TreePath, colPath: TreePath): number { + return values[rowPath[0]][colPath[0]]; + } + + it("computes a sum for the roots of both trees", () => { + const actualSum = sumValuesUnderPaths(rowTree, colTree, [], [], getValue); + const expectedSum = 1 + 2 + 3 + 4; + assert.equal(actualSum, expectedSum); + }); + + it("computes a sum for the root of one tree and the leaf of another", () => { + const actualSum = sumValuesUnderPaths(rowTree, colTree, ["b"], [], getValue); + const expectedSum = 1 + 2; + assert.equal(actualSum, expectedSum); + }); + + it("computes a sum for a single cell (two leaves)", () => { + const actualSum = sumValuesUnderPaths(rowTree, colTree, ["b"], ["3"], getValue); + const expectedSum = 2; + assert.equal(actualSum, expectedSum); + }); + + }); + +}); diff --git a/pkg/ui/src/views/cluster/containers/dataDistribution/tree.ts b/pkg/ui/src/views/cluster/containers/dataDistribution/tree.ts new file mode 100644 index 000000000000..7d2ae49fe8c5 --- /dev/null +++ b/pkg/ui/src/views/cluster/containers/dataDistribution/tree.ts @@ -0,0 +1,498 @@ +import _ from "lodash"; + +export interface TreeNode { + name: string; + children?: TreeNode[]; + data?: T; +} + +export type TreePath = string[]; + +export function isLeaf(t: TreeNode): boolean { + return !_.has(t, "children"); +} + +/** + * A Layout is a 2d (row, column) array of LayoutCells, for rendering + * a tree to the screen horizontally. + * + * E.g. the layout intended to be rendered as + * + * | a | + * | b | c | + * + * Is represented as: + * + * [ [ ], + * [ , ] ] + * + */ +export type Layout = LayoutCell[][]; + +export interface LayoutCell { + width: number; + path: TreePath; + isCollapsed: boolean; + isPlaceholder: boolean; + isLeaf: boolean; + data: T; +} + +/** + * layoutTreeHorizontal turns a tree into a tabular, horizontal layout. + * For instance, the tree + * + * a/ + * b + * c + * + * becomes: + * + * | a | + * | b | c | + * + * If the tree is of uneven depth, leaf nodes are pushed to the bottom and placeholder elements + * are returned to maintain the rectangularity of the table. + * + * For instance, the tree + * + * a/ + * b/ + * c + * d + * e + * + * becomes: + * + * | a | + * | b |

| + * | c | d | e | + * + * Where

is a LayoutCell with `isPlaceholder: true`. + * + * Further, if part of the tree is collapsed (specified by the `collapsedPaths` argument), its + * LayoutCells are returned with `isCollapsed: true`, and placeholders are returned to maintain + * rectangularity. + * + * The tree + * + * a/ + * b/ + * c + * d + * e/ + * f + * g + * + * without anything collapsed becomes: + * + * | a | + * | b | e | + * | c | d | f | g | + * + * Collapsing `e` yields: + * + * | a | + * | b | e | + * | c | d |

| + * + * Where

is a LayoutCell with `isPlaceholder: true` and e is a LayoutCell with + * `isCollapsed: true`. + * + */ +export function layoutTreeHorizontal(root: TreeNode, collapsedPaths: TreePath[]): Layout { + const height = expandedHeight(root, collapsedPaths); + return recur(root, []); + + function recur(node: TreeNode, pathToThis: TreePath): Layout { + const heightUnderThis = height - pathToThis.length; + + const placeholdersLayout: Layout = repeat(heightUnderThis, [{ + width: 1, + path: pathToThis, + data: node.data, + isPlaceholder: true, + isCollapsed: false, + isLeaf: false, + }]); + + // Put placeholders above this cell if it's a leaf. + if (isLeaf(node)) { + return verticalConcatLayouts([ + placeholdersLayout, + layoutFromCell({ + width: 1, + path: pathToThis, + data: node.data, + isPlaceholder: false, + isCollapsed: false, + isLeaf: true, + }), + ]); + } + + // Put placeholders below this if it's a collapsed internal node. + const isCollapsed = deepIncludes(collapsedPaths, pathToThis); + if (isCollapsed) { + return verticalConcatLayouts([ + layoutFromCell({ + width: 1, + path: pathToThis, + data: node.data, + isPlaceholder: false, + isCollapsed: true, + isLeaf: false, + }), + placeholdersLayout, + ]); + } + + const childLayouts = node.children.map((childNode) => ( + recur(childNode, [...pathToThis, childNode.name]) + )); + + const childrenLayout = horizontalConcatLayouts(childLayouts); + + const currentCell = { + width: _.sumBy(childLayouts, (cl) => cl[0][0].width), + data: node.data, + path: pathToThis, + isCollapsed, + isPlaceholder: false, + isLeaf: false, + }; + + return verticalConcatLayouts([ + layoutFromCell(currentCell), + childrenLayout, + ]); + } +} + +/** + * horizontalConcatLayouts takes an array of layouts and returns + * a new layout composed of its inputs laid out side by side. + * + * E.g. + * + * horizontalConcatLayouts([ | a | | d | + * | b | c |, | e | f | ]) + * + * yields + * + * | a | d | + * | b | c | e | f | + */ +function horizontalConcatLayouts(layouts: Layout[]): Layout { + if (layouts.length === 0) { + return []; + } + const output = _.range(layouts[0].length).map(() => ([])); + + _.forEach(layouts, (childLayout) => { + _.forEach(childLayout, (row, rowIdx) => { + _.forEach(row, (col) => { + output[rowIdx].push(col); + }); + }); + }); + + return output; +} + +/** + * verticalConcatLayouts takes an array of layouts and returns + * a new layout composed of its inputs laid out vertically. + * + * E.g. + * + * verticalConcatLayouts([ | a | | d | + * | b | c |, | e | f | ]) + * + * yields + * + * | a | + * | b | c | + * | d | + * | e | f | + */ +function verticalConcatLayouts(layouts: Layout[]): Layout { + const output: Layout = []; + return _.concat(output, ...layouts); +} + +function layoutFromCell(cell: LayoutCell): Layout { + return [ + [cell], + ]; +} + +export interface FlattenedNode { + depth: number; + isLeaf: boolean; + isCollapsed: boolean; + data: T; + path: TreePath; +} + +/** + * flatten takes a tree and returns it as an array with depth information. + * + * E.g. the tree + * + * a/ + * b + * c + * + * Becomes (with includeNodes = true): + * + * [ + * a (depth: 0), + * b (depth: 1), + * c (depth: 1), + * ] + * + * Or (with includeNodes = false): + * + * [ + * b (depth: 1), + * c (depth: 1), + * ] + * + * Collapsed nodes (specified with the `collapsedPaths` argument) + * are returned with `isCollapsed: true`; their children are not + * returned. + * + * E.g. the tree + * + * a/ + * b/ + * c + * d + * e/ + * f + * g + * + * with b collapsed becomes: + * + * [ + * a (depth: 0), + * b (depth: 1, isCollapsed: true), + * e (depth: 1), + * f (depth: 2), + * g (depth: 2), + * ] + * + */ +export function flatten( + tree: TreeNode, + collapsedPaths: TreePath[], + includeInternalNodes: boolean, +): FlattenedNode[] { + const output: FlattenedNode[] = []; + + visitNodes(tree, (node: TreeNode, pathSoFar: TreePath): boolean => { + const depth = pathSoFar.length; + + if (isLeaf(node)) { + output.push({ + depth, + isLeaf: true, + isCollapsed: false, + data: node.data, + path: pathSoFar, + }); + return true; + } + + const isExpanded = !deepIncludes(collapsedPaths, pathSoFar); + const nodeBecomesLeaf = !includeInternalNodes && !isExpanded; + if (includeInternalNodes || nodeBecomesLeaf) { + output.push({ + depth, + isLeaf: false, + isCollapsed: !isExpanded, + data: node.data, + path: pathSoFar, + }); + } + + // Continue the traversal if this node is expanded. + return isExpanded; + }); + + return output; +} + +/** + * nodeAtPath returns the node found under `root` at `path`, throwing + * an error if nothing is found. + */ +function nodeAtPath(root: TreeNode, path: TreePath): TreeNode { + if (path.length === 0) { + return root; + } + const pathSegment = path[0]; + const child = root.children.find((c) => (c.name === pathSegment)); + if (child === undefined) { + throw new Error(`not found: ${path}`); + } + return nodeAtPath(child, path.slice(1)); +} + +/** + * visitNodes invokes `f` on each node in the tree in pre-order + * (`f` is invoked on a node before being invoked on its children). + * + * If `f` returns false, the traversal stops. Otherwise, the traversal + * continues. + */ +function visitNodes(root: TreeNode, f: (node: TreeNode, path: TreePath) => boolean) { + function recur(node: TreeNode, path: TreePath) { + const continueTraversal = f(node, path); + if (!continueTraversal) { + return; + } + if (node.children) { + node.children.forEach((child) => { + recur(child, [...path, child.name]); + }); + } + } + recur(root, []); +} + +/** + * expandedHeight returns the height of the "uncollapsed" part of the tree, + * i.e. the height of the tree where collapsed internal nodes count as leaf nodes. + */ +function expandedHeight(root: TreeNode, collapsedPaths: TreePath[]): number { + let maxHeight = 0; + visitNodes(root, (_node, path) => { + const depth = path.length; + if (depth > maxHeight) { + maxHeight = depth; + } + const nodeCollapsed = deepIncludes(collapsedPaths, path); + return !nodeCollapsed; // Only continue the traversal if the node is expanded. + }); + return maxHeight; +} + +/** + * getLeafPathsUnderPath returns paths to all leaf nodes under the given + * `path` in `root`. + * + * E.g. for the tree T = + * + * a/ + * b/ + * c + * d + * e/ + * f + * g + * + * getLeafPaths(T, ['a', 'b']) yields: + * + * [ ['a', 'b', 'c'], + * ['a', 'b', 'd'] ] + * + */ +function getLeafPathsUnderPath(root: TreeNode, path: TreePath): TreePath[] { + const atPath = nodeAtPath(root, path); + const output: TreePath[] = []; + visitNodes(atPath, (node, subPath) => { + if (isLeaf(node)) { + output.push([...path, ...subPath]); + } + return true; + }); + return output; +} + +/** + * cartProd returns all combinations of elements in `as` and `bs`. + * + * e.g. cartProd([1, 2], ['a', 'b']) + * yields: + * [ + * {a: 1, b: 'a'}, + * {a: 1, b: 'b'}, + * {a: 2, b: 'a'}, + * {a: 2, b: 'b'}, + * ] + */ +function cartProd(as: A[], bs: B[]): {a: A, b: B}[] { + const output: {a: A, b: B}[] = []; + as.forEach((a) => { + bs.forEach((b) => { + output.push({ a, b }); + }); + }); + return output; +} + +/** + * sumValuesUnderPaths returns the sum of `getValue(R, C)` + * for all leaf paths R under `rowPath` in `rowTree`, + * and all leaf paths C under `colPath` in `rowTree`. + * + * E.g. in the matrix + * + * | | C_1 | + * | | C_2 | C_3 | + * |-------|-----|-----| + * | R_a | | | + * | R_b | 1 | 2 | + * | R_c | 3 | 4 | + * + * represented by + * + * rowTree = (R_a [R_b R_c]) + * colTree = (C_1 [C_2 C_3]) + * + * calling sumValuesUnderPath(rowTree, colTree, ['R_a'], ['C_1'], getValue) + * sums up all the cells in the matrix, yielding 1 + 2 + 3 + 4 = 10. + * + * Calling sumValuesUnderPath(rowTree, colTree, ['R_a', 'R_b'], ['C_1'], getValue) + * sums up only the cells under R_b, + * yielding 1 + 2 = 3. + * + */ +export function sumValuesUnderPaths( + rowTree: TreeNode, + colTree: TreeNode, + rowPath: TreePath, + colPath: TreePath, + getValue: (row: TreePath, col: TreePath) => number, +): number { + const rowPaths = getLeafPathsUnderPath(rowTree, rowPath); + const colPaths = getLeafPathsUnderPath(colTree, colPath); + const prod = cartProd(rowPaths, colPaths); + let sum = 0; + prod.forEach((coords) => { + sum += getValue(coords.a, coords.b); + }); + return sum; +} + +/** + * deepIncludes returns true if `array` contains `val`, doing + * a deep equality comparison. + */ +export function deepIncludes(array: T[], val: T): boolean { + return _.some(array, (v) => _.isEqual(val, v)); +} + +/** + * repeat returns an array with the given element repeated `times` + * times. Sadly, `_.repeat` only works for strings. + */ +function repeat(times: number, item: T): T[] { + const output: T[] = []; + for (let i = 0; i < times; i++) { + output.push(item); + } + return output; +} diff --git a/pkg/ui/src/views/reports/containers/debug/index.tsx b/pkg/ui/src/views/reports/containers/debug/index.tsx index ba4ba37b8f25..fb330d51c0b7 100644 --- a/pkg/ui/src/views/reports/containers/debug/index.tsx +++ b/pkg/ui/src/views/reports/containers/debug/index.tsx @@ -77,8 +77,12 @@ export default function Debug() { note="#/reports/stores/[node_id]" /> - + +