Homec4science
Diffusion YCSB 5ed3c649d00e

[elasticsearch] Fix and cleanup index creation

Authored by Jason Tedor <jason@tedor.me> on Apr 6 2016, 15:46.

Description

[elasticsearch] Fix and cleanup index creation

This commit fixes an issue with the index creation logic when the
elasticsearch.newdb flag is set to true. Namely, when running in local
mode the index would never exist (since the node always starts with a
clean temporary directory) but with elasticsearch.newdb an attempt would
be made to delete the index which would cause the workload to fail.

This commit also does a cleanup of the index creation logic using an
explicit create index request and passing the index settings along as
part of that index creation.

Details

Committed
Chrisjan Matser <cmatser@codespinnerinc.com>Apr 9 2016, 04:13
Pushed
iorgulescuOct 2 2018, 18:03
Parents
R7507:82c36c115c80: [elasticsearch] Remove useless setting
Branches
Unknown
Tags
Unknown

Event Timeline

Chrisjan Matser <cmatser@codespinnerinc.com> committed R7507:5ed3c649d00e: [elasticsearch] Fix and cleanup index creation (authored by Jason Tedor <jason@tedor.me>).Apr 9 2016, 04:13