[skip e2e] Remove useless configuration rootcoord.timeout (#14852)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
pull/14880/head
Cai Yudong 2022-01-05 19:05:25 +08:00 committed by GitHub
parent 2199a4b5a7
commit d01931d8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 12 deletions

View File

@ -62,7 +62,6 @@ rootCoord:
dmlChannelNum: 256 # The number of dml channels created at system startup
maxPartitionNum: 4096 # Maximum number of partitions in a collection
minSegmentSizeToEnableIndex: 1024 # It's a threshold. When the segment size is less than this value, the segment will not be indexed
timeout: 3600 # time out, 5 seconds
# Related configuration of proxy, used to validate client requests and reduce the returned results.
proxy:

View File

@ -308,8 +308,6 @@ type rootCoordConfig struct {
DefaultIndexName string
MinSegmentSizeToEnableIndex int64
Timeout int
CreatedTime time.Time
UpdatedTime time.Time
}
@ -334,8 +332,6 @@ func (p *rootCoordConfig) init(bp *BaseParamTable) {
p.initMinSegmentSizeToEnableIndex()
p.initDefaultPartitionName()
p.initDefaultIndexName()
p.initTimeout()
}
func (p *rootCoordConfig) initPulsarAddress() {
@ -445,10 +441,6 @@ func (p *rootCoordConfig) initDefaultIndexName() {
p.DefaultIndexName = name
}
func (p *rootCoordConfig) initTimeout() {
p.Timeout = p.BaseParams.ParseIntWithDefault("rootCoord.timeout", 3600)
}
///////////////////////////////////////////////////////////////////////////////
// --- proxy ---
type proxyConfig struct {

View File

@ -73,9 +73,6 @@ func TestGlobalParamTable(t *testing.T) {
assert.NotEqual(t, Params.DefaultIndexName, "")
t.Logf("default index name = %s", Params.DefaultIndexName)
assert.NotZero(t, Params.Timeout)
t.Logf("master timeout = %d", Params.Timeout)
Params.CreatedTime = time.Now()
Params.UpdatedTime = time.Now()
t.Logf("created time: %v", Params.CreatedTime)