Remove datacoord useless code (#7673)

Issue: #7624
Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/7676/head
sunby 2021-09-09 19:08:03 +08:00 committed by GitHub
parent 624ea2f676
commit 49b6c3101d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 10 deletions

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)