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

Scala Kinesis Enrich: log all bad rows #1722

Closed
fblundun opened this issue May 28, 2015 · 3 comments
Closed

Scala Kinesis Enrich: log all bad rows #1722

fblundun opened this issue May 28, 2015 · 3 comments
Assignees

Comments

@fblundun
Copy link
Contributor

This would make debugging a lot easier...

@fblundun fblundun self-assigned this May 28, 2015
@fblundun fblundun added this to the Kinesis #6 milestone May 28, 2015
@fblundun fblundun assigned jbeemster and unassigned fblundun Jun 18, 2015
@jbeemster
Copy link
Member

Hey @fblundun do you mean logging the error just here:

https://github.com/snowplow/snowplow/blob/release/r67/3-enrich/scala-kinesis-enrich/src/main/scala/com.snowplowanalytics.snowplow.enrich.kinesis/sources/AbstractSource.scala#L183-L185

Or was there a different spot that you were thinking of logging at?

@fblundun
Copy link
Contributor Author

Doing it there mostly works but it doesn't see bad rows caused by oversized events (which are only introduced here). So I think that the logging should either be done in the enrichAndStoreEvents method or the KinesisSink's storeEnrichedEvents method.

This should only happen if the app is writing bad rows to Kinesis rather than stderr (since if bad events are being written to stderr logging adds nothing and pollutes stderr.)

@jbeemster
Copy link
Member

That makes sense! Okay I will add it to the KinesisSink only. Thanks for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants