Skip to content

Cherry-pick #19378 to 7.x: Cursor input skeleton#19710

Merged
urso merged 1 commit intoelastic:7.xfrom
urso:backport_19378_7.x
Jul 8, 2020
Merged

Cherry-pick #19378 to 7.x: Cursor input skeleton#19710
urso merged 1 commit intoelastic:7.xfrom
urso:backport_19378_7.x

Conversation

@urso
Copy link
Copy Markdown

@urso urso commented Jul 7, 2020

Cherry-pick of PR #19378 to 7.x branch. Original message:

  • Enhancement

What does this PR do?

This PR is part of introducing a new input architecture in filebeat. The current state of the full implementation can be seen here and sample inputs based on the new API.

The full list of changes will include:

The change introduces the skeleton and documentation with details for
cursor based inputs. Future updates will add the actual implementation
and tests.

Why is it important?

Filebeat input v2 API.

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.

Related issues

This PR is part of introducing a new input architecture in filebeat. The current state of the full implementation can be seen [here](https://github.com/urso/beats/tree/fb-input-v2-combined/filebeat/input/v2) and [sample inputs based on the new API](https://github.com/urso/beats/tree/fb-input-v2-combined/filebeat/features/input).

The full list of changes will include:
- Introduce v2 API interfaces
- Introduce [compatibility layer](https://github.com/urso/beats/tree/fb-input-v2-combined/filebeat/input/v2/compat) to integrate API with existing functionality
- Introduce helpers for writing [stateless](https://github.com/urso/beats/blob/fb-input-v2-combined/filebeat/input/v2/input-stateless/stateless.go) inputs.
- Introduce helpers for writing [inputs that store a state](https://github.com/urso/beats/tree/fb-input-v2-combined/filebeat/input/v2/input-cursor) between restarts.
- Integrate new API with [existing inputs and modules](https://github.com/urso/beats/blob/fb-input-v2-combined/filebeat/beater/filebeat.go#L301) in filebeat.

The change introduces the skeleton and documentation with details for
cursor based inputs. Future updates will add the actual implementation
and tests.

(cherry picked from commit 13633ce)
@urso urso added [zube]: In Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels Jul 7, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 7, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 7, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

❕ Build Aborted

Either there was a build timeout or someone aborted the build.'}

Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: [Pull request #19710 opened]

  • Start Time: 2020-07-07T16:17:21.897+0000

  • Duration: 123 min 46 sec

Test stats 🧪

Test Results
Failed 0
Passed 3538
Skipped 677
Total 4215

Log output

Expand to view the last 100 lines of log output

[2020-07-07T18:19:40.594Z] 		at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:265)
[2020-07-07T18:19:40.594Z] 		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
[2020-07-07T18:19:40.594Z] 		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
[2020-07-07T18:19:40.594Z] 		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2020-07-07T18:19:40.594Z] 		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-07-07T18:19:40.594Z] 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-07-07T18:19:40.594Z] 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-07-07T18:19:40.594Z] 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-07-07T18:19:40.594Z] Caused: hudson.FilePath$TunneledInterruptedException
[2020-07-07T18:19:40.594Z] 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3075)
[2020-07-07T18:19:40.594Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
[2020-07-07T18:19:40.594Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
[2020-07-07T18:19:40.594Z] 	at hudson.remoting.Request$2.run(Request.java:369)
[2020-07-07T18:19:40.594Z] 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
[2020-07-07T18:19:40.594Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-07-07T18:19:40.594Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-07-07T18:19:40.594Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-07-07T18:19:40.594Z] 	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
[2020-07-07T18:19:40.594Z] Caused: java.lang.InterruptedException: java.lang.InterruptedException: no matches found within 10000
[2020-07-07T18:19:40.594Z] 	at hudson.FilePath.act(FilePath.java:1071)
[2020-07-07T18:19:40.594Z] 	at hudson.FilePath.act(FilePath.java:1058)
[2020-07-07T18:19:40.594Z] 	at hudson.FilePath.validateAntFileMask(FilePath.java:2684)
[2020-07-07T18:19:40.594Z] 	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:265)
[2020-07-07T18:19:40.594Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
[2020-07-07T18:19:40.594Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
[2020-07-07T18:19:40.594Z] 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2020-07-07T18:19:40.594Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-07-07T18:19:40.594Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-07-07T18:19:40.594Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-07-07T18:19:40.594Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-07-07T18:19:40.594Z] 	at java.lang.Thread.run(Thread.java:748)
[2020-07-07T18:19:40.594Z] No artifacts found that match the file pattern "**/build/TEST*.out". Configuration error?
[2020-07-07T18:19:41.079Z] + curl -sSLo codecov https://codecov.io/bash
[2020-07-07T18:19:41.342Z] + FILE=auditbeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-07-07T18:19:41.342Z] + FILE=filebeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-07-07T18:19:41.342Z] + FILE=heartbeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-07-07T18:19:41.342Z] + FILE=libbeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-07-07T18:19:41.342Z] + FILE=metricbeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-07-07T18:19:41.342Z] + FILE=packetbeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-07-07T18:19:41.342Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-07-07T18:19:41.342Z] + FILE=journalbeat/build/coverage/full.cov
[2020-07-07T18:19:41.342Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-07-07T18:19:42.942Z] Failed in branch Filebeat oss
[2020-07-07T18:19:44.556Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats
[2020-07-07T18:19:44.896Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-07T18:19:44.919Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats/Lint
[2020-07-07T18:19:45.067Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-07T18:19:45.218Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-07T18:19:45.369Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-07T18:19:45.521Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-07T18:19:45.672Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats/Filebeat-x-pack
[2020-07-07T18:19:45.822Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats/Filebeat-oss
[2020-07-07T18:19:46.264Z] + cat
[2020-07-07T18:19:46.264Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-07T18:19:46.264Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-07T18:19:52.870Z] runbld>>> runbld started
[2020-07-07T18:19:52.870Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-07T18:19:55.427Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-19710' in order of occurrence in the config (last value wins).
[2020-07-07T18:19:56.371Z] runbld>>> Debug logging enabled.
[2020-07-07T18:19:56.371Z] runbld>>> Storing result
[2020-07-07T18:19:56.635Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-07T18:19:56.635Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200707181956-FB19BE39
[2020-07-07T18:19:56.635Z] runbld>>> Adding system facts.
[2020-07-07T18:19:57.580Z] runbld>>> Adding vcs info for the latest commit:  630a74cfa3d6e1d767efdf0dd747e91d7d1e567b
[2020-07-07T18:19:57.580Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-07T18:19:57.580Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-07T18:19:57.842Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-07T18:19:57.842Z] Processing JUnit reports with runbld...
[2020-07-07T18:19:58.103Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-07T18:19:58.103Z] runbld>>> DURATION: 13ms
[2020-07-07T18:19:58.103Z] runbld>>> STDOUT: 40 bytes
[2020-07-07T18:19:58.103Z] runbld>>> STDERR: 49 bytes
[2020-07-07T18:19:58.103Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-07T18:19:58.103Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats
[2020-07-07T18:19:59.053Z] runbld>>> Storing build metadata: 
[2020-07-07T18:19:59.053Z] runbld>>> Adding test report.
[2020-07-07T18:19:59.053Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710/src/github.com/elastic/beats
[2020-07-07T18:19:59.999Z] runbld>>> Found 11 test output files
[2020-07-07T18:20:01.389Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 4215 Skipped: 653
[2020-07-07T18:20:01.389Z] runbld>>> Storing result
[2020-07-07T18:20:01.389Z] runbld>>> FAILURES: 0
[2020-07-07T18:20:01.389Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-07T18:20:01.389Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200707181956-FB19BE39
[2020-07-07T18:20:01.651Z] runbld>>> Email notification disabled by environment variable.
[2020-07-07T18:20:01.651Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-07T18:20:07.252Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-19710
[2020-07-07T18:20:07.433Z] [INFO] getVaultSecret: Getting secrets
[2020-07-07T18:20:07.504Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-07T18:20:08.590Z] + chmod 755 generate-build-data.sh
[2020-07-07T18:20:08.590Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19710/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19710/runs/1 ABORTED 7366421
[2020-07-07T18:20:08.590Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19710/runs/1/steps/?limit=10000 -o steps-info.json
[2020-07-07T18:20:09.141Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19710/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-07-07T18:20:09.141Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-19710/runs/1/log/ -o pipeline-log.txt

@urso
Copy link
Copy Markdown
Author

urso commented Jul 7, 2020

Required Filebeat unit tests passed. system tests timed out once again.

Copy link
Copy Markdown
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

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

Is it expected that Travis hasn't been run?

@urso
Copy link
Copy Markdown
Author

urso commented Jul 8, 2020

Is it expected that Travis hasn't been run?

Travis seems to have problems as well. Looks like sometimes github events are not send as well.

@urso urso merged commit 7e8e971 into elastic:7.x Jul 8, 2020
@urso urso deleted the backport_19378_7.x branch July 8, 2020 10:29
@zube zube bot removed the [zube]: Done label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Services (Deprecated) Label for the former Integrations-Services team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants