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

Fix default registry path #46

Closed
wants to merge 1 commit into from
Closed

Fix default registry path #46

wants to merge 1 commit into from

Conversation

joshuaspence
Copy link
Contributor

Fixes #45. Changes $filebeat::registry_path to be consistent with the Filebeat documentation.

Fixes #45. Changes `$filebeat::registry_path` to be consistent with the [Filebeat documentation](https://www.elastic.co/guide/en/beats/filebeat/current/_updating_the_registry_file.html).
@pcfens
Copy link
Owner

pcfens commented Oct 11, 2016

I think that I used the the default from the tarball (this module was originally written pre-1.0).

I don't think this will be a problem to merge, but I'm going to test in my environment to make sure that changing it doesn't create issues for environments that are already running.

@joshuaspence
Copy link
Contributor Author

Unfortunately I think that this will cause issues for pre-existing environments because they will essentially lose their state.

@pcfens
Copy link
Owner

pcfens commented Oct 11, 2016

I think you're right. Any thoughts on possible mitigations? The only thing I can think of is an exec resource with a cp command if the old .filebeat registry exists, but that feels pretty dirty.

Even though the module hasn't made it to 1.0 I'd like to avoid breaking things best I can.

@joshuaspence
Copy link
Contributor Author

Yeah I can't think of a good way to do the migration unfortunately. A mv command is going to be tricky because you would also need to stop the filebeat service, which may not even be installed or running yet.

@pcfens
Copy link
Owner

pcfens commented Oct 11, 2016

It looks like deleting the registry file is a bad thing to do, so I'm stuck with what seems like 2 options:

  • Merge it now as a new release and put warnings everywhere while telling myself that this is why I didn't release v1.0 yet.
  • Wait until I add support for filebeat v5, which may not be backwards compatible either (I don't know yet because it's not done yet)

I find myself leaning towards the latter since nothing is broken in the current model, it just doesn't match the filebeat documentation. I can probably be talked into something else if there are strong feelings about it though.

@pcfens
Copy link
Owner

pcfens commented Oct 11, 2016

For completeness of documentation here: I suspect that I used this as the default because of how it's documented in the filebeat configuration reference.

@joshuaspence
Copy link
Contributor Author

So how do you want to proceed here?

@pcfens
Copy link
Owner

pcfens commented Nov 2, 2016

I added this to the other issue, but for completeness I wanted to add here:

I think the easiest way to keep moving on this will be to add something to the README.md file about a future change to this, and that it may be breaking. In a future release (after the v5 stuff stabilizes) we'll send a deprecation warning, then follow up a few days later with an actual change in the default.

@pcfens
Copy link
Owner

pcfens commented Nov 3, 2016

I'm going to let the just released v5 run for a few days at least before we try and make this change. I don't want to introduce too many changes at once in case there are bugs I didn't anticipate in the v5 release.

@joshuaspence
Copy link
Contributor Author

So how do we want to proceed here?

@pcfens pcfens closed this in 3e40840 Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants