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

CometD fix issue with salesforce server close #36291

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kush-elastic
Copy link
Collaborator

@kush-elastic kush-elastic commented Aug 11, 2023

Proposed commit message

  • This PR here is explicitly checks for EOF string errors from the salesforce server. because the CometD server is not able to handle unexpected EOF errors from salesforce it is throwing us EOF as in string with a host of salesforce CometD.

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

Logs

Jul 19 14:02:24 ip-12-0-1-123 filebeat[23356]: 2023-07-19T14:02:24.226Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 19 20:10:28 ip-12-0-1-123 filebeat[23356]: 2023-07-19T20:10:28.554Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 20 01:48:06 ip-12-0-1-123 filebeat[23356]: 2023-07-20T01:48:06.134Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 20 01:48:12 ip-12-0-1-123 filebeat[23356]: 2023-07-20T01:48:12.470Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 20 01:48:13 ip-12-0-1-123 filebeat[23356]: 2023-07-20T01:48:13.812Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 20 02:33:31 ip-12-0-1-123 filebeat[23356]: 2023-07-20T02:33:31.139Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 20 02:33:32 ip-12-0-1-123 filebeat[23356]: 2023-07-20T02:33:32.595Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 20 02:33:41 ip-12-0-1-123 filebeat[23356]: 2023-07-20T02:33:41.299Z ERROR [cometd] map[file.line:97 [file.name](https://file.name/):cometd/input.go] Retrying...! facing issue while collecting data from CometD#011{"error": "cannot connect to bayeux: bad unrecoverable call: Post \"https://salesforce-host.my.salesforce.com/cometd/38.0\": EOF, trying again", "ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.068Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.068Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.068Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.068Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.069Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.069Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.069Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.069Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.071Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.072Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.072Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.074Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.076Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
Jul 20 09:35:26 ip-12-0-1-123 filebeat[23356]: 2023-07-20T09:35:26.074Z INFO [cometd] map[file.line:77 [file.name](https://file.name/):cometd/input.go] Input worker has stopped.#011{"ecs.version": "1.6.0"}
[Comment](javascript:void(0);)  ·  [Like](javascript:void(0);)

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 11, 2023
@mergify
Copy link
Contributor

mergify bot commented Aug 11, 2023

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @kush-elastic? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@kush-elastic kush-elastic added the Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team label Aug 11, 2023
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 11, 2023
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

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: 2023-08-11T05:43:43.327+0000

  • Duration: 75 min 49 sec

Test stats 🧪

Test Results
Failed 0
Passed 3122
Skipped 176
Total 3298

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

Expand to view the 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
Contributor

mergify bot commented Feb 5, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @kush-elastic? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants