Skip to content

v4.0.1 Release

Latest
Compare
Choose a tag to compare
@rohanshah18 rohanshah18 released this 14 Feb 20:09
c83ea24

Fixed issue #173: Thread safety issue for getIndexConnection() and getAsyncIndexConnection()

The getIndexConnection() and getAsyncIndexConnection() methods were not thread-safe. The underlying connectionsMap, which maintains a mapping of index names (String) to their corresponding PineconeConnection instances, was incorrectly updating all entries to reference the most recently created connection. This fix ensures that each index maintains its own distinct connection, preventing unintended overwrites in multi-threaded environments.

What's Changed

Full Changelog: v4.0.0...v4.0.1