Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into input_size_seal
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindvs committed Feb 17, 2017
2 parents 2f624ab + d9b381a commit 7dcd260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions services/replicator/metadataReconciler.go
Expand Up @@ -71,7 +71,7 @@ const (
runInterval = time.Duration(10 * time.Minute)
metadataListRequestPageSize = 50
storeCallTimeout = 10 * time.Second
extentMissingDurationThreshold = time.Duration(24 * time.Hour)
extentMissingDurationThreshold = time.Duration(1 * time.Hour)
)

// NewMetadataReconciler returns an instance of MetadataReconciler
Expand Down Expand Up @@ -621,7 +621,7 @@ func (r *metadataReconciler) sealExtentInStore(destUUID string, extentUUID strin

var errorOccured bool
for _, store := range readExtentResult.GetExtentStats().GetExtent().GetStoreUUIDs() {
storeClient, _, err := r.replicator.clientFactory.GetThriftStoreClientUUID(store, destUUID)
storeClient, _, err := r.replicator.GetClientFactory().GetThriftStoreClientUUID(store, destUUID)
if err != nil {
lclLg.WithFields(bark.Fields{
common.TagErr: err,
Expand Down
2 changes: 0 additions & 2 deletions services/replicator/replicator.go
Expand Up @@ -61,7 +61,6 @@ type (
tenancy string
defaultAuthoritativeZone string
replicatorclientFactory ClientFactory
clientFactory common.ClientFactory
remoteReplicatorConn map[string]*outConnection
remoteReplicatorConnMutex sync.RWMutex
storehostConn map[string]*outConnection
Expand Down Expand Up @@ -123,7 +122,6 @@ func NewReplicator(serviceName string, sVice common.SCommon, metadataClient meta
defaultAuthoritativeZone: config.GetReplicatorConfig().GetDefaultAuthoritativeZone(),
tenancy: tenancy,
replicatorclientFactory: replicatorClientFactory,
clientFactory: sVice.GetClientFactory(),
remoteReplicatorConn: make(map[string]*outConnection),
storehostConn: make(map[string]*outConnection),
}
Expand Down

0 comments on commit 7dcd260

Please sign in to comment.