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.7: Fix panic on metricbeat test modules #18853

Merged
merged 3 commits into from
Jun 4, 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
    37ace56 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2020

  1. Backport nil pipeline from elastic#16715

    Co-authored-by: Steffen Siering <steffen.siering@elastic.co>
    jsoriano and Steffen Siering committed Jun 2, 2020
    Configuration menu
    Copy the full SHA
    0792e65 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2020

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