Skip to content

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

Description

@jiangpengcheng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions