mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Disable xdist in test cases
Signed-off-by: del-zhenwu <zhenxiang.li@zilliz.com>
This commit is contained in:
parent
8609fb8a8d
commit
b1763c3690
@ -12,7 +12,7 @@ services:
|
||||
- ../../..:/milvus-distributed:delegated
|
||||
working_dir: "/milvus-distributed/tests/python_test"
|
||||
command: >
|
||||
/bin/bash -c "sleep 10s && pytest --tags=0331 --reruns=1 -n 4 --ip proxynode"
|
||||
/bin/bash -c "sleep 10s && pytest --tags=0331 --reruns=1 --ip proxynode"
|
||||
networks:
|
||||
- milvus
|
||||
|
||||
@ -27,7 +27,7 @@ services:
|
||||
- ../../..:/milvus-distributed:delegated
|
||||
working_dir: "/milvus-distributed/tests/python_test"
|
||||
command: >
|
||||
/bin/bash -c "sleep 10s && pytest --tags=0331 --reruns=1 -n 4 --ip standalone"
|
||||
/bin/bash -c "sleep 10s && pytest --tags=0331 --reruns=1 --ip standalone"
|
||||
networks:
|
||||
- milvus
|
||||
|
||||
|
@ -32,7 +32,7 @@ type DataNode struct {
|
||||
cancel context.CancelFunc
|
||||
NodeID UniqueID
|
||||
Role string
|
||||
State atomic.Value // internalpb2.StateCode_INITIALIZING
|
||||
State atomic.Value // internalpb2.StateCode_Initializing
|
||||
watchDm chan struct{}
|
||||
|
||||
dataSyncService *dataSyncService
|
||||
@ -65,7 +65,7 @@ func NewDataNode(ctx context.Context, factory msgstream.Factory) *DataNode {
|
||||
replica: nil,
|
||||
msFactory: factory,
|
||||
}
|
||||
node.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
return node
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ func (node *DataNode) Init() error {
|
||||
func (node *DataNode) Start() error {
|
||||
node.metaService.init()
|
||||
go node.dataSyncService.start()
|
||||
node.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@ func (node *DataNode) WatchDmChannels(ctx context.Context, in *datapb.WatchDmCha
|
||||
|
||||
switch {
|
||||
|
||||
case node.State.Load() != internalpb2.StateCode_INITIALIZING:
|
||||
case node.State.Load() != internalpb2.StateCode_Initializing:
|
||||
status.Reason = fmt.Sprintf("DataNode %d not initializing!", node.NodeID)
|
||||
return status, errors.New(status.GetReason())
|
||||
|
||||
|
@ -73,7 +73,7 @@ func CreateServer(ctx context.Context, factory msgstream.Factory) (*Server, erro
|
||||
msFactory: factory,
|
||||
}
|
||||
s.insertChannels = s.getInsertChannels()
|
||||
s.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
s.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
return s, nil
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ func (s *Server) Start() error {
|
||||
return err
|
||||
}
|
||||
s.startServerLoop()
|
||||
s.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
s.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
log.Debug("start success")
|
||||
return nil
|
||||
}
|
||||
@ -132,7 +132,7 @@ func (s *Server) UpdateStateCode(code internalpb2.StateCode) {
|
||||
}
|
||||
|
||||
func (s *Server) checkStateIsHealthy() bool {
|
||||
return s.state.Load().(internalpb2.StateCode) == internalpb2.StateCode_HEALTHY
|
||||
return s.state.Load().(internalpb2.StateCode) == internalpb2.StateCode_Healthy
|
||||
}
|
||||
|
||||
func (s *Server) initMeta() error {
|
||||
@ -277,7 +277,7 @@ func (s *Server) checkMasterIsHealthy() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if resp.State.StateCode == internalpb2.StateCode_HEALTHY {
|
||||
if resp.State.StateCode == internalpb2.StateCode_Healthy {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ func (s *Server) init() error {
|
||||
dn.Params.IP = Params.IP
|
||||
|
||||
s.datanode.NodeID = dn.Params.NodeID
|
||||
s.datanode.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.datanode.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
if err := s.datanode.Init(); err != nil {
|
||||
log.Warn("datanode init error: ", zap.Error(err))
|
||||
@ -236,7 +236,7 @@ func (s *Server) WatchDmChannels(ctx context.Context, in *datapb.WatchDmChannelR
|
||||
}
|
||||
|
||||
func (s *Server) FlushSegments(ctx context.Context, in *datapb.FlushSegRequest) (*commonpb.Status, error) {
|
||||
if s.datanode.State.Load().(internalpb2.StateCode) != internalpb2.StateCode_HEALTHY {
|
||||
if s.datanode.State.Load().(internalpb2.StateCode) != internalpb2.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
Reason: "DataNode isn't healthy.",
|
||||
|
@ -101,7 +101,7 @@ func (s *Server) init() error {
|
||||
if err = client.Start(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
s.dataService.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.dataService.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
ctx := context.Background()
|
||||
err = funcutil.WaitForComponentInitOrHealthy(ctx, client, "MasterService", 100, time.Millisecond*200)
|
||||
|
@ -119,7 +119,7 @@ func (s *Server) init() error {
|
||||
indexnode.Params.IP = Params.IP
|
||||
indexnode.Params.Address = Params.Address
|
||||
|
||||
s.indexnode.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.indexnode.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
err = s.indexnode.Init()
|
||||
if err != nil {
|
||||
|
@ -63,7 +63,7 @@ func (s *Server) init() error {
|
||||
if err := <-s.grpcErrChan; err != nil {
|
||||
return err
|
||||
}
|
||||
s.indexservice.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.indexservice.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
if err := s.indexservice.Init(); err != nil {
|
||||
return err
|
||||
|
@ -64,7 +64,7 @@ func TestGrpcService(t *testing.T) {
|
||||
|
||||
err = svr.startGrpc()
|
||||
assert.Nil(t, err)
|
||||
svr.masterService.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
svr.masterService.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
core := svr.masterService
|
||||
err = core.Init()
|
||||
@ -147,7 +147,7 @@ func TestGrpcService(t *testing.T) {
|
||||
err = svr.start()
|
||||
assert.Nil(t, err)
|
||||
|
||||
svr.masterService.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
svr.masterService.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
|
||||
cli, err := grpcmasterserviceclient.NewClient(Params.Address, 3*time.Second)
|
||||
assert.Nil(t, err)
|
||||
|
@ -114,7 +114,7 @@ func (s *Server) init() error {
|
||||
return err
|
||||
}
|
||||
|
||||
s.masterService.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.masterService.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
if s.connectProxyService {
|
||||
log.Debug("proxy service", zap.String("address", Params.ProxyServiceAddress))
|
||||
|
@ -235,7 +235,7 @@ func (s *Server) init() error {
|
||||
// for purpose of ID Allocator
|
||||
proxynode.Params.MasterAddress = Params.MasterAddress
|
||||
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
if err := s.impl.Init(); err != nil {
|
||||
log.Debug("proxynode", zap.String("impl init error", err.Error()))
|
||||
|
@ -94,7 +94,7 @@ func (s *Server) init() error {
|
||||
if err := <-s.grpcErrChan; err != nil {
|
||||
return err
|
||||
}
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
log.Debug("grpc init done ...")
|
||||
|
||||
if err := s.impl.Init(); err != nil {
|
||||
|
@ -195,7 +195,7 @@ func (s *Server) init() error {
|
||||
qn.Params.QueryNodePort = int64(Params.QueryNodePort)
|
||||
qn.Params.QueryNodeID = Params.QueryNodeID
|
||||
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
if err := s.impl.Init(); err != nil {
|
||||
log.Error("impl init error: ", zap.Error(err))
|
||||
|
@ -129,7 +129,7 @@ func (s *Server) init() error {
|
||||
}
|
||||
|
||||
qs.Params.Init()
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_INITIALIZING)
|
||||
s.impl.UpdateStateCode(internalpb2.StateCode_Initializing)
|
||||
|
||||
if err := s.impl.Init(); err != nil {
|
||||
return err
|
||||
|
@ -123,7 +123,7 @@ func (i *IndexNode) Init() error {
|
||||
return err
|
||||
}
|
||||
|
||||
i.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
i.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ func (i *IndexService) Init() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
i.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
i.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,7 @@ func NewCore(c context.Context, factory ms.Factory) (*Core, error) {
|
||||
cancel: cancel,
|
||||
msFactory: factory,
|
||||
}
|
||||
core.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
core.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
return core, nil
|
||||
}
|
||||
|
||||
@ -782,7 +782,7 @@ func (c *Core) Init() error {
|
||||
initError = c.setMsgStreams()
|
||||
})
|
||||
if initError == nil {
|
||||
log.Debug("Master service", zap.String("State Code", internalpb2.StateCode_name[int32(internalpb2.StateCode_INITIALIZING)]))
|
||||
log.Debug("Master service", zap.String("State Code", internalpb2.StateCode_name[int32(internalpb2.StateCode_Initializing)]))
|
||||
}
|
||||
return initError
|
||||
}
|
||||
@ -798,15 +798,15 @@ func (c *Core) Start() error {
|
||||
go c.startCreateIndexLoop()
|
||||
go c.startSegmentFlushCompletedLoop()
|
||||
go c.tsLoop()
|
||||
c.stateCode.Store(internalpb2.StateCode_HEALTHY)
|
||||
c.stateCode.Store(internalpb2.StateCode_Healthy)
|
||||
})
|
||||
log.Debug("Master service", zap.String("State Code", internalpb2.StateCode_name[int32(internalpb2.StateCode_HEALTHY)]))
|
||||
log.Debug("Master service", zap.String("State Code", internalpb2.StateCode_name[int32(internalpb2.StateCode_Healthy)]))
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Core) Stop() error {
|
||||
c.cancel()
|
||||
c.stateCode.Store(internalpb2.StateCode_ABNORMAL)
|
||||
c.stateCode.Store(internalpb2.StateCode_Abnormal)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -868,7 +868,7 @@ func (c *Core) GetStatisticsChannel(ctx context.Context) (*milvuspb.StringRespon
|
||||
|
||||
func (c *Core) CreateCollection(ctx context.Context, in *milvuspb.CreateCollectionRequest) (*commonpb.Status, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
Reason: fmt.Sprintf("state code = %s", internalpb2.StateCode_name[int32(code)]),
|
||||
@ -900,7 +900,7 @@ func (c *Core) CreateCollection(ctx context.Context, in *milvuspb.CreateCollecti
|
||||
|
||||
func (c *Core) DropCollection(ctx context.Context, in *milvuspb.DropCollectionRequest) (*commonpb.Status, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
Reason: fmt.Sprintf("state code = %s", internalpb2.StateCode_name[int32(code)]),
|
||||
@ -932,7 +932,7 @@ func (c *Core) DropCollection(ctx context.Context, in *milvuspb.DropCollectionRe
|
||||
|
||||
func (c *Core) HasCollection(ctx context.Context, in *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.BoolResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
@ -974,7 +974,7 @@ func (c *Core) HasCollection(ctx context.Context, in *milvuspb.HasCollectionRequ
|
||||
|
||||
func (c *Core) DescribeCollection(ctx context.Context, in *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.DescribeCollectionResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
@ -1015,7 +1015,7 @@ func (c *Core) DescribeCollection(ctx context.Context, in *milvuspb.DescribeColl
|
||||
|
||||
func (c *Core) ShowCollections(ctx context.Context, in *milvuspb.ShowCollectionRequest) (*milvuspb.ShowCollectionResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.ShowCollectionResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
@ -1057,7 +1057,7 @@ func (c *Core) ShowCollections(ctx context.Context, in *milvuspb.ShowCollectionR
|
||||
|
||||
func (c *Core) CreatePartition(ctx context.Context, in *milvuspb.CreatePartitionRequest) (*commonpb.Status, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
Reason: fmt.Sprintf("state code = %s", internalpb2.StateCode_name[int32(code)]),
|
||||
@ -1089,7 +1089,7 @@ func (c *Core) CreatePartition(ctx context.Context, in *milvuspb.CreatePartition
|
||||
|
||||
func (c *Core) DropPartition(ctx context.Context, in *milvuspb.DropPartitionRequest) (*commonpb.Status, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
Reason: fmt.Sprintf("state code = %s", internalpb2.StateCode_name[int32(code)]),
|
||||
@ -1121,7 +1121,7 @@ func (c *Core) DropPartition(ctx context.Context, in *milvuspb.DropPartitionRequ
|
||||
|
||||
func (c *Core) HasPartition(ctx context.Context, in *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.BoolResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
@ -1163,7 +1163,7 @@ func (c *Core) HasPartition(ctx context.Context, in *milvuspb.HasPartitionReques
|
||||
|
||||
func (c *Core) ShowPartitions(ctx context.Context, in *milvuspb.ShowPartitionRequest) (*milvuspb.ShowPartitionResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.ShowPartitionResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
@ -1206,7 +1206,7 @@ func (c *Core) ShowPartitions(ctx context.Context, in *milvuspb.ShowPartitionReq
|
||||
|
||||
func (c *Core) CreateIndex(ctx context.Context, in *milvuspb.CreateIndexRequest) (*commonpb.Status, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
Reason: fmt.Sprintf("state code = %s", internalpb2.StateCode_name[int32(code)]),
|
||||
@ -1238,7 +1238,7 @@ func (c *Core) CreateIndex(ctx context.Context, in *milvuspb.CreateIndexRequest)
|
||||
|
||||
func (c *Core) DescribeIndex(ctx context.Context, in *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.DescribeIndexResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
@ -1291,7 +1291,7 @@ func (c *Core) DescribeIndex(ctx context.Context, in *milvuspb.DescribeIndexRequ
|
||||
|
||||
func (c *Core) DropIndex(ctx context.Context, in *milvuspb.DropIndexRequest) (*commonpb.Status, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
Reason: fmt.Sprintf("state code = %s", internalpb2.StateCode_name[int32(code)]),
|
||||
@ -1323,7 +1323,7 @@ func (c *Core) DropIndex(ctx context.Context, in *milvuspb.DropIndexRequest) (*c
|
||||
|
||||
func (c *Core) DescribeSegment(ctx context.Context, in *milvuspb.DescribeSegmentRequest) (*milvuspb.DescribeSegmentResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.DescribeSegmentResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
@ -1366,7 +1366,7 @@ func (c *Core) DescribeSegment(ctx context.Context, in *milvuspb.DescribeSegment
|
||||
|
||||
func (c *Core) ShowSegments(ctx context.Context, in *milvuspb.ShowSegmentRequest) (*milvuspb.ShowSegmentResponse, error) {
|
||||
code := c.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.ShowSegmentResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_ERROR_CODE_UNEXPECTED_ERROR,
|
||||
|
@ -5,9 +5,9 @@ option go_package = "github.com/zilliztech/milvus-distributed/internal/proto/int
|
||||
import "common.proto";
|
||||
|
||||
enum StateCode {
|
||||
INITIALIZING = 0;
|
||||
HEALTHY = 1;
|
||||
ABNORMAL = 2;
|
||||
Initializing = 0;
|
||||
Healthy = 1;
|
||||
Abnormal = 2;
|
||||
}
|
||||
|
||||
message ComponentInfo {
|
||||
|
@ -24,21 +24,21 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||
type StateCode int32
|
||||
|
||||
const (
|
||||
StateCode_INITIALIZING StateCode = 0
|
||||
StateCode_HEALTHY StateCode = 1
|
||||
StateCode_ABNORMAL StateCode = 2
|
||||
StateCode_Initializing StateCode = 0
|
||||
StateCode_Healthy StateCode = 1
|
||||
StateCode_Abnormal StateCode = 2
|
||||
)
|
||||
|
||||
var StateCode_name = map[int32]string{
|
||||
0: "INITIALIZING",
|
||||
1: "HEALTHY",
|
||||
2: "ABNORMAL",
|
||||
0: "Initializing",
|
||||
1: "Healthy",
|
||||
2: "Abnormal",
|
||||
}
|
||||
|
||||
var StateCode_value = map[string]int32{
|
||||
"INITIALIZING": 0,
|
||||
"HEALTHY": 1,
|
||||
"ABNORMAL": 2,
|
||||
"Initializing": 0,
|
||||
"Healthy": 1,
|
||||
"Abnormal": 2,
|
||||
}
|
||||
|
||||
func (x StateCode) String() string {
|
||||
@ -102,7 +102,7 @@ func (m *ComponentInfo) GetStateCode() StateCode {
|
||||
if m != nil {
|
||||
return m.StateCode
|
||||
}
|
||||
return StateCode_INITIALIZING
|
||||
return StateCode_Initializing
|
||||
}
|
||||
|
||||
func (m *ComponentInfo) GetExtraInfo() []*commonpb.KeyValuePair {
|
||||
@ -1770,100 +1770,100 @@ func init() {
|
||||
func init() { proto.RegisterFile("internal.proto", fileDescriptor_41f4a519b878ee3b) }
|
||||
|
||||
var fileDescriptor_41f4a519b878ee3b = []byte{
|
||||
// 1510 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0x67, 0x6d, 0x27, 0xb6, 0xdf, 0x3a, 0xa9, 0xbb, 0xf4, 0x63, 0x0b, 0x81, 0xba, 0xcb, 0x57,
|
||||
0xa0, 0x22, 0xa9, 0x52, 0x84, 0x10, 0x97, 0x36, 0x89, 0xfb, 0xb1, 0x6a, 0x62, 0xc2, 0x38, 0xad,
|
||||
0xd4, 0x5e, 0x56, 0xeb, 0xdd, 0x89, 0x3d, 0xed, 0x7e, 0xb8, 0x33, 0xe3, 0xa6, 0xee, 0x99, 0x1b,
|
||||
0x82, 0x03, 0x12, 0xff, 0x00, 0x7f, 0x00, 0x67, 0x4e, 0x20, 0x71, 0x42, 0xe2, 0x8e, 0x84, 0xc4,
|
||||
0x91, 0xbf, 0x82, 0x13, 0x9a, 0x8f, 0x5d, 0xdb, 0xa9, 0x93, 0xa6, 0x86, 0x0a, 0x21, 0xb8, 0xed,
|
||||
0xbc, 0x79, 0x7e, 0x33, 0xbf, 0xdf, 0xef, 0xbd, 0x79, 0x33, 0x86, 0x45, 0x92, 0x70, 0x4c, 0x13,
|
||||
0x3f, 0x5a, 0xe9, 0xd3, 0x94, 0xa7, 0xd6, 0xe9, 0x98, 0x44, 0x8f, 0x06, 0x4c, 0x8d, 0x56, 0xb2,
|
||||
0xc9, 0x57, 0x6a, 0x41, 0x1a, 0xc7, 0x69, 0xa2, 0xcc, 0xce, 0xf7, 0x06, 0x2c, 0x6c, 0xa6, 0x71,
|
||||
0x3f, 0x4d, 0x70, 0xc2, 0xdd, 0x64, 0x2f, 0xb5, 0xce, 0xc0, 0x7c, 0x92, 0x86, 0xd8, 0x6d, 0xda,
|
||||
0x46, 0xc3, 0x58, 0x2e, 0x22, 0x3d, 0xb2, 0x2c, 0x28, 0xd1, 0x34, 0xc2, 0x76, 0xa1, 0x61, 0x2c,
|
||||
0x57, 0x91, 0xfc, 0xb6, 0xae, 0x00, 0x30, 0xee, 0x73, 0xec, 0x05, 0x69, 0x88, 0xed, 0x62, 0xc3,
|
||||
0x58, 0x5e, 0x5c, 0x6b, 0xac, 0x4c, 0x5d, 0x77, 0xa5, 0x2d, 0x1c, 0x37, 0xd3, 0x10, 0xa3, 0x2a,
|
||||
0xcb, 0x3e, 0xad, 0xab, 0x00, 0xf8, 0x31,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, 0xa1, 0x8d, 0x7d, 0x1a, 0xf4, 0x66, 0x17, 0xec, 0x5d, 0xa8, 0x53, 0xcc, 0x06, 0x11, 0xf7,
|
||||
0x46, 0xb0, 0x94, 0x72, 0x27, 0x94, 0x7d, 0x33, 0x07, 0x97, 0x51, 0x5e, 0x3c, 0x82, 0xf2, 0xd2,
|
||||
0x14, 0xca, 0x1d, 0xa8, 0x8d, 0xf1, 0xcb, 0xec, 0x39, 0x09, 0x7d, 0xc2, 0x66, 0xd5, 0xa1, 0x18,
|
||||
0xb2, 0x48, 0x2a, 0x56, 0x45, 0xe2, 0xd3, 0xba, 0x08, 0x27, 0xfb, 0x91, 0x1f, 0xe0, 0x5e, 0x1a,
|
||||
0x85, 0x98, 0x7a, 0x5d, 0x9a, 0x0e, 0xfa, 0x52, 0xae, 0x1a, 0xaa, 0x8f, 0x4d, 0xdc, 0x10, 0x76,
|
||||
0x6b, 0x15, 0xe6, 0x1e, 0x0e, 0x30, 0x1d, 0x4a, 0xbd, 0x8e, 0x24, 0x4f, 0xf9, 0x39, 0xbf, 0x18,
|
||||
0x23, 0xea, 0x04, 0x4a, 0x36, 0x03, 0x75, 0xb3, 0xdc, 0x54, 0xa6, 0xf2, 0x5d, 0x9c, 0xce, 0xf7,
|
||||
0x79, 0x30, 0x63, 0xcc, 0x29, 0x09, 0x3c, 0x3e, 0xec, 0x67, 0x65, 0x00, 0xca, 0xb4, 0x3b, 0xec,
|
||||
0xcb, 0x1a, 0xe8, 0x11, 0xae, 0x08, 0xad, 0x21, 0xf9, 0xed, 0xfc, 0x6c, 0xc0, 0x42, 0x13, 0x47,
|
||||
0x98, 0xe3, 0xd9, 0x73, 0x62, 0x4a, 0xad, 0x16, 0xa6, 0xd6, 0xea, 0x44, 0x31, 0x14, 0x8f, 0x2e,
|
||||
0x86, 0xd2, 0x53, 0xc5, 0x70, 0x01, 0x6a, 0x7d, 0x4a, 0x62, 0x9f, 0x0e, 0xbd, 0x07, 0x78, 0x98,
|
||||
0xe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e5,
|
||||
0x94, 0x0b, 0x8b, 0xfa, 0x2d, 0x93, 0x32, 0x29, 0xa1, 0x3c, 0x74, 0xcc, 0x35, 0xe7, 0x90, 0x07,
|
||||
0xdd, 0x36, 0xeb, 0xee, 0x68, 0x4f, 0xb4, 0xa0, 0x9e, 0x33, 0x7a, 0x68, 0x5d, 0x83, 0x9a, 0x58,
|
||||
0x25, 0x0f, 0x54, 0x3e, 0x76, 0x20, 0x13, 0x27, 0x61, 0x1e, 0xc6, 0x81, 0x1a, 0x61, 0x2d, 0xbc,
|
||||
0xaf, 0x99, 0x91, 0x67, 0x58, 0x05, 0x4d, 0xd8, 0x9c, 0xaf, 0x0c, 0x38, 0xf9, 0x14, 0xcd, 0x33,
|
||||
0xe4, 0xda, 0x2d, 0xa8, 0xb4, 0x71, 0x57, 0x84, 0xc8, 0x5e, 0x71, 0xab, 0x87, 0x3d, 0xd2, 0x0f,
|
||||
0x11, 0x15, 0xe5, 0x01, 0x9c, 0xfb, 0xb9, 0xf4, 0xb2, 0x46, 0xc5, 0xd3, 0x57, 0x1c, 0x3c, 0xe1,
|
||||
0x0b, 0x28, 0x56, 0xe7, 0x33, 0x43, 0xbc, 0x54, 0x43, 0xfc, 0x58, 0x2e, 0xfd, 0x54, 0xf2, 0x1a,
|
||||
0xb3, 0x24, 0xaf, 0x75, 0x09, 0x4e, 0x25, 0x83, 0xd8, 0xa3, 0x38, 0xf2, 0x39, 0x0e, 0x3d, 0xbd,
|
||||
0x1a, 0xd3, 0xab, 0x5b, 0xc9, 0x20, 0x46, 0x6a, 0x4a, 0xc3, 0x64, 0xce, 0x97, 0x06, 0xc0, 0x75,
|
||||
0x51, 0x61, 0x6a, 0x1b, 0x07, 0x8f, 0x10, 0xe3, 0xe8, 0x6b, 0x5b, 0x61, 0xb2, 0x44, 0x37, 0xb2,
|
||||
0x12, 0x65, 0x52, 0x8f, 0xe2, 0x34, 0x0c, 0xb9, 0x1e, 0x23, 0xf0, 0xba, 0x8a, 0x95, 0x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, 0x0d, 0xab, 0x06,
|
||||
0x95, 0xf5, 0x8d, 0xd6, 0x27, 0x68, 0x7b, 0x7d, 0xab, 0x5e, 0xd8, 0xb8, 0x76, 0x6f, 0xb3, 0x4b,
|
||||
0x78, 0x6f, 0xd0, 0x11, 0x24, 0xae, 0x3e, 0x21, 0x51, 0x44, 0x9e, 0x70, 0x1c, 0xf4, 0x56, 0x15,
|
||||
0xca, 0xf7, 0x43, 0xc2, 0x38, 0x25, 0x9d, 0x01, 0xc7, 0xe1, 0x6a, 0x86, 0x75, 0x55, 0x42, 0xcf,
|
||||
0x87, 0xfd, 0xce, 0x5a, 0x67, 0x5e, 0x9a, 0x2e, 0xff, 0x19, 0x00, 0x00, 0xff, 0xff, 0x23, 0xe9,
|
||||
0x2e, 0x4b, 0x3d, 0x14, 0x00, 0x00,
|
||||
// 1505 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcf, 0x6f, 0x1b, 0xc5,
|
||||
0x17, 0xff, 0xae, 0xed, 0xc4, 0xf6, 0x5b, 0x27, 0x75, 0xf7, 0xdb, 0x1f, 0x5b, 0x08, 0xd4, 0x5d,
|
||||
0x7e, 0x05, 0x2a, 0x92, 0x2a, 0x45, 0x08, 0x71, 0x69, 0x9b, 0xb8, 0x05, 0xab, 0x4d, 0x14, 0xc6,
|
||||
0x69, 0x25, 0xb8, 0xac, 0xc6, 0xbb, 0x13, 0x7b, 0xda, 0xfd, 0xe1, 0xce, 0xcc, 0x36, 0x75, 0xce,
|
||||
0xdc, 0x10, 0x1c, 0x90, 0xf8, 0x07, 0xf8, 0x03, 0x38, 0x73, 0x02, 0x89, 0x13, 0x12, 0x77, 0x24,
|
||||
0x24, 0x8e, 0xfc, 0x15, 0x9c, 0xd0, 0xfc, 0xd8, 0xb5, 0x9d, 0x3a, 0x69, 0x1a, 0xa8, 0x10, 0x82,
|
||||
0xdb, 0xce, 0x9b, 0xe7, 0x37, 0xf3, 0xf9, 0x7c, 0xde, 0x9b, 0x37, 0x63, 0x58, 0xa4, 0x89, 0x20,
|
||||
0x2c, 0xc1, 0xd1, 0xca, 0x90, 0xa5, 0x22, 0x75, 0xce, 0xc6, 0x34, 0x7a, 0x94, 0x71, 0x3d, 0x5a,
|
||||
0xc9, 0x27, 0x5f, 0x68, 0x04, 0x69, 0x1c, 0xa7, 0x89, 0x36, 0x7b, 0xdf, 0x59, 0xb0, 0xb0, 0x91,
|
||||
0xc6, 0xc3, 0x34, 0x21, 0x89, 0xe8, 0x24, 0xbb, 0xa9, 0x73, 0x0e, 0xe6, 0x93, 0x34, 0x24, 0x9d,
|
||||
0xb6, 0x6b, 0xb5, 0xac, 0xe5, 0x32, 0x32, 0x23, 0xc7, 0x81, 0x0a, 0x4b, 0x23, 0xe2, 0x96, 0x5a,
|
||||
0xd6, 0x72, 0x1d, 0xa9, 0x6f, 0xe7, 0x1a, 0x00, 0x17, 0x58, 0x10, 0x3f, 0x48, 0x43, 0xe2, 0x96,
|
||||
0x5b, 0xd6, 0xf2, 0xe2, 0x5a, 0x6b, 0x65, 0xe6, 0xba, 0x2b, 0x5d, 0xe9, 0xb8, 0x91, 0x86, 0x04,
|
||||
0xd5, 0x79, 0xfe, 0xe9, 0x5c, 0x07, 0x20, 0x8f, 0x05, 0xc3, 0x3e, 0x4d, 0x76, 0x53, 0xb7, 0xd2,
|
||||
0x2a, 0x2f, 0xdb, 0x6b, 0x97, 0xa6, 0x03, 0x98, 0xed, 0xde, 0x26, 0xa3, 0x7b, 0x38, 0xca, 0xc8,
|
||||
0x36, 0xa6, 0x0c, 0xd5, 0xd5, 0x8f, 0xe4, 0x76, 0xbd, 0x5f, 0x2c, 0x38, 0x55, 0x00, 0x50, 0x6b,
|
||||
0x70, 0xe7, 0x7d, 0x98, 0x53, 0x4b, 0x28, 0x04, 0xf6, 0xda, 0xab, 0x87, 0xec, 0x68, 0x0a, 0x37,
|
||||
0xd2, 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 0x79, 0x3e,
|
||||
0xeb, 0xde, 0x69, 0xce, 0xe7, 0xda, 0xb1, 0xcf, 0x67, 0xf5, 0x33, 0x73, 0x3e, 0x7f, 0x53, 0x86,
|
||||
0x85, 0x4e, 0xc2, 0x09, 0x13, 0xff, 0xe6, 0x44, 0x72, 0x96, 0xa0, 0xce, 0x49, 0x3f, 0x96, 0x2d,
|
||||
0xbc, 0xed, 0xd6, 0xd4, 0xfc, 0xd8, 0x20, 0x67, 0x83, 0x01, 0x4e, 0x12, 0x12, 0x75, 0xda, 0x6e,
|
||||
0x5d, 0x4b, 0x5b, 0x18, 0x9c, 0x97, 0x01, 0x04, 0x8d, 0x09, 0x17, 0x38, 0x1e, 0x72, 0x17, 0x5a,
|
||||
0xe5, 0xe5, 0x0a, 0x9a, 0xb0, 0xc8, 0xf3, 0x99, 0xa5, 0x7b, 0x9d, 0x36, 0x77, 0xed, 0x56, 0x59,
|
||||
0x36, 0x58, 0x3d, 0x72, 0xde, 0x81, 0x1a, 0x4b, 0xf7, 0xfc, 0x10, 0x0b, 0xec, 0x36, 0x94, 0x78,
|
||||
0x17, 0x66, 0x92, 0xbd, 0x1e, 0xa5, 0x3d, 0x54, 0x65, 0xe9, 0x5e, 0x1b, 0x0b, 0xec, 0x7d, 0x5b,
|
||||
0x82, 0x85, 0x2e, 0xc1, 0x2c, 0x18, 0x9c, 0x5c, 0xb0, 0x37, 0xa1, 0xc9, 0x08, 0xcf, 0x22, 0xe1,
|
||||
0x8f, 0x61, 0x69, 0xe5, 0x4e, 0x69, 0xfb, 0x46, 0x01, 0x2e, 0xa7, 0xbc, 0x7c, 0x04, 0xe5, 0x95,
|
||||
0x19, 0x94, 0x7b, 0xd0, 0x98, 0xe0, 0x97, 0xbb, 0x73, 0x0a, 0xfa, 0x94, 0xcd, 0x69, 0x42, 0x39,
|
||||
0xe4, 0x91, 0x52, 0xac, 0x8e, 0xe4, 0xa7, 0x73, 0x19, 0x4e, 0x0f, 0x23, 0x1c, 0x90, 0x41, 0x1a,
|
||||
0x85, 0x84, 0xf9, 0x7d, 0x96, 0x66, 0x43, 0x25, 0x57, 0x03, 0x35, 0x27, 0x26, 0x3e, 0x90, 0x76,
|
||||
0x67, 0x15, 0xe6, 0x1e, 0x66, 0x84, 0x8d, 0x94, 0x5e, 0x47, 0x92, 0xa7, 0xfd, 0xbc, 0x9f, 0xad,
|
||||
0x31, 0x75, 0x12, 0x25, 0x3f, 0x01, 0x75, 0x27, 0xb9, 0xa9, 0xcc, 0xe4, 0xbb, 0x3c, 0x9b, 0xef,
|
||||
0x8b, 0x60, 0xc7, 0x44, 0x30, 0x1a, 0xf8, 0x62, 0x34, 0xcc, 0xcb, 0x00, 0xb4, 0x69, 0x67, 0x34,
|
||||
0x54, 0x35, 0x30, 0xa0, 0x42, 0x13, 0xda, 0x40, 0xea, 0xdb, 0xfb, 0xc9, 0x82, 0x85, 0x36, 0x89,
|
||||
0x88, 0x20, 0x27, 0xcf, 0x89, 0x19, 0xb5, 0x5a, 0x9a, 0x59, 0xab, 0x53, 0xc5, 0x50, 0x3e, 0xba,
|
||||
0x18, 0x2a, 0x4f, 0x14, 0xc3, 0x25, 0x68, 0x0c, 0x19, 0x8d, 0x31, 0x1b, 0xf9, 0x0f, 0xc8, 0x28,
|
||||
0xcf, 0x0b, 0xdb, 0xd8, 0x6e, 0x93, 0x11, 0xf7, 0xbe, 0xb6, 0xa0, 0x76, 0x2b, 0xca, 0xf8, 0xe0,
|
||||
0x44, 0xb7, 0xba, 0xe9, 0x52, 0x2e, 0x1d, 0x2c, 0xe5, 0x83, 0xb9, 0x5b, 0x7e, 0x4a, 0xee, 0xee,
|
||||
0xe0, 0xbe, 0x11, 0x61, 0xca, 0xe6, 0xfd, 0x6e, 0x41, 0xfd, 0x4e, 0x8a, 0x43, 0xd5, 0x77, 0xfe,
|
||||
0xf2, 0x5d, 0x2e, 0xc1, 0xb8, 0x75, 0xe4, 0x1c, 0x8f, 0x7b, 0xc9, 0x44, 0x4f, 0xa8, 0x4c, 0xf7,
|
||||
0x84, 0x8b, 0x60, 0x53, 0xb9, 0x21, 0x7f, 0x88, 0xc5, 0x40, 0x93, 0x5b, 0x47, 0xa0, 0x4c, 0xdb,
|
||||
0xd2, 0x22, 0x9b, 0x46, 0xee, 0xa0, 0x9a, 0xc6, 0xfc, 0xb1, 0x9b, 0x86, 0x09, 0xa2, 0x9a, 0xc6,
|
||||
0x6f, 0x25, 0x70, 0xbb, 0x7a, 0xb3, 0x32, 0xd3, 0x29, 0x17, 0x34, 0xe0, 0x77, 0x87, 0xa1, 0x7a,
|
||||
0xea, 0x2c, 0x41, 0xbd, 0x5b, 0x20, 0xd3, 0x4f, 0x8a, 0xb1, 0x41, 0xe6, 0xc7, 0x26, 0x89, 0x53,
|
||||
0x36, 0xea, 0xd2, 0x7d, 0x62, 0x80, 0x4f, 0x58, 0x24, 0xb6, 0xad, 0x2c, 0x46, 0xe9, 0x1e, 0x37,
|
||||
0xd2, 0xe4, 0x43, 0x89, 0x2d, 0x50, 0xad, 0xde, 0x97, 0xe9, 0xa4, 0x90, 0x57, 0x10, 0x68, 0x93,
|
||||
0x7c, 0x07, 0x38, 0x17, 0xa0, 0x46, 0x92, 0x50, 0xcf, 0xce, 0xa9, 0xd9, 0x2a, 0x49, 0x42, 0x35,
|
||||
0xd5, 0x81, 0x45, 0xf3, 0x96, 0x49, 0xb9, 0x92, 0x50, 0x1d, 0x3a, 0xf6, 0x9a, 0x77, 0xc8, 0x83,
|
||||
0x6e, 0x93, 0xf7, 0xb7, 0x8d, 0x27, 0x5a, 0xd0, 0xcf, 0x19, 0x33, 0x74, 0x6e, 0x42, 0x43, 0xae,
|
||||
0x52, 0x04, 0xaa, 0x1e, 0x3b, 0x90, 0x4d, 0x92, 0xb0, 0x08, 0xe3, 0x41, 0x83, 0xf2, 0x2d, 0xb2,
|
||||
0x67, 0x98, 0x51, 0x67, 0x58, 0x0d, 0x4d, 0xd9, 0xbc, 0x2f, 0x2d, 0x38, 0xfd, 0x04, 0xcd, 0x27,
|
||||
0xc8, 0xb5, 0xdb, 0x50, 0xeb, 0x92, 0xbe, 0x0c, 0x91, 0xbf, 0xe2, 0x56, 0x0f, 0x7b, 0xa4, 0x1f,
|
||||
0x22, 0x2a, 0x2a, 0x02, 0x78, 0xf7, 0x0b, 0xe9, 0x55, 0x8d, 0xca, 0xa7, 0xaf, 0x3c, 0x78, 0xc2,
|
||||
0xe7, 0x50, 0xac, 0xde, 0xa7, 0x96, 0x7c, 0xa9, 0x86, 0xe4, 0xb1, 0x5a, 0xfa, 0x89, 0xe4, 0xb5,
|
||||
0x4e, 0x92, 0xbc, 0xce, 0x15, 0x38, 0x93, 0x64, 0xb1, 0xcf, 0x48, 0x84, 0x05, 0x09, 0x7d, 0xb3,
|
||||
0x1a, 0x37, 0xab, 0x3b, 0x49, 0x16, 0x23, 0x3d, 0x65, 0x60, 0x72, 0xef, 0x0b, 0x0b, 0xe0, 0x96,
|
||||
0xac, 0x30, 0xbd, 0x8d, 0x83, 0x47, 0x88, 0x75, 0xf4, 0xb5, 0xad, 0x34, 0x5d, 0xa2, 0xeb, 0x79,
|
||||
0x89, 0x72, 0xa5, 0x47, 0x79, 0x16, 0x86, 0x42, 0x8f, 0x31, 0x78, 0x53, 0xc5, 0x5a, 0x83, 0xaf,
|
||||
0x2c, 0x68, 0x4c, 0x48, 0xc5, 0xa7, 0x69, 0xb4, 0x0e, 0x9e, 0x26, 0xaa, 0xa7, 0xc8, 0x0a, 0xf3,
|
||||
0xf9, 0x44, 0xd1, 0xc5, 0xe3, 0xa2, 0xbb, 0x00, 0x35, 0x45, 0xc9, 0x44, 0xd5, 0x25, 0xa6, 0xea,
|
||||
0x2e, 0xc3, 0x69, 0x46, 0x02, 0x92, 0x88, 0x68, 0xe4, 0xc7, 0x69, 0x48, 0x77, 0x29, 0x09, 0x55,
|
||||
0xed, 0xd5, 0x50, 0x33, 0x9f, 0xd8, 0x34, 0x76, 0xef, 0x47, 0x0b, 0x16, 0x3f, 0x92, 0xad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x1a, 0x3d, 0x14, 0x00,
|
||||
0x00,
|
||||
}
|
||||
|
@ -858,7 +858,7 @@ func (node *ProxyNode) getSegmentsOfCollection(ctx context.Context, dbName strin
|
||||
|
||||
func (node *ProxyNode) RegisterLink(request *commonpb.Empty) (*milvuspb.RegisterLinkResponse, error) {
|
||||
code := node.stateCode.Load().(internalpb2.StateCode)
|
||||
if code != internalpb2.StateCode_HEALTHY {
|
||||
if code != internalpb2.StateCode_Healthy {
|
||||
return &milvuspb.RegisterLinkResponse{
|
||||
Address: nil,
|
||||
Status: &commonpb.Status{
|
||||
|
@ -65,7 +65,7 @@ func NewProxyNode(ctx context.Context, factory msgstream.Factory) (*ProxyNode, e
|
||||
cancel: cancel,
|
||||
msFactory: factory,
|
||||
}
|
||||
node.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
return node, nil
|
||||
|
||||
}
|
||||
@ -236,7 +236,7 @@ func (node *ProxyNode) Start() error {
|
||||
cb()
|
||||
}
|
||||
|
||||
node.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
log.Debug("proxy node is healthy ...")
|
||||
|
||||
return nil
|
||||
|
@ -136,7 +136,7 @@ func (s *ProxyService) Init() error {
|
||||
}
|
||||
|
||||
func (s *ProxyService) Start() error {
|
||||
s.stateCode = internalpb2.StateCode_HEALTHY
|
||||
s.stateCode = internalpb2.StateCode_Healthy
|
||||
s.sched.Start()
|
||||
log.Debug("start scheduler ...")
|
||||
return s.tick.Start()
|
||||
|
@ -39,7 +39,7 @@ func NewProxyService(ctx context.Context, factory msgstream.Factory) (*ProxyServ
|
||||
s.allocator = NewNodeIDAllocator()
|
||||
s.sched = NewTaskScheduler(ctx1)
|
||||
s.nodeInfos = NewGlobalNodeInfoTable()
|
||||
s.stateCode = internalpb2.StateCode_ABNORMAL
|
||||
s.stateCode = internalpb2.StateCode_Abnormal
|
||||
|
||||
return s, nil
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ func NewQueryNode(ctx context.Context, queryNodeID UniqueID, factory msgstream.F
|
||||
}
|
||||
|
||||
node.replica = newCollectionReplica()
|
||||
node.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
return node
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ func NewQueryNodeWithoutID(ctx context.Context, factory msgstream.Factory) *Quer
|
||||
}
|
||||
|
||||
node.replica = newCollectionReplica()
|
||||
node.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
|
||||
return node
|
||||
}
|
||||
@ -182,12 +182,12 @@ func (node *QueryNode) Start() error {
|
||||
//go node.metaService.start()
|
||||
go node.loadService.start()
|
||||
go node.statsService.start()
|
||||
node.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (node *QueryNode) Stop() error {
|
||||
node.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
node.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
node.queryNodeLoopCancel()
|
||||
|
||||
// free collectionReplica
|
||||
|
@ -99,7 +99,7 @@ func (qs *QueryService) Init() error {
|
||||
}
|
||||
|
||||
func (qs *QueryService) Start() error {
|
||||
qs.UpdateStateCode(internalpb2.StateCode_HEALTHY)
|
||||
qs.UpdateStateCode(internalpb2.StateCode_Healthy)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ func (qs *QueryService) Stop() error {
|
||||
return err
|
||||
}
|
||||
qs.loopCancel()
|
||||
qs.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
qs.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -127,7 +127,7 @@ func (qs *QueryService) GetComponentStates(ctx context.Context) (*internalpb2.Co
|
||||
if err != nil {
|
||||
subComponentInfos = append(subComponentInfos, &internalpb2.ComponentInfo{
|
||||
NodeID: nodeID,
|
||||
StateCode: internalpb2.StateCode_ABNORMAL,
|
||||
StateCode: internalpb2.StateCode_Abnormal,
|
||||
})
|
||||
continue
|
||||
}
|
||||
@ -681,7 +681,7 @@ func NewQueryService(ctx context.Context, factory msgstream.Factory) (*QueryServ
|
||||
opentracing.SetGlobalTracer(tracer)
|
||||
service.closer = closer
|
||||
|
||||
service.UpdateStateCode(internalpb2.StateCode_ABNORMAL)
|
||||
service.UpdateStateCode(internalpb2.StateCode_Abnormal)
|
||||
return service, nil
|
||||
}
|
||||
|
||||
|
@ -76,15 +76,15 @@ func WaitForComponentStates(ctx context.Context, service StateComponent, service
|
||||
}
|
||||
|
||||
func WaitForComponentInitOrHealthy(ctx context.Context, service StateComponent, serviceName string, attempts int, sleep time.Duration) error {
|
||||
return WaitForComponentStates(ctx, service, serviceName, []internalpb2.StateCode{internalpb2.StateCode_INITIALIZING, internalpb2.StateCode_HEALTHY}, attempts, sleep)
|
||||
return WaitForComponentStates(ctx, service, serviceName, []internalpb2.StateCode{internalpb2.StateCode_Initializing, internalpb2.StateCode_Healthy}, attempts, sleep)
|
||||
}
|
||||
|
||||
func WaitForComponentInit(ctx context.Context, service StateComponent, serviceName string, attempts int, sleep time.Duration) error {
|
||||
return WaitForComponentStates(ctx, service, serviceName, []internalpb2.StateCode{internalpb2.StateCode_INITIALIZING}, attempts, sleep)
|
||||
return WaitForComponentStates(ctx, service, serviceName, []internalpb2.StateCode{internalpb2.StateCode_Initializing}, attempts, sleep)
|
||||
}
|
||||
|
||||
func WaitForComponentHealthy(ctx context.Context, service StateComponent, serviceName string, attempts int, sleep time.Duration) error {
|
||||
return WaitForComponentStates(ctx, service, serviceName, []internalpb2.StateCode{internalpb2.StateCode_HEALTHY}, attempts, sleep)
|
||||
return WaitForComponentStates(ctx, service, serviceName, []internalpb2.StateCode{internalpb2.StateCode_Healthy}, attempts, sleep)
|
||||
}
|
||||
|
||||
func ParseIndexParamsMap(mStr string) (map[string]string, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user