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

Include original error when metricbeat fails to connect with Kafka #21484

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Oct 2, 2020

What does this PR do?

Include error from kafka when Metricbeat cannot connect with broker.

Why is it important?

It includes the address only, and not the original error, complicating the investigation of connection errors.

@jsoriano jsoriano added enhancement Metricbeat Metricbeat needs_backport PR is waiting to be backported to other branches. Team:Services (Deprecated) Label for the former Integrations-Services team v7.10.0 v7.9.3 labels Oct 2, 2020
@jsoriano jsoriano self-assigned this Oct 2, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Oct 2, 2020
@jsoriano jsoriano requested review from ChrsMark and removed request for ChrsMark October 2, 2020 15:49
@elasticmachine
Copy link
Collaborator

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21484 opened]

  • Start Time: 2020-10-02T15:47:04.812+0000

  • Duration: 85 min 16 sec

Test stats 🧪

Test Results
Failed 0
Passed 1208
Skipped 266
Total 1474

Steps errors

Expand to view the steps failures

  • Name: Extract

    • Description: tar -xpf source.tgz

    • Duration: 0 min 27 sec

    • Start Time: 2020-10-02T16:21:49.629+0000

    • log

  • Name: Error signal

    • Description: untar: step failed with error script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-02T16:22:16.893+0000

    • log

  • Name: Extract

    • Description: tar -xpf source.tgz

    • Duration: 1 min 39 sec

    • Start Time: 2020-10-02T16:21:58.973+0000

    • log

  • Name: Error signal

    • Description: untar: step failed with error script returned exit code 1

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-02T16:22:38.116+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-02T17:11:19.182Z] aws_db_instance.test: Destruction complete after 3m51s
[2020-10-02T17:11:19.182Z] random_id.suffix: Destroying... [id=rkDMwA]
[2020-10-02T17:11:19.182Z] random_id.suffix: Destruction complete after 0s
[2020-10-02T17:11:19.183Z] random_password.db: Destroying... [id=none]
[2020-10-02T17:11:19.183Z] random_password.db: Destruction complete after 0s
[2020-10-02T17:11:19.183Z] 
[2020-10-02T17:11:19.183Z] Destroy complete! Resources: 7 destroyed.
[2020-10-02T17:11:19.183Z] + cd -
[2020-10-02T17:11:19.183Z] /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/src/github.com/elastic/beats
[2020-10-02T17:11:19.183Z] + exit 0
[2020-10-02T17:11:19.613Z] Client: Docker Engine - Community
[2020-10-02T17:11:19.613Z]  Version:           19.03.13
[2020-10-02T17:11:19.613Z]  API version:       1.40
[2020-10-02T17:11:19.613Z]  Go version:        go1.13.15
[2020-10-02T17:11:19.613Z]  Git commit:        4484c46d9d
[2020-10-02T17:11:19.613Z]  Built:             Wed Sep 16 17:02:36 2020
[2020-10-02T17:11:19.613Z]  OS/Arch:           linux/amd64
[2020-10-02T17:11:19.613Z]  Experimental:      false
[2020-10-02T17:11:19.613Z] 
[2020-10-02T17:11:19.613Z] Server: Docker Engine - Community
[2020-10-02T17:11:19.613Z]  Engine:
[2020-10-02T17:11:19.613Z]   Version:          19.03.13
[2020-10-02T17:11:19.613Z]   API version:      1.40 (minimum version 1.12)
[2020-10-02T17:11:19.613Z]   Go version:       go1.13.15
[2020-10-02T17:11:19.613Z]   Git commit:       4484c46d9d
[2020-10-02T17:11:19.613Z]   Built:            Wed Sep 16 17:01:06 2020
[2020-10-02T17:11:19.613Z]   OS/Arch:          linux/amd64
[2020-10-02T17:11:19.613Z]   Experimental:     false
[2020-10-02T17:11:19.613Z]  containerd:
[2020-10-02T17:11:19.613Z]   Version:          1.3.7
[2020-10-02T17:11:19.613Z]   GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
[2020-10-02T17:11:19.613Z]  runc:
[2020-10-02T17:11:19.613Z]   Version:          1.0.0-rc10
[2020-10-02T17:11:19.613Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-10-02T17:11:19.613Z]  docker-init:
[2020-10-02T17:11:19.613Z]   Version:          0.18.0
[2020-10-02T17:11:19.613Z]   GitCommit:        fec3683
[2020-10-02T17:11:27.147Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-10-02T17:11:27.171Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-10-02T17:11:27.250Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21484-1/source/source.tgz
[2020-10-02T17:11:27.271Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21484-1/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21484/source.tgz
[2020-10-02T17:11:44.422Z] + tar --version
[2020-10-02T17:11:44.746Z] + tar -xpf source.tgz
[2020-10-02T17:11:57.355Z] + rm source.tgz
[2020-10-02T17:11:57.499Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats
[2020-10-02T17:11:57.534Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/uncategorized-1601655479848
[2020-10-02T17:11:57.643Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/metricbeat-goIntegTest-1601656002832
[2020-10-02T17:11:57.760Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/metricbeat-unitTest-1601656064963
[2020-10-02T17:11:57.868Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/metricbeat-crosscompile-1601656343287
[2020-10-02T17:11:57.975Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/metricbeat-pythonIntegTest-1601656446878
[2020-10-02T17:11:58.080Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/x-pack-metricbeat-build-1601658388857
[2020-10-02T17:11:58.521Z] + cat
[2020-10-02T17:11:58.521Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-10-02T17:11:58.521Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-10-02T17:12:06.668Z] runbld>>> runbld started
[2020-10-02T17:12:06.668Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-10-02T17:12:07.612Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-10-02T17:12:07.612Z] runbld>>> Matches in the system config:
[2020-10-02T17:12:07.612Z] runbld>>> - Matched ^elastic\+beats
[2020-10-02T17:12:07.612Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-10-02T17:12:09.007Z] runbld>>> Debug logging enabled.
[2020-10-02T17:12:09.007Z] runbld>>> Storing result
[2020-10-02T17:12:09.007Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-10-02T17:12:09.007Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201002171208-95332A93
[2020-10-02T17:12:09.007Z] runbld>>> Adding system facts.
[2020-10-02T17:12:10.409Z] runbld>>> Adding vcs info for the latest commit:  a17445807246dcd4542a30c6b41c6434e9c69a50
[2020-10-02T17:12:10.409Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-10-02T17:12:10.410Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-10-02T17:12:10.410Z] Processing JUnit reports with runbld...
[2020-10-02T17:12:10.410Z] + echo 'Processing JUnit reports with runbld...'
[2020-10-02T17:12:10.672Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-10-02T17:12:10.672Z] runbld>>> DURATION: 42ms
[2020-10-02T17:12:10.672Z] runbld>>> STDOUT: 40 bytes
[2020-10-02T17:12:10.672Z] runbld>>> STDERR: 49 bytes
[2020-10-02T17:12:10.672Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-10-02T17:12:10.672Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21484
[2020-10-02T17:12:12.062Z] runbld>>> Storing build metadata: 
[2020-10-02T17:12:12.062Z] runbld>>> Adding test report.
[2020-10-02T17:12:12.062Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats
[2020-10-02T17:12:12.638Z] runbld>>> Found 27 test output files
[2020-10-02T17:12:12.638Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/x-pack-metricbeat-build-1601658388857/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-10-02T17:12:13.211Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/x-pack-metricbeat-build-1601658388857/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-10-02T17:12:13.211Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/x-pack-metricbeat-build-1601658388857/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-10-02T17:12:13.211Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/x-pack-metricbeat-build-1601658388857/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-10-02T17:12:13.211Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21484/src/github.com/elastic/beats/x-pack-metricbeat-build-1601658388857/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-10-02T17:12:13.474Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 1474 Skipped: 198
[2020-10-02T17:12:13.736Z] runbld>>> Storing result
[2020-10-02T17:12:13.736Z] runbld>>> FAILURES: 0
[2020-10-02T17:12:13.998Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-10-02T17:12:13.998Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201002171208-95332A93
[2020-10-02T17:12:13.998Z] runbld>>> Email notification disabled by environment variable.
[2020-10-02T17:12:13.998Z] runbld>>> Slack notification disabled by environment variable.
[2020-10-02T17:12:19.619Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21484
[2020-10-02T17:12:19.710Z] [INFO] getVaultSecret: Getting secrets
[2020-10-02T17:12:19.804Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-02T17:12:20.668Z] + chmod 755 generate-build-data.sh
[2020-10-02T17:12:20.668Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21484/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21484/runs/1 FAILURE 5115582
[2020-10-02T17:12:20.668Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21484/runs/1/steps/?limit=10000 -o steps-info.json
[2020-10-02T17:12:22.011Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21484/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-10-02T17:12:22.262Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21484/runs/1/log/ -o pipeline-log.txt

@jsoriano jsoriano merged commit 3d8e7dd into elastic:master Oct 5, 2020
@jsoriano jsoriano deleted the kafka-connect-error branch October 5, 2020 08:51
jsoriano added a commit to jsoriano/beats that referenced this pull request Oct 5, 2020
@jsoriano jsoriano removed the needs_backport PR is waiting to be backported to other branches. label Oct 5, 2020
jsoriano added a commit to jsoriano/beats that referenced this pull request Oct 5, 2020
jsoriano added a commit that referenced this pull request Oct 5, 2020
jsoriano added a commit that referenced this pull request Oct 5, 2020
v1v added a commit to v1v/beats that referenced this pull request Oct 5, 2020
…-matches-found

* upstream/master: (21 commits)
  Skip filestream flaky tests (elastic#21490)
  Ignore unsupported metrics in the azure module (elastic#21486)
  Do not run symlink tests on Windows (elastic#21472)
  Map `cloud.account.id` to azure sub id (elastic#21483)
  Add support for app_state metricset (elastic#20639)
  Include original error when metricbeat fails to connect with Kafka (elastic#21484)
  Prompt only when agent is already enrolled (elastic#21473)
  Fix leftover delpoyment example (elastic#21474)
  Bump version to ECS 1.6 in modules without ECS updates (elastic#21455)
  Clarify input type configuration options (elastic#19284)
  Increase index pattern size check to 10MiB (elastic#21487)
  Migrate S3 Input to Filebeat Input V2 (elastic#20005)
  [libbeat] Add configurable exponential backoff for disk queue write errors (elastic#21493)
  Revert "Revert "[JJBB] Set shallow cloning to 10 (elastic#21409)" (elastic#21447)" (elastic#21467)
  Fix format of debug messages in tlscommon (elastic#21482)
  [CI] Change x-pack/auditbeat build events (comments, labels) (elastic#21463)
  [CI] changeset from elastic#20603 was not added to CI2.0 (elastic#21464)
  Add new log file reader for filestream input (elastic#21450)
  [CI] Send slack message with build status (elastic#21428)
  Remove duplicated sources url in dependencies report (elastic#21462)
  ...
v1v added a commit to v1v/beats that referenced this pull request Oct 5, 2020
* upstream/master: (26 commits)
  [Ingest Manager] Send updating state (elastic#21461)
  [Filebeat][New Fileset] Cisco Umbrella support (elastic#21504)
  [Ingest Manager] Download asc from artifact store specified in spec (elastic#21488)
  Implementation of fileProspector (elastic#21479)
  [Metricbeat] Add latency config option into aws module (elastic#20875)
  Skip filestream flaky tests (elastic#21490)
  Ignore unsupported metrics in the azure module (elastic#21486)
  Do not run symlink tests on Windows (elastic#21472)
  Map `cloud.account.id` to azure sub id (elastic#21483)
  Add support for app_state metricset (elastic#20639)
  Include original error when metricbeat fails to connect with Kafka (elastic#21484)
  Prompt only when agent is already enrolled (elastic#21473)
  Fix leftover delpoyment example (elastic#21474)
  Bump version to ECS 1.6 in modules without ECS updates (elastic#21455)
  Clarify input type configuration options (elastic#19284)
  Increase index pattern size check to 10MiB (elastic#21487)
  Migrate S3 Input to Filebeat Input V2 (elastic#20005)
  [libbeat] Add configurable exponential backoff for disk queue write errors (elastic#21493)
  Revert "Revert "[JJBB] Set shallow cloning to 10 (elastic#21409)" (elastic#21447)" (elastic#21467)
  Fix format of debug messages in tlscommon (elastic#21482)
  ...
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team v7.9.3 v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants