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

Migration to new state structure #1703

Merged
merged 3 commits into from
May 24, 2016
Merged

Commits on May 24, 2016

  1. Migration to new state structure

    The previous state list was dependent on a file path. This had the potential to lead to overwrite and conflicts on file rotation. As the file path is also stored inside the state object this information was duplicated. Now a pure array is stored in the registry which makes the format more flexibel and brings it close to the format used by Logstash.
    
    Changes:
    * Not storing an index with paths as this leaded to duplicates
    * Introduction of last_seen to differentiate between entries with same bath which show up multiple times. This introduces also the base to clean up the registry file. Currently it is only used in the prospector, no registry yet.
    * Registry can now contain multiple entries for a path
    * Refactor registrar to use the same state array as prospector does
    * Introduce migration check to migrate from old to new state. Make it backward compatible by checking for old structure on startup
    * Decouple registrar from prospector
    * Update tests to follow new model
    ruflin committed May 24, 2016
    Configuration menu
    Copy the full SHA
    c824301 View commit details
    Browse the repository at this point in the history
  2. Create copy of states

    ruflin committed May 24, 2016
    Configuration menu
    Copy the full SHA
    3614306 View commit details
    Browse the repository at this point in the history
  3. Shorten copy

    ruflin committed May 24, 2016
    Configuration menu
    Copy the full SHA
    40a76c5 View commit details
    Browse the repository at this point in the history