Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 17, 2025

Bumps io.pinecone:pinecone-client from 3.1.0 to 4.0.1.

Release notes

Sourced from io.pinecone:pinecone-client's releases.

v4.0.1 Release

Fixed [issue #173](pinecone-io/pinecone-java-client#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: pinecone-io/pinecone-java-client@v4.0.0...v4.0.1

v4.0.0 Release

This version of the Pinecone Java SDK introduces Sparse Indexes. It also supports version 2025-01 of the Pinecone API. You can read more about versioning here.

Features

Sparse Index

Following is an example that shows how to create sparse index, upsert and query data into the index, and finally deleting the index.

import io.pinecone.proto.UpsertResponse;
import io.pinecone.unsigned_indices_model.QueryResponseWithUnsignedIndices;
import org.openapitools.db_control.client.model.DeletionProtection;
import org.openapitools.db_control.client.model.IndexModel;
import java.util.*;
public class SparseIndexExample {
public static void main(String[] args) {
// Instantiate Pinecone class
Pinecone pinecone = new Pinecone
.Builder(System.getenv("PINECONE_API_KEY"))
.withSourceTag("pinecone_test")
.build();
    // Create sparse Index
    String indexName = "example-index";
    String cloud = "aws";
    String region = "us-east-1";
    String vectorType = "sparse";
    Map<String, String> tags = new HashMap<>();
    tags.put("env", "test");
    pinecone.createSparseServelessIndex(indexName,
            cloud,
            region,
            DeletionProtection.ENABLED,
            tags,
            vectorType);
// Wait for index to be ready
Thread.sleep(10000);
IndexModel indexModel = pinecone.describeIndex(indexName);


</tr></table>

... (truncated)

Changelog

Sourced from io.pinecone:pinecone-client's changelog.

4.0.1

  • Create a new config per index connection

4.0.0

  • Add support for sparse indexes
  • Generate code based on 2025-01 open-api spec
Commits
  • c83ea24 Prepare to release v4.0.1 (#179)
  • b4cc92c Create new config per connection (#178)
  • 6ed8d46 Update rerank example in the README after breaking changes (#177)
  • 902f148 Prepare to release Java SDK v4.0.0 (#176)
  • 59b9f5f Add support to create sparse serverless index method (#175)
  • 0f9a483 Replace protoc with buf and add build script for generating code from the pro...
  • 154dfd3 remove commented code
  • 6afb4dd generate code based on 2025-01 api spec
  • 6e109e3 Add index tags (#169)
  • See full diff in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot requested a review from a team February 17, 2025 23:06
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java labels Feb 17, 2025
@settings settings bot removed the java label Feb 19, 2025
@eddumelendez
Copy link
Member

@dependabot rebase

Bumps [io.pinecone:pinecone-client](https://github.com/pinecone-io/pinecone-java-client) from 3.1.0 to 4.0.1.
- [Release notes](https://github.com/pinecone-io/pinecone-java-client/releases)
- [Changelog](https://github.com/pinecone-io/pinecone-java-client/blob/main/CHANGELOG.md)
- [Commits](pinecone-io/pinecone-java-client@v3.1.0...v4.0.1)

---
updated-dependencies:
- dependency-name: io.pinecone:pinecone-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/gradle/modules/pinecone/io.pinecone-pinecone-client-4.0.1 branch from f408811 to 10cd0fe Compare July 14, 2025 17:37
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 15, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/gradle/modules/pinecone/io.pinecone-pinecone-client-4.0.1 branch August 15, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file modules/pinecone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants