Skip to content

Commit 4040191

Browse files
authored
Rename cadence-cluster-topics to temporal-cluster-topics (#612)
1 parent 7a9752b commit 4040191

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

common/messaging/kafkaClient.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ func (c *kafkaClient) NewConsumer(app, consumerName string, concurrency int) (Co
108108

109109
// NewConsumerWithClusterName is used to create a Kafka consumer for consuming replication tasks
110110
func (c *kafkaClient) NewConsumerWithClusterName(currentCluster, sourceCluster, consumerName string, concurrency int) (Consumer, error) {
111-
currentTopics := c.config.getTopicsForCadenceCluster(currentCluster)
112-
sourceTopics := c.config.getTopicsForCadenceCluster(sourceCluster)
111+
currentTopics := c.config.getTopicsForTemporalCluster(currentCluster)
112+
sourceTopics := c.config.getTopicsForTemporalCluster(sourceCluster)
113113
kafkaClusterNameForTopic := c.config.getKafkaClusterForTopic(sourceTopics.Topic)
114114
kafkaClusterNameForDLQTopic := c.config.getKafkaClusterForTopic(currentTopics.DLQTopic)
115115

@@ -153,7 +153,7 @@ func (c *kafkaClient) NewProducer(app string) (Producer, error) {
153153

154154
// NewProducerWithClusterName is used to create a Kafka producer for shipping replication tasks
155155
func (c *kafkaClient) NewProducerWithClusterName(sourceCluster string) (Producer, error) {
156-
topics := c.config.getTopicsForCadenceCluster(sourceCluster)
156+
topics := c.config.getTopicsForTemporalCluster(sourceCluster)
157157
return c.newProducerHelper(topics.Topic)
158158
}
159159

common/messaging/kafkaConfig.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type (
3636
TLS auth.TLS `yaml:"tls"`
3737
Clusters map[string]ClusterConfig `yaml:"clusters"`
3838
Topics map[string]TopicConfig `yaml:"topics"`
39-
ClusterToTopic map[string]TopicList `yaml:"cadence-cluster-topics"`
39+
ClusterToTopic map[string]TopicList `yaml:"temporal-cluster-topics"`
4040
Applications map[string]TopicList `yaml:"applications"`
4141
}
4242

@@ -99,8 +99,8 @@ func (k *KafkaConfig) Validate(checkCluster bool, checkApp bool) {
9999
}
100100
}
101101

102-
func (k *KafkaConfig) getTopicsForCadenceCluster(cadenceCluster string) TopicList {
103-
return k.ClusterToTopic[cadenceCluster]
102+
func (k *KafkaConfig) getTopicsForTemporalCluster(temporalCluster string) TopicList {
103+
return k.ClusterToTopic[temporalCluster]
104104
}
105105

106106
func (k *KafkaConfig) getKafkaClusterForTopic(topic string) string {

common/persistence/serializer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func NewSerializationError(msg string) *SerializationError {
423423
}
424424

425425
func (e *SerializationError) Error() string {
426-
return fmt.Sprintf("cadence serialization error: %v", e.msg)
426+
return fmt.Sprintf("serialization error: %v", e.msg)
427427
}
428428

429429
// NewDeserializationError returns a DeserializationError
@@ -432,5 +432,5 @@ func NewDeserializationError(msg string) *DeserializationError {
432432
}
433433

434434
func (e *DeserializationError) Error() string {
435-
return fmt.Sprintf("cadence deserialization error: %v", e.msg)
435+
return fmt.Sprintf("deserialization error: %v", e.msg)
436436
}

config/development_active.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ kafka:
110110
cluster: test
111111
other-dlq:
112112
cluster: test
113-
cadence-cluster-topics:
113+
temporal-cluster-topics:
114114
active:
115115
topic: active
116116
dlq-topic: active-dlq

config/development_other.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ kafka:
111111
cluster: test
112112
other-dlq:
113113
cluster: test
114-
cadence-cluster-topics:
114+
temporal-cluster-topics:
115115
active:
116116
topic: active
117117
dlq-topic: active-dlq

config/development_standby.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ kafka:
111111
cluster: test
112112
other-dlq:
113113
cluster: test
114-
cadence-cluster-topics:
114+
temporal-cluster-topics:
115115
active:
116116
topic: active
117117
dlq-topic: active-dlq

docker/config_template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ namespaceDefaults:
194194
URI: "file:///tmp/temporal_archival/development"
195195
visibility:
196196
state: "enabled"
197-
URI: "file:///tmp/cadence_vis_archival/development"
197+
URI: "file:///tmp/temporal_vis_archival/development"
198198

199199
kafka:
200200
tls:

host/testdata/ndc_integration_test_clusters.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
cluster: test
6363
other-dlq:
6464
cluster: test
65-
cadence-cluster-topics:
65+
temporal-cluster-topics:
6666
active:
6767
topic: active
6868
dlq-topic: active-dlq
@@ -137,7 +137,7 @@
137137
cluster: test
138138
other-dlq:
139139
cluster: test
140-
cadence-cluster-topics:
140+
temporal-cluster-topics:
141141
active:
142142
topic: active
143143
dlq-topic: active-dlq
@@ -212,7 +212,7 @@
212212
cluster: test
213213
other-dlq:
214214
cluster: test
215-
cadence-cluster-topics:
215+
temporal-cluster-topics:
216216
active:
217217
topic: active
218218
dlq-topic: active-dlq

host/testdata/xdc_integration_es_clusters.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
cluster: test
5757
test-visibility-topic-0-dlq:
5858
cluster: test
59-
cadence-cluster-topics:
59+
temporal-cluster-topics:
6060
active-es:
6161
topic: active-es
6262
dlq-topic: active-es-dlq
@@ -132,7 +132,7 @@
132132
cluster: test
133133
test-visibility-topic-1-dlq:
134134
cluster: test
135-
cadence-cluster-topics:
135+
temporal-cluster-topics:
136136
active-es:
137137
topic: active-es
138138
dlq-topic: active-es-dlq

host/testdata/xdc_integration_test_clusters.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
cluster: test
5353
standby-dlq:
5454
cluster: test
55-
cadence-cluster-topics:
55+
temporal-cluster-topics:
5656
active:
5757
topic: active
5858
dlq-topic: active-dlq
@@ -114,7 +114,7 @@
114114
cluster: test
115115
standby-dlq:
116116
cluster: test
117-
cadence-cluster-topics:
117+
temporal-cluster-topics:
118118
active:
119119
topic: active
120120
dlq-topic: active-dlq

0 commit comments

Comments
 (0)