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

HH Throws error even if disabled #4283

Closed
corylanou opened this issue Sep 30, 2015 · 7 comments
Closed

HH Throws error even if disabled #4283

corylanou opened this issue Sep 30, 2015 · 7 comments
Labels
difficulty/medium Resolving this issue should take up to a week

Comments

@corylanou
Copy link
Contributor

If you disable (or remove) the HH config, the service won't start and gives this error:

run: HintedHandoff.Dir must be specified. To generate a valid configuration file run `influxd config > influxdb.generated.conf`.

It should not be requiring a directory for a service that is disabled.

@jwilder
Copy link
Contributor

jwilder commented Sep 30, 2015

@corylanou
Copy link
Contributor Author

We probably need to change it to:

 else if c.HintedHandoff.Dir == "" && c.HintedHandoff.Enabled

@otoolep
Copy link
Contributor

otoolep commented Oct 3, 2015

I took a quick look at this code. I agree there doesn't seem to be a better way.

@otoolep
Copy link
Contributor

otoolep commented Oct 3, 2015

Hmm, but the issue is HH is on by default, so it is not as easy as that.

@otoolep otoolep added difficulty/medium Resolving this issue should take up to a week status/help-wanted labels Nov 4, 2015
@otoolep
Copy link
Contributor

otoolep commented Nov 4, 2015

Anyone familiar with toml processing -- or can just check out the code -- may be able to solve this issue. It's easy to reproduce -- simply pass a config file to influxd that does not contain any HH section.

@ch33hau
Copy link
Contributor

ch33hau commented Nov 10, 2015

Hi @otoolep , I have created a pull request for this issue, the way to fix is like @corylanou 's comment.
And one more thing is, since the Dir value is mandatory, so I disable HH by default, hope it make sense.

ch33hau added a commit to ch33hau/influxdb that referenced this issue Nov 10, 2015
corylanou added a commit that referenced this issue Nov 11, 2015
…sabled

Disable HintedHandoff if configuration is not set. #4283
@otoolep
Copy link
Contributor

otoolep commented Nov 13, 2015

All done!

@otoolep otoolep closed this as completed Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium Resolving this issue should take up to a week
Projects
None yet
Development

No branches or pull requests

4 participants