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

improvement: Add more error retry codes, and handle 207 partial-success responses #8

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

darinspivey
Copy link
Collaborator

improvement: Handle partial-success 207 responses

If we get a partial-success (207) response, emit errors for
the failed lines. This maintains feature parity with the agent
in preparation for using this client inside of the agent.

Semver: minor
Ref: LOG-7151


improvement: Add more error codes for retry

This change enhances our list of error codes for status as well as
connection-based error codes. This will allow the client to be more
intelligent about when to retry.

Semver: minor
Ref: LOG-7151

@darinspivey darinspivey requested a review from a team September 1, 2020 20:23
@darinspivey darinspivey added the enhancement New feature or request label Sep 1, 2020
@darinspivey darinspivey changed the title improvement: Add more error retry codes, and handle 207 partial-failure responses improvement: Add more error retry codes, and handle 207 partial-success responses Sep 1, 2020
Copy link
Member

@mdeltito mdeltito left a comment

Choose a reason for hiding this comment

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

LGTM as-is, just a comment on test naming/organization

test/logger-agent-log.js Show resolved Hide resolved
mdeltito
mdeltito previously approved these changes Sep 1, 2020
This change enhances our list of error codes for status as well as
connection-based error codes.  This will allow the client to be more
intelligent about when to retry.

Semver: minor
Ref: LOG-7151
Copy link

@smusali smusali left a comment

Choose a reason for hiding this comment

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

just a small request

lib/logger.js Outdated Show resolved Hide resolved
If we get a partial-success (207) response, emit errors for
the failed lines.  This maintains feature parity with the agent
in preparation for using this client inside of the agent.

Semver: minor
Ref: LOG-7151
@darinspivey darinspivey merged commit f737344 into master Sep 2, 2020
@darinspivey darinspivey deleted the darinspivey/LOG-7151 branch September 2, 2020 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants