Skip to content

Commit eaf9ee9

Browse files
authored
Fix elastic search index name for ExecutionStatus (#544)
1 parent cdb2bff commit eaf9ee9

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

config/dynamicconfig/development_es.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ frontend.validSearchAttributes:
1313
StartTime: "Int"
1414
ExecutionTime: "Int"
1515
CloseTime: "Int"
16-
Status: "Int"
16+
ExecutionStatus: "Int"
1717
HistoryLength: "Int"
1818
TaskQueue: "Keyword"
1919
CustomStringField: "String"
@@ -22,6 +22,8 @@ frontend.validSearchAttributes:
2222
CustomDoubleField: "Double"
2323
CustomBoolField: "Bool"
2424
CustomDatetimeField: "Datetime"
25+
TemporalChangeVersion: "Keyword"
26+
BinaryChecksums: "Keyword"
2527
project: "Keyword"
2628
service: "Keyword"
2729
environment: "Keyword"
@@ -31,7 +33,6 @@ frontend.validSearchAttributes:
3133
CustomNamespace: "Keyword"
3234
Operator: "Keyword"
3335
RolloutId: "Keyword"
34-
TemporalChangeVersion: "Keyword"
35-
BinaryChecksums: "Keyword"
36+
3637
system.minRetentionDays:
3738
- value: 0

docker/dependencies/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ services:
5353
- temporal-dependencies-network
5454
elasticsearch:
5555
image: elasticsearch:6.8.8
56+
# Make ES available both on _local_ and _site_,
57+
# and use use _local_ for the publish_host.
58+
#
59+
# See here for details on network configuration:
60+
# https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html
61+
command: elasticsearch -Enetwork.host=_local_,_site_ -Enetwork.publish_host=_local_
5662
container_name: temporal-elasticsearch
5763
ports:
5864
- "9200:9200"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ require (
4242
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
4343
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
4444
github.com/olekukonko/tablewriter v0.0.4
45-
github.com/olivere/elastic v6.2.32+incompatible
45+
github.com/olivere/elastic v6.2.34+incompatible
4646
github.com/onsi/ginkgo v1.10.3 // indirect
4747
github.com/onsi/gomega v1.7.1 // indirect
4848
github.com/pborman/uuid v1.2.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWb
268268
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
269269
github.com/olekukonko/tablewriter v0.0.4 h1:vHD/YYe1Wolo78koG299f7V/VAS08c6IpCLn+Ejf/w8=
270270
github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA=
271-
github.com/olivere/elastic v6.2.32+incompatible h1:xieFzqQcQzxMmP5fb8LP+Ayk6Ap02fs72EO5/wEjCuE=
272-
github.com/olivere/elastic v6.2.32+incompatible/go.mod h1:J+q1zQJTgAz9woqsbVRqGeB5G1iqDKVBWLNSYW8yfJ8=
271+
github.com/olivere/elastic v6.2.34+incompatible h1:GdvWBAqyIyEEUd+J2sSj6EnIaBywz7zZtN+Ps4JCv0g=
272+
github.com/olivere/elastic v6.2.34+incompatible/go.mod h1:J+q1zQJTgAz9woqsbVRqGeB5G1iqDKVBWLNSYW8yfJ8=
273273
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
274274
github.com/onsi/ginkgo v1.10.3 h1:OoxbjfXVZyod1fmWYhI7SEyaD8B00ynP3T+D5GiyHOY=
275275
github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=

schema/elasticsearch/visibility/index_template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"type": "long"
3636
},
3737
"ExecutionStatus": {
38-
"type": "integer"
38+
"type": "long"
3939
},
4040
"HistoryLength": {
41-
"type": "integer"
41+
"type": "long"
4242
},
4343
"KafkaKey": {
4444
"type": "keyword"

0 commit comments

Comments
 (0)