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

The option '--enable-stack-trace' is not an option on linux platforms #215

Open
hydrogen18 opened this issue Aug 31, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@hydrogen18
Copy link

commented Aug 31, 2018

I was running the KPL in production on a Linux machine and kept getting the processing halting due to SIGPIPE being received.

I searched around and discovered that curl is probably causing this, apparently most people ignore it.

In fact, this line appears to do just that:

https://github.com/awslabs/amazon-kinesis-producer/blob/v0.12.9/aws/utils/signal_handler.cc#L151

This code only runs whenever --enable-stack-trace is passed to the daemon. I added this switch and it has worked fine with no more SIGPIPE issues. I am suspecting that in the present implementation on Linux platforms you pretty much have to run with --enable-stack-trace. Maybe this should be removed as an option or the signal handler should be set all the time, not just when the option is present.

I can't provide an OSX or Window details as I don't really use those platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.