Skip to content

Conversation

bevzzz
Copy link
Collaborator

@bevzzz bevzzz commented Jul 2, 2025

var things = client.collections.use("Things");

// List existing shards
var shards = things.config.getShards();

// Update status
var fullShards = new ArrayList<>();
for (var shard : shards) {
  if (shard.name().contains("full") && !shard.status.equals("READONLY")) {
    fullShards.add(shard.name());
  }
}
things.config.updateShards(ShardStatus.READONLY, fullShards);

@bevzzz bevzzz self-assigned this Jul 2, 2025
Copy link

@orca-security-eu orca-security-eu bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

Include integration test to test the basic functionality
@bevzzz bevzzz merged commit b236c80 into v6 Jul 4, 2025
2 checks passed
@bevzzz bevzzz deleted the v6-shards branch July 4, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants