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

update a sink without tenant and namespace parameters will return a 404 error #1523

Open
jiangpengcheng opened this issue Jul 17, 2024 · 0 comments

Comments

@jiangpengcheng
Copy link
Member

Reproduce:

  1. create a sink

    pulsarctl sinks create --archive data-generator.nar --name package-upload-sink --inputs persistent://public/default/package-upload-connector-topic --custom-runtime-options '{"inputTypeClassName": "org.apache.pulsar.io.datagenerator.Person"}'
    
  2. update the sink without tenant and namespace

     ❯ pulsarctl sinks update --archive data-generator.nar --name package-upload-sink --parallelism 2
     [✖]  code: 404 reason: 404 Not Found
    

The reason is that the update command of sink will not use the default tenant and namespace when they are not specified, and it will use endpoint /admin/v3/sinks/package-upload-sink to get the sink, which returns a 404 error

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 a pull request may close this issue.

1 participant