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

Execute ingest node pipeline before creating the index (#39607) #39796

Merged

Commits on Mar 7, 2019

  1. Execute ingest node pipeline before creating the index (elastic#39607)

    Prior to this commit (and after 6.5.0), if an ingest node changes
    the _index in a pipeline, the original target index would be created.
    For daily indexes this could create an extra, empty index per day.
    
    This commit changes the TransportBulkAction to execute the ingest node
    pipeline before attempting to create the index. This ensures that the 
    only index created is the original or one set by the ingest node pipeline. 
    This was the execution order prior to 6.5.0 (elastic#32786). 
    
    The execution order was changed in 6.5 to better support default pipelines. 
    Specifically the execution order was changed to be able to read the settings
    from the index meta data. This commit also includes a change in logic such 
    that if the target index does not exist when ingest node pipeline runs, it 
    will now pull the default pipeline (if one exists) from the settings of the 
    best matched of the index template. 
    
    Relates elastic#32786
    Relates elastic#32758 
    Closes elastic#36545
    jakelandis committed Mar 7, 2019
    Configuration menu
    Copy the full SHA
    a815da6 View commit details
    Browse the repository at this point in the history