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

SDAP-107 Ningester container does not report exit code correctly #9

Merged
merged 1 commit into from Jun 14, 2018

Conversation

fgreg
Copy link
Member

@fgreg fgreg commented Jun 6, 2018

Because I was using a pipe to prepend text to every log line, when the java command failed the exit status was being overwritten by the exit status of the sed command effectively making it 0. This caused the container to exit with code 0 and would show up as a successful job completion in kubernetes.

Fix was to use set -o pipefail in entrypoint script.

…y command in a pipe. Also added another unit test.
@fgreg fgreg self-assigned this Jun 6, 2018
@fgreg fgreg merged commit bc596c2 into apache:master Jun 14, 2018
@fgreg fgreg deleted the SDAP-107 branch June 14, 2018 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant