collection list normal and ec volumes

This commit is contained in:
Chris Lu 2019-05-30 09:27:23 -07:00
parent e941d0c2f4
commit 1d111d6ce8
7 changed files with 143 additions and 117 deletions

View file

@ -167,6 +167,8 @@ message Collection {
string name = 1;
}
message CollectionListRequest {
bool include_normal_volumes = 1;
bool include_ec_volumes = 2;
}
message CollectionListResponse {
repeated Collection collections = 1;

View file

@ -846,6 +846,8 @@ func (m *Collection) GetName() string {
}
type CollectionListRequest struct {
IncludeNormalVolumes bool `protobuf:"varint,1,opt,name=include_normal_volumes,json=includeNormalVolumes" json:"include_normal_volumes,omitempty"`
IncludeEcVolumes bool `protobuf:"varint,2,opt,name=include_ec_volumes,json=includeEcVolumes" json:"include_ec_volumes,omitempty"`
}
func (m *CollectionListRequest) Reset() { *m = CollectionListRequest{} }
@ -853,6 +855,20 @@ func (m *CollectionListRequest) String() string { return proto.Compac
func (*CollectionListRequest) ProtoMessage() {}
func (*CollectionListRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
func (m *CollectionListRequest) GetIncludeNormalVolumes() bool {
if m != nil {
return m.IncludeNormalVolumes
}
return false
}
func (m *CollectionListRequest) GetIncludeEcVolumes() bool {
if m != nil {
return m.IncludeEcVolumes
}
return false
}
type CollectionListResponse struct {
Collections []*Collection `protobuf:"bytes,1,rep,name=collections" json:"collections,omitempty"`
}
@ -1668,110 +1684,113 @@ var _Seaweed_serviceDesc = grpc.ServiceDesc{
func init() { proto.RegisterFile("master.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 1677 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x58, 0x4b, 0x6f, 0xdb, 0xca,
0x15, 0x36, 0xf5, 0xd6, 0xd1, 0xc3, 0xd2, 0xd8, 0x49, 0x14, 0xa5, 0x49, 0x14, 0x66, 0xa3, 0xa4,
0xad, 0x9b, 0x3a, 0x05, 0xba, 0x68, 0x8b, 0x20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xe8, 0x3c,
0x27, 0x24, 0xda, 0x09, 0x83, 0x80, 0x38, 0x8c, 0xb8, 0xe8, 0x96, 0xde, 0x21, 0x97, 0x9f, 0x27,
0xc3, 0xeb, 0x4b, 0x85, 0x3a, 0xf1, 0x56, 0x59, 0x7c, 0x0d, 0x6d, 0x9d, 0x95, 0xe7, 0x0c, 0xae,
0x78, 0x43, 0x0c, 0x6f, 0x5f, 0x40, 0xe7, 0xcd, 0x35, 0xf4, 0x08, 0x6a, 0x92, 0x26, 0xa2, 0x81,
0xa6, 0x9c, 0xe3, 0xc1, 0x39, 0xbf, 0xf2, 0x9c, 0xd2, 0x5c, 0x43, 0xcf, 0x01, 0x32, 0xa2, 0x85,
0x74, 0x5c, 0x96, 0x98, 0xde, 0xf0, 0xe6, 0x19, 0xb3, 0xa9, 0xb1, 0xdf, 0x43, 0x37, 0x4f, 0x39,
0xd0, 0x68, 0x25, 0xab, 0xd0, 0xf2, 0x6e, 0x78, 0xe7, 0x1c, 0x8d, 0xd4, 0xf0, 0x1f, 0xa1, 0x57,
0x64, 0x12, 0xc8, 0x5c, 0xb9, 0x30, 0xc7, 0x4a, 0x86, 0x77, 0xcf, 0xd5, 0xd1, 0x41, 0xc8, 0x52,
0x3f, 0x07, 0xc2, 0x52, 0x9d, 0xc8, 0x81, 0xb0, 0x5c, 0x2f, 0x24, 0x08, 0xf9, 0x7c, 0xc9, 0x81,
0xb0, 0x32, 0xbb, 0x73, 0x20, 0xac, 0x4e, 0x36, 0x73, 0x6d, 0x5a, 0x13, 0xff, 0x66, 0x1f, 0xfe,
0x10, 0x00, 0x00, 0xff, 0xff, 0xac, 0x38, 0x8b, 0x89, 0xab, 0x15, 0x00, 0x00,
// 1720 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x58, 0xcb, 0x6f, 0x24, 0x47,
0x19, 0x77, 0xcf, 0x7b, 0xbe, 0x79, 0x78, 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 0x2f, 0x24, 0x08, 0xc5, 0x7c, 0x29, 0x80, 0xb0, 0x31, 0xbb, 0x0b, 0x20,
0x6c, 0x4e, 0x36, 0xbc, 0x35, 0x6f, 0x88, 0xff, 0xbf, 0x9f, 0xfc, 0x3f, 0x00, 0x00, 0xff, 0xff,
0x2e, 0x8c, 0xaa, 0x4f, 0x0f, 0x16, 0x00, 0x00,
}

View file

@ -16,7 +16,7 @@ func (ms *MasterServer) CollectionList(ctx context.Context, req *master_pb.Colle
}
resp := &master_pb.CollectionListResponse{}
collections := ms.Topo.ListCollections()
collections := ms.Topo.ListCollections(req.IncludeNormalVolumes, req.IncludeEcVolumes)
for _, c := range collections {
resp.Collections = append(resp.Collections, &master_pb.Collection{
Name: c,

View file

@ -24,7 +24,7 @@ func (c *commandCollectionList) Help() string {
func (c *commandCollectionList) Do(args []string, commandEnv *commandEnv, writer io.Writer) (err error) {
collections, err := ListCollectionNames(commandEnv)
collections, err := ListCollectionNames(commandEnv, true, true)
if err != nil {
return err
@ -39,11 +39,14 @@ func (c *commandCollectionList) Do(args []string, commandEnv *commandEnv, writer
return nil
}
func ListCollectionNames(commandEnv *commandEnv) (collections []string, err error) {
func ListCollectionNames(commandEnv *commandEnv, includeNormalVolumes, includeEcVolumes bool) (collections []string, err error) {
var resp *master_pb.CollectionListResponse
ctx := context.Background()
err = commandEnv.masterClient.WithClient(ctx, func(client master_pb.SeaweedClient) error {
resp, err = client.CollectionList(ctx, &master_pb.CollectionListRequest{})
resp, err = client.CollectionList(ctx, &master_pb.CollectionListRequest{
IncludeNormalVolumes: includeNormalVolumes,
IncludeEcVolumes: includeEcVolumes,
})
return err
})
if err != nil {

View file

@ -83,7 +83,7 @@ func (c *commandEcBalance) Do(args []string, commandEnv *commandEnv, writer io.W
}
if *collection == "EACH_COLLECTION" {
collections, err := ListCollectionNames(commandEnv)
collections, err := ListCollectionNames(commandEnv, false, true)
if err != nil {
return err
}

View file

@ -84,7 +84,7 @@ func (c *commandVolumeBalance) Do(args []string, commandEnv *commandEnv, writer
continue
}
if *collection == "EACH_COLLECTION" {
collections, err := ListCollectionNames(commandEnv)
collections, err := ListCollectionNames(commandEnv, true, false)
if err != nil {
return err
}

View file

@ -126,18 +126,20 @@ func (t *Topology) GetVolumeLayout(collectionName string, rp *storage.ReplicaPla
}).(*Collection).GetOrCreateVolumeLayout(rp, ttl)
}
func (t *Topology) ListCollections() (ret []string) {
func (t *Topology) ListCollections(includeNormalVolumes, includeEcVolumes bool) (ret []string) {
mapOfCollections := make(map[string]bool)
for _, c := range t.collectionMap.Items() {
mapOfCollections[c.(*Collection).Name] = true
}
t.ecShardMapLock.RLock()
for _, ecVolumeLocation := range t.ecShardMap {
mapOfCollections[ecVolumeLocation.Collection] = true
if includeEcVolumes {
t.ecShardMapLock.RLock()
for _, ecVolumeLocation := range t.ecShardMap {
mapOfCollections[ecVolumeLocation.Collection] = true
}
t.ecShardMapLock.RUnlock()
}
t.ecShardMapLock.RUnlock()
for k, _ := range mapOfCollections {
ret = append(ret, k)