Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placement setting has no effect when creating a new key-value bucket #538

Open
hungiito opened this issue Feb 21, 2024 · 1 comment
Open
Assignees
Labels
defect Suspected defect such as a bug or regression good first issue Good for newcomers

Comments

@hungiito
Copy link

hungiito commented Feb 21, 2024

Observed behavior

placement parameter has no effect when creating new key-value bucket. For example:

Expected behavior

Key-value bucket to be placed in expected regions (specified by placement tags)

I tried adding placement=config.placement here and successfully created the bucket in the correct region.

Server and client version

  • Server version: PRO plan of Synadia cloud
  • nats-cli version: 0.1.1
  • nats-py version: 2.7.0

Host environment

No response

Steps to reproduce

Script to create new key-value bucket

client = ...
key_value = await client.jetstream.create_key_value(
    bucket="system",
    placement=Placement(tags=["geo:us-west", "cloud:aws"]),
)

nats kv info says that the stream is in another region (eu-west-1 in my case)

$ nats kv info system
Information for Key-Value Store Bucket system created 2024-02-21T20:45:03+01:00

Configuration:

          Bucket Name: system
         History Kept: 1
        Values Stored: 0
   Backing Store Kind: JetStream
          Description: System key value store
          Bucket Size: 0 B
  Maximum Bucket Size: 1.0 GiB
   Maximum Value Size: 2.0 MiB
          Maximum Age: 1m0s
     JetStream Stream: KV_system
              Storage: File

Cluster Information:

                 Name: ngsprod-aws-euwest1
               Leader: aws-euwest1-natscj1-2
@hungiito hungiito added the defect Suspected defect such as a bug or regression label Feb 21, 2024
@wallyqs wallyqs added the good first issue Good for newcomers label Feb 28, 2024
@wallyqs
Copy link
Member

wallyqs commented Feb 28, 2024

@hungiito feel free to send PR with your patch and can include in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants