You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "anthonyikeda (via GitHub)" <gi...@apache.org> on 2023/03/12 18:57:25 UTC

[GitHub] [pulsar] anthonyikeda commented on issue #19721: [Bug] Cannot update Pulsar function in Pulsar standalone

anthonyikeda commented on issue #19721:
URL: https://github.com/apache/pulsar/issues/19721#issuecomment-1465273626

   I've had the same problem when deleting and re-creating a function in standalone mode:
   
   ```
   (base) ➜  apache-pulsar-2.11.0 bin/pulsar-admin functions create --function-config-file basic-function.yaml --jar basic-function-0.0.1-SNAPSHOT.nar
   Created successfully
   (base) ➜  apache-pulsar-2.11.0 bin/pulsar-admin functions delete --tenant test --namespace test-namespace --name string-to-string
   Deleted successfully
   (base) ➜  apache-pulsar-2.11.0 bin/pulsar-admin functions create --function-config-file basic-function.yaml --jar basic-function-0.0.1-SNAPSHOT.nar
   Package 'function://test/test-namespace/string-to-string@0' metadata already exists
   
   Reason: Package 'function://test/test-namespace/string-to-string@0' metadata already exists
   ```
   
   For some reason the `{PULSAR_HOME}/packages-storage/function/<tenant>/<namespace>/<function-name>` doesn't get removed causing this error.
   
   If you manually delete the folder, you can recreate (maybe also update) the function.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org