Duplicate InfinispanDirectoryProviders created when multiple sub-classes share the same index directory (Zach Kurey)

Description

InfinispanDirectoryProvider doesn't implement hashCode/equals. When multiple subclasses of the same type share the same index directory duplicates are created. The end result from an application perspective leads to duplicate search results, and lots of side effects like:

java.io.FileNotFoundException: Error loading medatada for index file: _b.fnm|M|Location
at org.infinispan.lucene.InfinispanDirectory.openInput(InfinispanDirectory.java:300)

The errors and duplicates go away after overriding hashCode/equals based on directoryProviderName

Environment

None

Status

Assignee

Unassigned

Reporter

Zach Kurey

Labels

None

Suitable for new contributors

Yes, likely

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure