Skip to content

Commit e5a59ff

Browse files
committed
Update to latest release and cleanup
This commit updates Elasticsearch stack to 7.9.0. Furthermore, we update the tests to use Go 1.14.x and 1.15.x. We also added deprecation notice to the Flush Synced API.
1 parent 23827ac commit e5a59ff

7 files changed

+10
-10
lines changed

.github/workflows/codeql-v7.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
codeql:
1515
strategy:
1616
matrix:
17-
go-version: [1.13.x, 1.14.x]
17+
go-version: [1.14.x, 1.15.x]
1818
os: [ubuntu-latest]
1919
name: Run ${{ matrix.go-version }} on ${{ matrix.os }}
2020
runs-on: ${{ matrix.os }}

.github/workflows/test-v7.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
go-version: [1.13.x, 1.14.x]
13+
go-version: [1.14.x, 1.15.x]
1414
os: [ubuntu-latest]
1515
name: Run ${{ matrix.go-version }} on ${{ matrix.os }}
1616
runs-on: ${{ matrix.os }}

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: test
2+
test:
3+
go test -race -deprecations -strict-decoder -v . ./aws/... ./config/... ./trace/... ./uritemplates/...

docker-compose.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
services:
44
elasticsearch:
5-
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.8.0
5+
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.0
66
hostname: elasticsearch
77
environment:
88
- cluster.name=elasticsearch
@@ -28,13 +28,12 @@ services:
2828
ports:
2929
- 9200:9200
3030
platinum:
31-
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0
31+
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.0
3232
hostname: elasticsearch-platinum
3333
environment:
3434
- cluster.name=platinum
3535
- bootstrap.memory_lock=true
3636
- discovery.type=single-node
37-
- xpack.ilm.enabled=true
3837
- xpack.license.self_generated.type=trial
3938
- xpack.security.enabled=true
4039
- xpack.watcher.enabled=true

indices_flush_synced.go

+3
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ func (s *IndicesSyncedFlushService) Validate() error {
159159
}
160160

161161
// Do executes the service.
162+
//
163+
// Deprecated: Synced flush is deprecated and will be removed in 8.0.
164+
// Use flush at _/flush or /{index}/_flush instead.
162165
func (s *IndicesSyncedFlushService) Do(ctx context.Context) (*IndicesSyncedFlushResponse, error) {
163166
// Check pre-conditions
164167
if err := s.Validate(); err != nil {

run-es.sh

-3
This file was deleted.

run-tests.sh

-2
This file was deleted.

0 commit comments

Comments
 (0)