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

Implementation of fileProspector #21479

Merged
merged 5 commits into from
Oct 5, 2020

Conversation

kvch
Copy link
Contributor

@kvch kvch commented Oct 2, 2020

What does this PR do?

This PR adds the implementation of fileProspector. The prospector listens for events from the FSWatcher and processes them depending on the type of the event. Possible actions are starting a new Harvester to read from a file, removing an entry from the registry, etc.

Why is it important?

Required for filestream.

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.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 2, 2020
@kvch kvch added the Team:Services (Deprecated) Label for the former Integrations-Services team label Oct 2, 2020
@elasticmachine
Copy link
Collaborator

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

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 2, 2020
@kvch kvch mentioned this pull request Oct 2, 2020
2 tasks
@elasticmachine
Copy link
Collaborator

elasticmachine commented Oct 2, 2020

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21479 updated]

  • Reason: Aborted from #6

  • Start Time: 2020-10-05T12:00:40.232+0000

  • Duration: 59 min 38 sec

  • Commit: 27e7561

Test stats 🧪

Test Results
Failed 1
Passed 3679
Skipped 401
Total 4081

Test errors

Expand to view the tests failures

  • Name: Build&Test / filebeat-windows-windows-2019 / [build failed] – filestream

    • Age: 1
    • Duration: 0
    • Error Details: Failed

Steps errors

Expand to view the steps failures

  • Name: mage build test

    • Description: mage build test

    • Duration: 13 min 48 sec

    • Start Time: 2020-10-05T12:27:44.306+0000

    • log

  • Name: mage build unitTest

    • Description: mage build unitTest

    • Duration: 3 min 15 sec

    • Start Time: 2020-10-05T12:31:58.737+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-05T12:57:23.368Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2020-10-05T12:57:23.368Z] Status: Downloaded newer image for alpine:3.4
[2020-10-05T12:57:33.894Z] Click here to forcibly terminate running steps
[2020-10-05T12:57:38.649Z] + python .ci/scripts/pre_archive_test.py
[2020-10-05T12:57:41.199Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2020-10-05T12:57:41.209Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/build
[2020-10-05T12:57:41.240Z] WARNING: Unknown parameter(s) found for class type 'hudson.tasks.junit.pipeline.JUnitResultsStep': id,stashedTestReports
[2020-10-05T12:57:41.243Z] Recording test results
[2020-10-05T12:57:42.644Z] Stashed 3 file(s)
[2020-10-05T12:57:42.654Z] Archiving artifacts
[2020-10-05T12:57:43.408Z] + python .ci/scripts/search_system_tests.py
[2020-10-05T12:57:43.423Z] [INFO] system-tests='build/x-pack/filebeat/build/system-tests'. If no empty then let's create a tarball
[2020-10-05T12:57:43.728Z] + tar --version
[2020-10-05T12:57:44.050Z] + tar --exclude=x-pack-filebeat--system-tests-linux.tgz -czf x-pack-filebeat--system-tests-linux.tgz build/x-pack/filebeat/build/system-tests
[2020-10-05T12:58:06.022Z] Archiving artifacts
[2020-10-05T12:58:17.369Z] Client: Docker Engine - Community
[2020-10-05T12:58:17.369Z]  Version:           19.03.13
[2020-10-05T12:58:17.369Z]  API version:       1.40
[2020-10-05T12:58:17.369Z]  Go version:        go1.13.15
[2020-10-05T12:58:17.369Z]  Git commit:        4484c46d9d
[2020-10-05T12:58:17.369Z]  Built:             Wed Sep 16 17:02:36 2020
[2020-10-05T12:58:17.369Z]  OS/Arch:           linux/amd64
[2020-10-05T12:58:17.369Z]  Experimental:      false
[2020-10-05T12:58:17.369Z] 
[2020-10-05T12:58:17.369Z] Server: Docker Engine - Community
[2020-10-05T12:58:17.369Z]  Engine:
[2020-10-05T12:58:17.369Z]   Version:          19.03.13
[2020-10-05T12:58:17.369Z]   API version:      1.40 (minimum version 1.12)
[2020-10-05T12:58:17.369Z]   Go version:       go1.13.15
[2020-10-05T12:58:17.369Z]   Git commit:       4484c46d9d
[2020-10-05T12:58:17.369Z]   Built:            Wed Sep 16 17:01:06 2020
[2020-10-05T12:58:17.369Z]   OS/Arch:          linux/amd64
[2020-10-05T12:58:17.369Z]   Experimental:     false
[2020-10-05T12:58:17.369Z]  containerd:
[2020-10-05T12:58:17.369Z]   Version:          1.3.7
[2020-10-05T12:58:17.369Z]   GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
[2020-10-05T12:58:17.369Z]  runc:
[2020-10-05T12:58:17.369Z]   Version:          1.0.0-rc10
[2020-10-05T12:58:17.369Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-10-05T12:58:17.369Z]  docker-init:
[2020-10-05T12:58:17.369Z]   Version:          0.18.0
[2020-10-05T12:58:17.369Z]   GitCommit:        fec3683
[2020-10-05T12:58:24.665Z] Failed in branch x-pack/filebeat-build
[2020-10-05T12:58:30.007Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-10-05T12:58:30.017Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-10-05T12:58:30.079Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21479-5/source/source.tgz
[2020-10-05T12:58:30.099Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21479-5/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21479/source.tgz
[2020-10-05T12:58:43.832Z] + tar --version
[2020-10-05T12:58:44.134Z] + tar -xpf source.tgz
[2020-10-05T12:58:56.691Z] + rm source.tgz
[2020-10-05T12:58:56.742Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats
[2020-10-05T12:58:56.752Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/uncategorized-1601900638806
[2020-10-05T12:58:56.800Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/filebeat-windows-windows-2019-1601901315793
[2020-10-05T12:58:56.836Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/x-pack-filebeat-windows-windows-2019-1601901454417
[2020-10-05T12:58:56.880Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/filebeat-build-1601901638822
[2020-10-05T12:58:56.928Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/x-pack-filebeat-build-1601902662247
[2020-10-05T12:58:57.299Z] + cat
[2020-10-05T12:58:57.300Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-10-05T12:58:57.300Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-10-05T12:59:03.905Z] runbld>>> runbld started
[2020-10-05T12:59:03.905Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-10-05T12:59:05.826Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-10-05T12:59:05.826Z] runbld>>> Matches in the system config:
[2020-10-05T12:59:05.826Z] runbld>>> - Matched ^elastic\+beats
[2020-10-05T12:59:05.826Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-10-05T12:59:06.782Z] runbld>>> Debug logging enabled.
[2020-10-05T12:59:06.782Z] runbld>>> Storing result
[2020-10-05T12:59:07.054Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-10-05T12:59:07.054Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005125906-4DE4D615
[2020-10-05T12:59:07.054Z] runbld>>> Adding system facts.
[2020-10-05T12:59:08.452Z] runbld>>> Adding vcs info for the latest commit:  f45fe4f04b5dfe5a113540d72273d919ef7378bb
[2020-10-05T12:59:08.452Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-10-05T12:59:08.452Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-10-05T12:59:08.452Z] + echo 'Processing JUnit reports with runbld...'
[2020-10-05T12:59:08.452Z] Processing JUnit reports with runbld...
[2020-10-05T12:59:08.714Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-10-05T12:59:08.714Z] runbld>>> DURATION: 28ms
[2020-10-05T12:59:08.714Z] runbld>>> STDOUT: 40 bytes
[2020-10-05T12:59:08.714Z] runbld>>> STDERR: 49 bytes
[2020-10-05T12:59:08.714Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-10-05T12:59:08.714Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21479
[2020-10-05T12:59:09.661Z] runbld>>> Storing build metadata: 
[2020-10-05T12:59:09.661Z] runbld>>> Adding test report.
[2020-10-05T12:59:09.661Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats
[2020-10-05T12:59:10.234Z] runbld>>> Found 9 test output files
[2020-10-05T12:59:11.624Z] runbld>>> Test output logs contained: Errors: 0 Failures: 1 Tests: 4081 Skipped: 378
[2020-10-05T12:59:11.624Z] runbld>>> Storing result
[2020-10-05T12:59:11.624Z] runbld>>> FAILURES: 1
[2020-10-05T12:59:11.886Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-10-05T12:59:11.886Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005125906-4DE4D615
[2020-10-05T12:59:12.147Z] runbld>>> Email notification disabled by environment variable.
[2020-10-05T12:59:12.147Z] runbld>>> Slack notification disabled by environment variable.
[2020-10-05T12:59:17.628Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21479
[2020-10-05T12:59:17.773Z] [INFO] getVaultSecret: Getting secrets
[2020-10-05T12:59:17.857Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-05T12:59:18.480Z] + chmod 755 generate-build-data.sh
[2020-10-05T12:59:18.481Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/runs/5 ABORTED 3517989
[2020-10-05T12:59:18.481Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/runs/5/steps/?limit=10000 -o steps-info.json
[2020-10-05T12:59:19.824Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/runs/5/tests/?status=FAILED -o tests-errors.json
[2020-10-05T12:59:20.374Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/runs/5/log/ -o pipeline-log.txt

Copy link
Contributor

@faec faec left a comment

Choose a reason for hiding this comment

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

One possible bug... approved once that is addressed

m.Lock()
for path, src := range m.files {
isSame, err := isSameFile(path, src.info)
if m.closeBecauseRemoved(path, err) || m.closeBecauseRenamed(path, isSame) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm trying to understand closeBecauseRenamed... elsewhere, the way the filestream input detects if something is renamed is if os.SameFile returns true for a different path than the original, indicating that the file has been moved to that new path. Here though, it seems to instead check whether os.SameFile returns false for the same path as before. To me all that indicates is that something else is where that file used to be, and isn't enough to conclude whether the original was removed or renamed.

Here's the specific case that concerns me: if closeRemoved == false and closeRenamed == true, and we remove a file, then isSameFile will return false with a non-nil error because the os.Stat call fails. Then closeBecauseRemoved will return false, because closeRemoved is false, but closeBecauseRenamed will return true even though the file wasn't renamed.

It's possible I'm mis-parsing this, but in that case some clarification in the language or comments here would be appreciated :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. 🤦 🤦 🤦 I will move these checks back to the filereader. Thus, I removed it from the PR.

@kvch kvch force-pushed the feature-filebeat-file-prospector branch from a521568 to 2667073 Compare October 5, 2020 09:19
@kvch kvch merged commit d987d10 into elastic:master Oct 5, 2020
@elasticmachine
Copy link
Collaborator

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21479 updated]

  • Start Time: 2020-10-05T12:55:25.333+0000

  • Duration: 59 min 21 sec

Test stats 🧪

Test Results
Failed 0
Passed 3545
Skipped 556
Total 4101

Steps errors

Expand to view the steps failures

  • Name: mage build test
    • Description: mage build test

    • Duration: 8 min 0 sec

    • Start Time: 2020-10-05T13:22:06.326+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-05T13:53:04.049Z] c1e54eec4b57: Verifying Checksum
[2020-10-05T13:53:04.049Z] c1e54eec4b57: Download complete
[2020-10-05T13:53:04.310Z] c1e54eec4b57: Pull complete
[2020-10-05T13:53:04.310Z] Digest: sha256:b733d4a32c4da6a00a84df2ca32791bb03df95400243648d8c539e7b4cce329c
[2020-10-05T13:53:04.310Z] Status: Downloaded newer image for alpine:3.4
[2020-10-05T13:53:06.517Z] + python .ci/scripts/pre_archive_test.py
[2020-10-05T13:53:07.900Z] Copy ./x-pack/filebeat/build into build/x-pack/filebeat/build
[2020-10-05T13:53:07.909Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/build
[2020-10-05T13:53:07.921Z] WARNING: Unknown parameter(s) found for class type 'hudson.tasks.junit.pipeline.JUnitResultsStep': id,stashedTestReports
[2020-10-05T13:53:07.924Z] Recording test results
[2020-10-05T13:53:09.559Z] Stashed 4 file(s)
[2020-10-05T13:53:09.568Z] Archiving artifacts
[2020-10-05T13:53:10.182Z] + python .ci/scripts/search_system_tests.py
[2020-10-05T13:53:10.197Z] [INFO] system-tests='build/x-pack/filebeat/build/system-tests'. If no empty then let's create a tarball
[2020-10-05T13:53:10.500Z] + tar --version
[2020-10-05T13:53:10.807Z] + tar --exclude=x-pack-filebeat--system-tests-linux.tgz -czf x-pack-filebeat--system-tests-linux.tgz build/x-pack/filebeat/build/system-tests
[2020-10-05T13:53:37.383Z] Archiving artifacts
[2020-10-05T13:53:49.021Z] Client: Docker Engine - Community
[2020-10-05T13:53:49.021Z]  Version:           19.03.13
[2020-10-05T13:53:49.021Z]  API version:       1.40
[2020-10-05T13:53:49.021Z]  Go version:        go1.13.15
[2020-10-05T13:53:49.021Z]  Git commit:        4484c46d9d
[2020-10-05T13:53:49.021Z]  Built:             Wed Sep 16 17:02:36 2020
[2020-10-05T13:53:49.021Z]  OS/Arch:           linux/amd64
[2020-10-05T13:53:49.021Z]  Experimental:      false
[2020-10-05T13:53:49.021Z] 
[2020-10-05T13:53:49.021Z] Server: Docker Engine - Community
[2020-10-05T13:53:49.021Z]  Engine:
[2020-10-05T13:53:49.021Z]   Version:          19.03.13
[2020-10-05T13:53:49.021Z]   API version:      1.40 (minimum version 1.12)
[2020-10-05T13:53:49.021Z]   Go version:       go1.13.15
[2020-10-05T13:53:49.021Z]   Git commit:       4484c46d9d
[2020-10-05T13:53:49.021Z]   Built:            Wed Sep 16 17:01:06 2020
[2020-10-05T13:53:49.022Z]   OS/Arch:          linux/amd64
[2020-10-05T13:53:49.022Z]   Experimental:     false
[2020-10-05T13:53:49.022Z]  containerd:
[2020-10-05T13:53:49.022Z]   Version:          1.3.7
[2020-10-05T13:53:49.022Z]   GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
[2020-10-05T13:53:49.022Z]  runc:
[2020-10-05T13:53:49.022Z]   Version:          1.0.0-rc10
[2020-10-05T13:53:49.022Z]   GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
[2020-10-05T13:53:49.022Z]  docker-init:
[2020-10-05T13:53:49.022Z]   Version:          0.18.0
[2020-10-05T13:53:49.022Z]   GitCommit:        fec3683
[2020-10-05T13:54:00.099Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-10-05T13:54:00.110Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-10-05T13:54:00.183Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21479-6/source/source.tgz
[2020-10-05T13:54:00.203Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21479-6/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21479/source.tgz
[2020-10-05T13:54:12.468Z] + tar --version
[2020-10-05T13:54:12.768Z] + tar -xpf source.tgz
[2020-10-05T13:54:25.330Z] + rm source.tgz
[2020-10-05T13:54:25.441Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats
[2020-10-05T13:54:25.454Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/uncategorized-1601903894900
[2020-10-05T13:54:25.528Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/filebeat-build-1601904611904
[2020-10-05T13:54:25.591Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/filebeat-windows-windows-2019-1601904801677
[2020-10-05T13:54:25.681Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/x-pack-filebeat-windows-windows-2019-1601904832982
[2020-10-05T13:54:25.769Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats/x-pack-filebeat-build-1601905989140
[2020-10-05T13:54:26.177Z] + cat
[2020-10-05T13:54:26.177Z] + /usr/local/bin/runbld ./runbld-test-reports --job-name elastic+beats+pull-request
[2020-10-05T13:54:26.177Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-10-05T13:54:32.783Z] runbld>>> runbld started
[2020-10-05T13:54:32.783Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-10-05T13:54:34.717Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-10-05T13:54:34.717Z] runbld>>> Matches in the system config:
[2020-10-05T13:54:34.717Z] runbld>>> - Matched ^elastic\+beats
[2020-10-05T13:54:34.717Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-10-05T13:54:35.661Z] runbld>>> Debug logging enabled.
[2020-10-05T13:54:35.661Z] runbld>>> Storing result
[2020-10-05T13:54:35.923Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-10-05T13:54:35.923Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005135435-BB345F57
[2020-10-05T13:54:35.923Z] runbld>>> Adding system facts.
[2020-10-05T13:54:37.315Z] runbld>>> Adding vcs info for the latest commit:  3db1b153ae27f41edfa0868ca2117861ad648247
[2020-10-05T13:54:37.315Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-10-05T13:54:37.315Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-10-05T13:54:37.315Z] + echo 'Processing JUnit reports with runbld...'
[2020-10-05T13:54:37.315Z] Processing JUnit reports with runbld...
[2020-10-05T13:54:37.578Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-10-05T13:54:37.578Z] runbld>>> DURATION: 35ms
[2020-10-05T13:54:37.578Z] runbld>>> STDOUT: 40 bytes
[2020-10-05T13:54:37.578Z] runbld>>> STDERR: 49 bytes
[2020-10-05T13:54:37.578Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-10-05T13:54:37.578Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21479
[2020-10-05T13:54:38.535Z] runbld>>> Storing build metadata: 
[2020-10-05T13:54:38.535Z] runbld>>> Adding test report.
[2020-10-05T13:54:38.535Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21479/src/github.com/elastic/beats
[2020-10-05T13:54:39.107Z] runbld>>> Found 10 test output files
[2020-10-05T13:54:40.053Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 4101 Skipped: 534
[2020-10-05T13:54:40.314Z] runbld>>> Storing result
[2020-10-05T13:54:40.314Z] runbld>>> FAILURES: 0
[2020-10-05T13:54:40.576Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-10-05T13:54:40.576Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20201005135435-BB345F57
[2020-10-05T13:54:40.836Z] runbld>>> Email notification disabled by environment variable.
[2020-10-05T13:54:40.836Z] runbld>>> Slack notification disabled by environment variable.
[2020-10-05T13:54:46.329Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21479
[2020-10-05T13:54:46.403Z] [INFO] getVaultSecret: Getting secrets
[2020-10-05T13:54:46.478Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-05T13:54:47.061Z] + chmod 755 generate-build-data.sh
[2020-10-05T13:54:47.061Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/runs/6 FAILURE 3561468
[2020-10-05T13:54:47.061Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/runs/6/steps/?limit=10000 -o steps-info.json
[2020-10-05T13:54:47.972Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21479/runs/6/tests/?status=FAILED -o tests-errors.json

kvch added a commit to kvch/beats that referenced this pull request Oct 5, 2020
## What does this PR do?

This PR adds the implementation of `fileProspector`. The prospector listens for events from the `FSWatcher` and processes them depending on the type of the event. Possible actions are starting a new Harvester to read from a file, removing an entry from the registry, etc.

(cherry picked from commit d987d10)
@kvch kvch added the v7.10.0 label Oct 5, 2020
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)
  ...
kvch added a commit that referenced this pull request Oct 5, 2020
## What does this PR do?

This PR adds the implementation of `fileProspector`. The prospector listens for events from the `FSWatcher` and processes them depending on the type of the event. Possible actions are starting a new Harvester to read from a file, removing an entry from the registry, etc.

(cherry picked from commit d987d10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Services (Deprecated) Label for the former Integrations-Services team v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants