ScheduledCommitPolicy might open unnecessary IndexWriter instances

Description

The ScheduledCommitPolicy might open unnecessary IndexWriter instances to check if it needs flushing, and in a rare race condition with the shutdown process it might hit an NPE to perform this check.

Environment

None

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure