Skip to content

Commit

Permalink
Merge branch 'main' into build/bump-ubuntu-22
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall authored Oct 6, 2023
2 parents 49219f1 + 0e174d1 commit c6571a5
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "14d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "7d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "14d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "7d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "14d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "7d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "14d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "7d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"actions": {
"rollover": {
"max_age": "30d",
"max_size": "50gb"
"max_primary_shard_size": "50gb"
},
"set_priority": {
"priority": 100
Expand Down
4 changes: 4 additions & 0 deletions changelogs/head.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ https://github.com/elastic/apm-server/compare/8.11\...main[View commits]
[float]
==== Breaking Changes

[float]
==== Bug fixes
- Switch built-in ILM rollover policies from max_size to max_primary_shard_size {pull}11729[11729].

[float]
==== Deprecations

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ x-logging: &default-logging
max-size: "1g"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0-4e7ff248-SNAPSHOT
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0-867cd584-SNAPSHOT
ports:
- 9200:9200
healthcheck:
Expand Down Expand Up @@ -41,7 +41,7 @@ services:
logging: *default-logging

kibana:
image: docker.elastic.co/kibana/kibana:8.11.0-4e7ff248-SNAPSHOT
image: docker.elastic.co/kibana/kibana:8.11.0-867cd584-SNAPSHOT
ports:
- 5601:5601
healthcheck:
Expand All @@ -60,7 +60,7 @@ services:
logging: *default-logging

metricbeat:
image: docker.elastic.co/beats/metricbeat:8.11.0-4e7ff248-SNAPSHOT
image: docker.elastic.co/beats/metricbeat:8.11.0-867cd584-SNAPSHOT
environment:
ELASTICSEARCH_HOSTS: '["http://elasticsearch:9200"]'
ELASTICSEARCH_USERNAME: "${KIBANA_ES_USER:-admin}"
Expand Down
2 changes: 1 addition & 1 deletion internal/beater/middleware/recover_panic_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func RecoverPanicMiddleware() Middleware {
// set the context's result and write response
var ok bool
var err error
if err, ok = r.(error); !ok {
if err, ok = r.(error); ok {
err = errors.Wrap(err, status.Keyword)
}
c.Result.Set(id, status.Code, status.Keyword, keywordPanic, err)
Expand Down
2 changes: 1 addition & 1 deletion packaging/ironbank/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
################################################################################
ARG BASE_REGISTRY=registry1.dsop.io
ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8
ARG BASE_TAG=8.7
ARG BASE_TAG=8.8

FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} AS prep_files

Expand Down
2 changes: 1 addition & 1 deletion packaging/ironbank/hardening_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tags:
# Build args passed to Dockerfile ARGs
args:
BASE_IMAGE: "redhat/ubi/ubi8"
BASE_TAG: "8.7"
BASE_TAG: "8.8"
ELASTIC_STACK: "${APM_SERVER_VERSION}"
ELASTIC_PRODUCT: "apm-server"

Expand Down
4 changes: 2 additions & 2 deletions testing/infra/k8s/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resources:
- https://download.elastic.co/downloads/eck/2.4.0/crds.yaml
- https://download.elastic.co/downloads/eck/2.4.0/operator.yaml
- https://download.elastic.co/downloads/eck/2.9.0/crds.yaml
- https://download.elastic.co/downloads/eck/2.9.0/operator.yaml
- stack/elasticsearch.yaml
- stack/kibana.yaml
- stack/apm-server.yaml
2 changes: 1 addition & 1 deletion testing/infra/k8s/base/stack/apm-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ApmServer
metadata:
name: apm-server
spec:
version: 8.11.0-4e7ff248-SNAPSHOT
version: 8.11.0-867cd584-SNAPSHOT
count: 1
http:
tls:
Expand Down
2 changes: 1 addition & 1 deletion testing/infra/k8s/base/stack/elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Elasticsearch
metadata:
name: elasticsearch
spec:
version: 8.11.0-4e7ff248-SNAPSHOT
version: 8.11.0-867cd584-SNAPSHOT
auth:
fileRealm:
- secretName: elasticsearch-admin
Expand Down
2 changes: 1 addition & 1 deletion testing/infra/k8s/base/stack/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kibana
metadata:
name: kibana
spec:
version: 8.11.0-4e7ff248-SNAPSHOT
version: 8.11.0-867cd584-SNAPSHOT
count: 1
elasticsearchRef:
name: elasticsearch
Expand Down
6 changes: 3 additions & 3 deletions testing/smoke/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,15 +262,15 @@ legacy_assert_ilm() {
SUCCESS=false
fi
local ILM_HOT_PHASE=$(echo ${ILM_PHASES} | jq '.hot')
local ILM_HOT_PHASE_MAX_SIZE=$(echo ${ILM_HOT_PHASE} | jq -r '.actions.rollover.max_size')
local ILM_HOT_PHASE_MAX_SIZE=$(echo ${ILM_HOT_PHASE} | jq -r '.actions.rollover.max_primary_shard_size')
local ILM_HOT_PHASE_MAX_AGE=$(echo ${ILM_HOT_PHASE} | jq -r '.actions.rollover.max_age')
if [[ "${ILM_HOT_PHASE_MAX_SIZE}" != "${EXPECTED_MAX_SIZE}" ]]; then
echo "-> Invalid ILM policy ${LEGACY_ILM_POLICY}; expected hot phase max_size ${EXPECTED_MAX_SIZE} got ${ILM_HOT_PHASE_MAX_SIZE}"
echo "-> Invalid ILM policy ${LEGACY_ILM_POLICY}; expected hot phase max_primary_shard_size ${EXPECTED_MAX_SIZE} got ${ILM_HOT_PHASE_MAX_SIZE}"
echo "${ILM_HOT_PHASE}"
SUCCESS=false
fi
if [[ "${ILM_HOT_PHASE_MAX_AGE}" != "${EXPECTED_MAX_AGE}" ]]; then
echo "-> Invalid ILM policy ${LEGACY_ILM_POLICY}; expected hot phase max_size ${EXPECTED_MAX_AGE} got ${ILM_HOT_PHASE_MAX_AGE}"
echo "-> Invalid ILM policy ${LEGACY_ILM_POLICY}; expected hot phase max_age ${EXPECTED_MAX_AGE} got ${ILM_HOT_PHASE_MAX_AGE}"
echo "${ILM_HOT_PHASE}"
SUCCESS=false
fi
Expand Down

0 comments on commit c6571a5

Please sign in to comment.