Closing the write backing index of a data stream shouldn't be allowed. #88837
Labels
>bug
:Data Management/Data streams
Data streams and their lifecycles
Team:Data Management
Meta label for data/management team
Elasticsearch Version
8.3.2
Installed Plugins
No response
Java Version
bundled
OS Version
Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 x86_64
Problem Description
Expected behavior: You should always be able to write to a data stream if it has more than 1 generation.
Actual behavior: Being able to close the write index of the data stream means that there is no write index for the data stream and writes will fail.
I expected that we wouldn't be allowed to close the latest generation of a data stream.
Steps to Reproduce
The latest generation has successfully closed and if you try to index a new document to the data stream it will fail with
index_closed_exception
.Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: