Skip to content

Commit

Permalink
Merge "[FAB-3317] Update peer CouchDB timeout"
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristidis authored and Gerrit Code Review committed Apr 21, 2017
2 parents 6fdce35 + 5628d8e commit d661d11
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/chaincode/chaincodetest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ ledger:
# Number of retries for CouchDB errors during peer startup
maxRetriesOnStartup: 10
# CouchDB request timeout (unit: duration, e.g. 20s)
requestTimeout: 20s
requestTimeout: 35s

# Limit on the number of records to return per query
queryLimit: 10000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestMain(m *testing.M) {
viper.Set("ledger.state.couchDBConfig.password", "")
viper.Set("ledger.state.couchDBConfig.maxRetries", 3)
viper.Set("ledger.state.couchDBConfig.maxRetriesOnStartup", 10)
viper.Set("ledger.state.couchDBConfig.requestTimeout", time.Second*20)
viper.Set("ledger.state.couchDBConfig.requestTimeout", time.Second*35)

//run the actual test
result := m.Run()
Expand Down
2 changes: 1 addition & 1 deletion core/ledger/kvledger/txmgmt/txmgr/commontests/pkg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (env *couchDBLockBasedEnv) init(t *testing.T, testLedgerID string) {
viper.Set("ledger.state.couchDBConfig.password", "")
viper.Set("ledger.state.couchDBConfig.maxRetries", 3)
viper.Set("ledger.state.couchDBConfig.maxRetriesOnStartup", 10)
viper.Set("ledger.state.couchDBConfig.requestTimeout", time.Second*20)
viper.Set("ledger.state.couchDBConfig.requestTimeout", time.Second*35)
testDBEnv := statecouchdb.NewTestVDBEnv(t)
testDB, err := testDBEnv.DBProvider.GetDBHandle(testLedgerID)
testutil.AssertNoError(t, err, "")
Expand Down
2 changes: 1 addition & 1 deletion core/ledger/ledgerconfig/ledger_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestGetCouchDBDefinition(t *testing.T) {
testutil.AssertEquals(t, couchDBDef.Password, "")
testutil.AssertEquals(t, couchDBDef.MaxRetries, 3)
testutil.AssertEquals(t, couchDBDef.MaxRetriesOnStartup, 10)
testutil.AssertEquals(t, couchDBDef.RequestTimeout, time.Second*20)
testutil.AssertEquals(t, couchDBDef.RequestTimeout, time.Second*35)
}

func TestIsHistoryDBEnabledDefault(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion core/ledger/util/couchdb/couchdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestMain(m *testing.M) {
viper.Set("ledger.state.couchDBConfig.password", "")
viper.Set("ledger.state.couchDBConfig.maxRetries", 3)
viper.Set("ledger.state.couchDBConfig.maxRetriesOnStartup", 10)
viper.Set("ledger.state.couchDBConfig.requestTimeout", time.Second*20)
viper.Set("ledger.state.couchDBConfig.requestTimeout", time.Second*35)

// Create CouchDB definition from config parameters
couchDBDef = ledgerconfig.GetCouchDBDefinition()
Expand Down
2 changes: 1 addition & 1 deletion peer/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ ledger:
# Number of retries for CouchDB errors during peer startup
maxRetriesOnStartup: 10
# CouchDB request timeout (unit: duration, e.g. 20s)
requestTimeout: 20s
requestTimeout: 35s

# Limit on the number of records to return per query
queryLimit: 10000
Expand Down

0 comments on commit d661d11

Please sign in to comment.