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

Influx CLI -import return code is zero even with import errors #7856

Closed
skladd opened this issue Jan 18, 2017 · 0 comments
Closed

Influx CLI -import return code is zero even with import errors #7856

skladd opened this issue Jan 18, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@skladd
Copy link
Contributor

skladd commented Jan 18, 2017

Currently (influxdb 1.1.1), the CLI exits with status zero, even if import errors occur:

influx -import -path=import_error.txt; echo "exit code: $?"

2017/01/18 11:40:00 error writing batch: {"error":"unable to parse 'temperature value=error 1484728200': invalid boolean"}

temperature value=error 1484728200
exit code: 0

contents of import_error.txt:

# DML
# CONTEXT-DATABASE: mydb

temperature value=error 1484728200

Errors like a missing file already result in exit codes other than 0.

@e-dard e-dard self-assigned this Jan 20, 2017
@e-dard e-dard added this to the 1.3.0 milestone Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants