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

filebeat: input v2 compat uses random ID for CheckConfig #41585

Merged
merged 10 commits into from
Nov 14, 2024

Commits on Nov 11, 2024

  1. filebeat: input v2 compat uses random ID for CheckConfig

    The CheckConfig function validates a configuration by creating and immediately discarding an input. However, a potential conflict arises when CheckConfig is used with autodiscover in Kubernetes.
    
    Autodiscover accumulates configuration changes and applies them in batches. This can be problematic if a stop event for a pod is closely followed by a start event for the same pod (e.g., during a pod restart) before the inputs are reloaded. In this scenario, autodiscover might attempt to validate the configuration for the start event while the input for the pod is already running. This would lead to filestream input manager to see two inputs with the same ID, triggering a log warning.
    
    Although this situation generates a warning, it doesn't result in data duplication. As the second input is only created to validate the configuration and later discarded. Also the reload process will ensure only new inputs are created, any input already running won't be duplicated.
    AndersonQ committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    32f04e3 View commit details
    Browse the repository at this point in the history
  2. fix changelog

    AndersonQ committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    5103cc1 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Configuration menu
    Copy the full SHA
    d10e55f View commit details
    Browse the repository at this point in the history
  2. fix refactor

    AndersonQ committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    ab8f727 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/31767-filestream-id-already-exis…

    …ts' into 31767-filestream-id-already-exists
    AndersonQ committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    0481528 View commit details
    Browse the repository at this point in the history
  4. fix refactor

    AndersonQ committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    67bcd91 View commit details
    Browse the repository at this point in the history
  5. use math/rand/v2

    AndersonQ committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    fd66a37 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9fc2539 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. Configuration menu
    Copy the full SHA
    de41ef4 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/31767-filestream-id-already-exis…

    …ts' into 31767-filestream-id-already-exists
    AndersonQ committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    51fabd3 View commit details
    Browse the repository at this point in the history