Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preallocate memory to reduce GC load #32905

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Preallocate memory to reduce GC load #32905

merged 2 commits into from
Aug 30, 2022

Conversation

florianl
Copy link
Member

What does this PR do?

Preallocating memory reduces the load Go needs to handle and track allocated memory regions. This also reduces GC load.

Why is it important?

While Go takes care of memory operations, like allocating, resizing and freeing, it is a good style to let Go know in advance the final required size to reduce the load of these operations.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
@florianl florianl added enhancement cleanup backport-skip Skip notification from the automated backport with mergify labels Aug 29, 2022
@florianl florianl requested review from a team as code owners August 29, 2022 07:49
@florianl florianl requested review from rdner and cmacknz and removed request for a team August 29, 2022 07:49
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 29, 2022
@florianl florianl added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Aug 29, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 29, 2022
@elasticmachine
Copy link
Collaborator

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-29T07:50:08.413+0000

  • Duration: 109 min 10 sec

Test stats 🧪

Test Results
Failed 8
Passed 22516
Skipped 1906
Total 24430

Test errors 8

Expand to view the tests failures

Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_cluster_disk
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":626410,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:14:14.191158792Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":60,"Log":[{"Start":"2022-08-29T09:16:05.845714375Z","End":"2022-08-29T09:16:06.782463132Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:16:07.78855816Z","End":"2022-08-29T09:16:08.711062671Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:16:09.717384999Z","End":"2022-08-29T09:16:10.511817929Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:16:11.517274333Z","End":"2022-08-29T09:16:12.4264177Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:16:13.4329641Z","End":"2022-08-29T09:16:14.384352478Z","ExitCode":1,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":670614,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:16:40.85164304Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":50,"Log":[{"Start":"2022-08-29T09:18:12.112229036Z","End":"2022-08-29T09:18:13.026703455Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:18:14.03344539Z","End":"2022-08-29T09:18:14.831918405Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:18:15.838123848Z","End":"2022-08-29T09:18:16.746189676Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:18:17.759273793Z","End":"2022-08-29T09:18:18.64338636Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:18:19.649656164Z","End":"2022-08-29T09:18:20.566953049Z","ExitCode":1,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"exited","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":137,"Error":"","StartedAt":"2022-08-29T09:18:56.043277699Z","FinishedAt":"2022-08-29T09:20:31.735957427Z","Health":{"Status":"unhealthy","FailingStreak":48,"Log":[{"Start":"2022-08-29T09:20:23.677670726Z","End":"2022-08-29T09:20:24.511404186Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:25.518461866Z","End":"2022-08-29T09:20:26.421792143Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:27.427545898Z","End":"2022-08-29T09:20:28.356809005Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:29.362584088Z","End":"2022-08-29T09:20:30.399216476Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:31.40604701Z","End":"2022-08-29T09:20:31.628341935Z","ExitCode":137,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
        compose.go:124: getting host for ceph: unknown host:port for service
    --- FAIL: TestData (383.64s)
     
    

Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_cluster_health
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":663769,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:16:22.185008283Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":0,"Log":[]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":699727,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:18:24.608453519Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":1,"Log":[{"Start":"2022-08-29T09:18:25.608653811Z","End":"2022-08-29T09:18:26.568654054Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":710948,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:18:56.043277699Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":47,"Log":[{"Start":"2022-08-29T09:20:21.769729443Z","End":"2022-08-29T09:20:22.671565371Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:23.677670726Z","End":"2022-08-29T09:20:24.511404186Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:25.518461866Z","End":"2022-08-29T09:20:26.421792143Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:27.427545898Z","End":"2022-08-29T09:20:28.356809005Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:29.362584088Z","End":"2022-08-29T09:20:30.399216476Z","ExitCode":1,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:124: getting host for ceph: unknown host:port for service
    --- FAIL: TestData (382.25s)
     
    

Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_osd_perf
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_redis_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":662532,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:16:18.772091705Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":0,"Log":[]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":704531,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:18:37.960491835Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":0,"Log":[]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"exited","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":137,"Error":"","StartedAt":"2022-08-29T09:18:56.043277699Z","FinishedAt":"2022-08-29T09:20:31.735957427Z","Health":{"Status":"unhealthy","FailingStreak":48,"Log":[{"Start":"2022-08-29T09:20:23.677670726Z","End":"2022-08-29T09:20:24.511404186Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:25.518461866Z","End":"2022-08-29T09:20:26.421792143Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:27.427545898Z","End":"2022-08-29T09:20:28.356809005Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:29.362584088Z","End":"2022-08-29T09:20:30.399216476Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:31.40604701Z","End":"2022-08-29T09:20:31.628341935Z","ExitCode":137,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
        compose.go:124: getting host for ceph: unknown host:port for service
    --- FAIL: TestData (394.80s)
     
    

Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_osd_pool_stats
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":669156,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:16:36.837577527Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":0,"Log":[]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":708758,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:18:50.326108445Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":1,"Log":[{"Start":"2022-08-29T09:18:51.327132878Z","End":"2022-08-29T09:18:52.167656921Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"exited","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":137,"Error":"","StartedAt":"2022-08-29T09:18:56.043277699Z","FinishedAt":"2022-08-29T09:20:31.735957427Z","Health":{"Status":"unhealthy","FailingStreak":48,"Log":[{"Start":"2022-08-29T09:20:23.677670726Z","End":"2022-08-29T09:20:24.511404186Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:25.518461866Z","End":"2022-08-29T09:20:26.421792143Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:27.427545898Z","End":"2022-08-29T09:20:28.356809005Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:29.362584088Z","End":"2022-08-29T09:20:30.399216476Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:31.40604701Z","End":"2022-08-29T09:20:31.628341935Z","ExitCode":137,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
        compose.go:124: getting host for ceph: unknown host:port for service
    --- FAIL: TestData (407.13s)
     
    

Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_osd_tree
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":665514,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:16:26.856225497Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":0,"Log":[]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":701690,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:18:30.022735398Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":2,"Log":[{"Start":"2022-08-29T09:18:31.023757656Z","End":"2022-08-29T09:18:32.034855272Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"},{"Start":"2022-08-29T09:18:33.040634969Z","End":"2022-08-29T09:18:33.971045554Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"exited","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":137,"Error":"","StartedAt":"2022-08-29T09:18:56.043277699Z","FinishedAt":"2022-08-29T09:20:31.735957427Z","Health":{"Status":"unhealthy","FailingStreak":48,"Log":[{"Start":"2022-08-29T09:20:23.677670726Z","End":"2022-08-29T09:20:24.511404186Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:25.518461866Z","End":"2022-08-29T09:20:26.421792143Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:27.427545898Z","End":"2022-08-29T09:20:28.356809005Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:29.362584088Z","End":"2022-08-29T09:20:30.399216476Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:31.40604701Z","End":"2022-08-29T09:20:31.628341935Z","ExitCode":137,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
        compose.go:124: getting host for ceph: unknown host:port for service
    --- FAIL: TestData (392.96s)
     
    

Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_pool_disk
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":666776,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:16:30.089721654Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":2,"Log":[{"Start":"2022-08-29T09:16:31.091373696Z","End":"2022-08-29T09:16:31.922057427Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"},{"Start":"2022-08-29T09:16:32.928525179Z","End":"2022-08-29T09:16:33.899674974Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":705897,"ExitCode":0,"Error":"","StartedAt":"2022-08-29T09:18:42.216309162Z","FinishedAt":"0001-01-01T00:00:00Z","Health":{"Status":"starting","FailingStreak":2,"Log":[{"Start":"2022-08-29T09:18:43.216657004Z","End":"2022-08-29T09:18:44.079953647Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"},{"Start":"2022-08-29T09:18:45.086630342Z","End":"2022-08-29T09:18:46.0911281Z","ExitCode":1,"Output":"no valid command found; 10 closest matches:\nmon dump {\u003cint[0-]\u003e}\nmon stat\nfs set-default \u003cfs_name\u003e\nfs add_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs rm_data_pool \u003cfs_name\u003e \u003cpool\u003e\nfs set \u003cfs_name\u003e max_mds|max_file_size|allow_new_snaps|inline_data|cluster_down|allow_dirfrags|balancer|standby_count_wanted|session_timeout|session_autoclose|allow_standby_replay|down|joinable|min_compat_client \u003cval\u003e {--yes-i-really-mean-it}\nfs flag set enable_multiple \u003cval\u003e {--yes-i-really-mean-it}\nfs ls\nfs get \u003cfs_name\u003e\nosd tree-from {\u003cint[0-]\u003e} \u003cbucket\u003e {up|down|in|out|destroyed [up|down|in|out|destroyed...]}\nError EINVAL: invalid command\n"}]}}
        compose.go:124: timeout waiting for services to be healthy
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Killing metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_apache_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_zookeeper_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_uwsgi_tcp_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_traefik_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... 
    Recreating metricbeat_8_5_0_2e2b7b35dd-snapshot_ceph_1 ... done
        compose.go:89: Container state (service: 'ceph'): {"Status":"exited","Running":false,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":0,"ExitCode":137,"Error":"","StartedAt":"2022-08-29T09:18:56.043277699Z","FinishedAt":"2022-08-29T09:20:31.735957427Z","Health":{"Status":"unhealthy","FailingStreak":48,"Log":[{"Start":"2022-08-29T09:20:23.677670726Z","End":"2022-08-29T09:20:24.511404186Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:25.518461866Z","End":"2022-08-29T09:20:26.421792143Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:27.427545898Z","End":"2022-08-29T09:20:28.356809005Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:29.362584088Z","End":"2022-08-29T09:20:30.399216476Z","ExitCode":1,"Output":""},{"Start":"2022-08-29T09:20:31.40604701Z","End":"2022-08-29T09:20:31.628341935Z","ExitCode":137,"Output":""}]}}
        compose.go:124: timeout waiting for services to be healthy
        compose.go:124: getting host for ceph: unknown host:port for service
    --- FAIL: TestData (401.56s)
     
    

Build&Test / metricbeat-goIntegTest / TestFetch – github.com/elastic/beats/v7/metricbeat/module/jolokia/jmx
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestFetch
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_haproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_golang_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_etcd_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_envoyproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_dropwizard_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_couchdb_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Building jolokia
    Step 1/14 : FROM java:8-jdk-alpine
    Service 'jolokia' failed to build: manifest for java:8-jdk-alpine not found: manifest unknown: manifest unknown
        jmx_integration_test.go:33: failed to start service 'jolokia: exit status 1
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_haproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_golang_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_etcd_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_envoyproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_dropwizard_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_couchdb_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Building jolokia
    Step 1/14 : FROM java:8-jdk-alpine
    Service 'jolokia' failed to build: manifest for java:8-jdk-alpine not found: manifest unknown: manifest unknown
        jmx_integration_test.go:33: failed to start service 'jolokia: exit status 1
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_haproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_golang_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_etcd_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_envoyproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_dropwizard_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_couchdb_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Building jolokia
    Step 1/14 : FROM java:8-jdk-alpine
    Service 'jolokia' failed to build: manifest for java:8-jdk-alpine not found: manifest unknown: manifest unknown
        jmx_integration_test.go:33: failed to start service 'jolokia: exit status 1
        jmx_integration_test.go:33: getting host for jolokia: no container running for service
    --- FAIL: TestFetch (6.79s)
     
    

Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/jolokia/jmx
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestData
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_haproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_golang_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_etcd_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_envoyproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_dropwizard_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Building jolokia
    Step 1/14 : FROM java:8-jdk-alpine
    Service 'jolokia' failed to build: manifest for java:8-jdk-alpine not found: manifest unknown: manifest unknown
        jmx_integration_test.go:45: failed to start service 'jolokia: exit status 1
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_haproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_golang_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_etcd_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_envoyproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_dropwizard_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Building jolokia
    Step 1/14 : FROM java:8-jdk-alpine
    Service 'jolokia' failed to build: manifest for java:8-jdk-alpine not found: manifest unknown: manifest unknown
        jmx_integration_test.go:45: failed to start service 'jolokia: exit status 1
    Found orphan containers (metricbeat_8_5_0_2e2b7b35dd-snapshot_http_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_haproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_golang_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_etcd_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_envoyproxy_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_dropwizard_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_logstash_1, metricbeat_8_5_0_2e2b7b35dd-snapshot_kafka_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
    Building jolokia
    Step 1/14 : FROM java:8-jdk-alpine
    Service 'jolokia' failed to build: manifest for java:8-jdk-alpine not found: manifest unknown: manifest unknown
        jmx_integration_test.go:45: failed to start service 'jolokia: exit status 1
        jmx_integration_test.go:45: getting host for jolokia: no container running for service
    --- FAIL: TestData (9.32s)
     
    

Steps errors 8

Expand to view the steps failures

libbeat-unitTest - mage build unitTest
  • Took 3 min 34 sec . View more details here
  • Description: mage build unitTest
metricbeat-goIntegTest - mage goIntegTest
  • Took 29 min 27 sec . View more details here
  • Description: mage goIntegTest
metricbeat-goIntegTest - mage goIntegTest
  • Took 19 min 28 sec . View more details here
  • Description: mage goIntegTest
metricbeat-goIntegTest - mage goIntegTest
  • Took 25 min 6 sec . View more details here
  • Description: mage goIntegTest
metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 2 min 14 sec . View more details here
  • Description: mage pythonIntegTest
metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 0 min 24 sec . View more details here
  • Description: mage pythonIntegTest
metricbeat-pythonIntegTest - mage pythonIntegTest
  • Took 0 min 27 sec . View more details here
  • Description: mage pythonIntegTest
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 8

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_cluster_disk
  • Name: Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_cluster_health
  • Name: Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_osd_perf
  • Name: Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_osd_pool_stats
  • Name: Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_osd_tree
  • Name: Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/ceph/mgr_pool_disk
  • Name: Build&Test / metricbeat-goIntegTest / TestFetch – github.com/elastic/beats/v7/metricbeat/module/jolokia/jmx
  • Name: Build&Test / metricbeat-goIntegTest / TestData – github.com/elastic/beats/v7/metricbeat/module/jolokia/jmx

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Member

@rdner rdner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally think, those loops should be replaced with copy(dst, src) at some point.

@rdner
Copy link
Member

rdner commented Aug 29, 2022

CI failures are not related to the changes in this PR, it's a known problem with metricbeat.

@efd6
Copy link
Contributor

efd6 commented Aug 29, 2022

I personally think, those loops should be replaced with copy(dst, src) at some point.

This is not possible; the src is map keys, unless maps.Keys is used as dst := maps.Keys(src).

@florianl
Copy link
Member Author

I'm not authorized to merge changes. So feel free to go ahead.

@rdner rdner merged commit 3668fd6 into main Aug 30, 2022
@rdner rdner deleted the flo-prealloc branch August 30, 2022 06:44
v1v added a commit to v1v/beats that referenced this pull request Sep 1, 2022
…ackaging

* upstream/main: (109 commits)
  Add cap_net_raw requirements to heartbeat docs (elastic#32816)
  apply a quick hotfix for having main working properly (elastic#32934)
  action: checks for x-pack/libbeat and libbeat (elastic#32754)
  Update to Go 1.18 in go.mod. (elastic#32940)
  [heartbeat] disable browser code on windows via build tags (elastic#32939)
  action: checks for heartbeat and x-pack/heartbeat (elastic#32749)
  Make event acknowledgment asynchronous in shipper output (elastic#32785)
  [Automation] Update elastic stack version to 8.5.0-fedc3e60 for testing (elastic#32930)
  Preallocate memory to reduce GC load (elastic#32905)
  [Automation] Update elastic stack version to 8.5.0-440e0896 for testing (elastic#32919)
  Skip broken ceph tests. (elastic#32912)
  Use non-deprecated docker image for testing jolokia (elastic#32885)
  update ironbank image product name (elastic#32867)
  ci: pre-commit stage within Jenkins (elastic#32839)
  Fix a couple of bugs in the logic for how AWS metric periods are calculated (elastic#32724)
  [Filebeat] [httpjson] Add support for single string containing multiple relation-types in getRFC5988Link (elastic#32811)
  [Heartbeat] Update HB k8s template to use <Mi> metric (elastic#32801)
  action: checks for metricbeat and x-pack/metricbeat (elastic#32748)
  action: checks for filebeat and x-pack/filebeat (elastic#32746)
  allow for json/ndjson content type with charset (elastic#32767)
  ...
chrisberkhout pushed a commit that referenced this pull request Jun 1, 2023
Preallocating memory reduces the load Go needs to handle and track allocated memory regions. This also reduces GC load.

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-skip Skip notification from the automated backport with mergify cleanup enhancement Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants