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

Cherry-pick #18797 to 7.x: Fix panic on metricbeat test modules #18851

Merged
merged 3 commits into from
Jun 3, 2020

Commits on May 29, 2020

  1. Fix panic on metricbeat test modules (elastic#18797)

    Since metricbeat light modules support processors (elastic#15923), module
    initialization requires a publisher in the beat so modules can attach
    their processors. `metricbeat test modules` is not initializing as
    normal metricbeat commands, and it is not initializing any output or
    publisher pipeline, so metricbeat panics when trying to initialize
    modules with the new method.
    
    This change adds a dummy publisher for this case, and fixes also a
    condition that was adding a `nil` module option, causing additional
    panics. A test that reproduced the issues is also added.
    
    (cherry picked from commit 25b8bf1)
    jsoriano committed May 29, 2020
    Configuration menu
    Copy the full SHA
    f6b9efa View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2020

  1. Configuration menu
    Copy the full SHA
    fed6d43 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2020

  1. Configuration menu
    Copy the full SHA
    8d1d4eb View commit details
    Browse the repository at this point in the history