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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to