Skip to content

Commit

Permalink
adjust log and check timer
Browse files Browse the repository at this point in the history
  • Loading branch information
absolute8511 committed Aug 17, 2017
1 parent 3da74ba commit 3b93093
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/datanode_coord/dn_schema_coord.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func (dc *DataCoordinator) doSyncSchemaInfo(localNamespace *node.NamespaceNode,
indexSchemas map[string]*common.IndexSchema) {

cluster.CoordLog().Infof("namespace %v checking schema sync: %v",
cluster.CoordLog().Debugf("namespace %v checking schema sync: %v",
localNamespace.FullName(), len(indexSchemas))
for table, tindexes := range indexSchemas {
localIndexSchema, err := localNamespace.Node.GetIndexSchema(table)
Expand Down
2 changes: 1 addition & 1 deletion cluster/pdnode_coord/pd_coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func (pdCoord *PDCoordinator) triggerCheckNamespaces(namespace string, part int,
// check if replication is enough
// check any unexpected state.
func (pdCoord *PDCoordinator) checkNamespaces(monitorChan chan struct{}) {
ticker := time.NewTicker(time.Second * 30)
ticker := time.NewTicker(time.Second * 60)
waitingMigrateNamespace := make(map[string]map[int]time.Time)
defer func() {
ticker.Stop()
Expand Down
2 changes: 1 addition & 1 deletion cluster/pdnode_coord/pd_schema_coord.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (pdCoord *PDCoordinator) doSchemaCheck() {
isReady = false
break
}
cluster.CoordLog().Infof("namespace %v got schema : %v", common.GetNsDesp(ns, pid),
cluster.CoordLog().Debugf("namespace %v got schema : %v", common.GetNsDesp(ns, pid),
len(schemas))
allPartsSchema[pid] = schemas
}
Expand Down

0 comments on commit 3b93093

Please sign in to comment.