mirror of https://github.com/milvus-io/milvus.git
Remove datacoord useless code (#7673)
Issue: #7624 Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/7676/head
parent
624ea2f676
commit
49b6c3101d
|
@ -147,7 +147,6 @@ func TestMeta_Basic(t *testing.T) {
|
|||
t.Run("Test GetCount", func(t *testing.T) {
|
||||
const rowCount0 = 100
|
||||
const rowCount1 = 300
|
||||
const dim = 1024
|
||||
|
||||
// no segment
|
||||
nums := meta.GetNumRowsOfCollection(collID)
|
||||
|
|
|
@ -79,8 +79,6 @@ func AllocatePolicyV1(segments []*SegmentInfo, count int64,
|
|||
return newSegmentAllocations, existedSegmentAllocations
|
||||
}
|
||||
|
||||
type sealPolicy func(maxCount, writtenCount, allocatedCount int64) bool
|
||||
|
||||
// segmentSealPolicy seal policy applies to segment
|
||||
type segmentSealPolicy func(segment *SegmentInfo, ts Timestamp) bool
|
||||
|
||||
|
|
|
@ -41,11 +41,7 @@ import (
|
|||
"github.com/milvus-io/milvus/internal/proto/milvuspb"
|
||||
)
|
||||
|
||||
const (
|
||||
rootCoordClientTimout = 20 * time.Second
|
||||
connEtcdMaxRetryTime = 100000
|
||||
connEtcdRetryInterval = 200 * time.Millisecond
|
||||
)
|
||||
const connEtcdMaxRetryTime = 100000
|
||||
|
||||
var (
|
||||
// TODO: sunby put to config
|
||||
|
@ -95,7 +91,6 @@ type Server struct {
|
|||
allocator allocator
|
||||
cluster *Cluster
|
||||
rootCoordClient types.RootCoord
|
||||
ddChannelName string
|
||||
|
||||
metricsCacheManager *metricsinfo.MetricsCacheManager
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@ func TestAssignSegmentID(t *testing.T) {
|
|||
const collIDInvalid = 101
|
||||
const partID = 0
|
||||
const channel0 = "channel0"
|
||||
const channel1 = "channel1"
|
||||
|
||||
t.Run("assign segment normally", func(t *testing.T) {
|
||||
svr := newTestServer(t, nil)
|
||||
|
|
Loading…
Reference in New Issue