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

Handling errors in Intake V2 #1240

Closed
simitt opened this issue Aug 1, 2018 · 3 comments
Closed

Handling errors in Intake V2 #1240

simitt opened this issue Aug 1, 2018 · 3 comments
Assignees
Milestone

Comments

@simitt
Copy link
Contributor

simitt commented Aug 1, 2018

Figure out behaviour if an error happens while processing requests for Intake v2:

  • how to handle synchronous errors (validation, decoding)
  • how to handle async errors (transformation, writing to output, ..)

Are there cases where the connection should be closed or an immediate error should be returned or should there only be a summary returned?

Implementation depends on #1238

@roncohen
Copy link
Contributor

roncohen commented Aug 16, 2018

In the implementation here #1238 I've effectively categorized errors into two separate categories:

  • errors that cause the server to immediately respond and close the connection
    • content type error
    • metadata errors
    • errors reading from the ndjson stream
    • full queue
  • errors that allow apm server to continue processing. The errors become part of the summary response in the end.
    • json decoding issues
    • schema validation issues

At the moment, the "timeout waiting to be processed" error has not been adapted to the v2 response format. I'll change that so that the format is v2 compatible when appropriate and it will be in the "immediate response" category.

async error handling (transform, writing to output..) haven't changed

UPDATE: full queue is now in the "immediately respond and close" category.

@simitt
Copy link
Contributor Author

simitt commented Sep 4, 2018

@roncohen you are working/have been working on this right? Could you move it to progress or done please and assign to you?

@roncohen
Copy link
Contributor

roncohen commented Sep 4, 2018

I'll close this for now as the implementation is working: #1298 (comment)

@roncohen roncohen closed this as completed Sep 4, 2018
@alvarolobato alvarolobato added this to the 6.5 milestone Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants