Skip to content

Commit

Permalink
Fix issue that elastic search cannot handle values with different typ…
Browse files Browse the repository at this point in the history
…e for the same key. (cadence-workflow#1397)
  • Loading branch information
wxing1292 authored Jan 17, 2019
1 parent a3634d6 commit 8d81a07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions common/logging/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
TagHistoryBuilderAction = "history-builder-action"
TagStoreOperation = "store-operation"
TagDomainID = "domain-id"
TagDomainIDs = "domain-ids"
TagWorkflowExecutionID = "execution-id"
TagWorkflowRunID = "run-id"
TagHistoryShardID = "shard-id"
Expand Down
2 changes: 1 addition & 1 deletion service/history/historyEngine.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (e *historyEngineImpl) registerDomainFailoverCallback() {

if len(failoverDomainIDs) > 0 {
e.logger.WithFields(bark.Fields{
logging.TagDomainID: failoverDomainIDs,
logging.TagDomainIDs: failoverDomainIDs,
}).Infof("Domain Failover Start.")

e.txProcessor.FailoverDomain(failoverDomainIDs)
Expand Down
2 changes: 1 addition & 1 deletion service/history/timerQueueActiveProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func newTimerQueueFailoverProcessor(shard ShardContext, historyService *historyE

logger = logger.WithFields(bark.Fields{
logging.TagWorkflowCluster: currentClusterName,
logging.TagDomainID: domainIDs,
logging.TagDomainIDs: domainIDs,
logging.TagFailover: "from: " + standbyClusterName,
})
timerTaskFilter := func(timer *persistence.TimerTaskInfo) (bool, error) {
Expand Down
2 changes: 1 addition & 1 deletion service/history/transferQueueActiveProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func newTransferQueueFailoverProcessor(shard ShardContext, historyService *histo
failoverUUID := uuid.New()
logger = logger.WithFields(bark.Fields{
logging.TagWorkflowCluster: currentClusterName,
logging.TagDomainID: domainIDs,
logging.TagDomainIDs: domainIDs,
logging.TagFailover: "from: " + standbyClusterName,
})
transferTaskFilter := func(task *persistence.TransferTaskInfo) (bool, error) {
Expand Down

0 comments on commit 8d81a07

Please sign in to comment.