Empty indices throw error

Description

If an index exists but is empty, it seems that Logstash throws an exception when searching via Kibana.

To replicate:

Delete a type from an index. In my tests, it was the only type in the index, leaving it empty after deletion:

DELETE /logstash-2012.12.30/mytype/

Using Kibana, any queries including 2012/12/30 throws the exception attached.

Deleting the index entirely works okay.

Environment

None

Status

Assignee

Logstash Developers

Reporter

Chris Horsley

Labels

None

Affects versions

1.1.9

Priority