You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/05/01 07:41:19 UTC

[GitHub] [pulsar] devinbost opened a new issue #10462: [Functions] Updating function wipes out userConfig

devinbost opened a new issue #10462:
URL: https://github.com/apache/pulsar/issues/10462


   There's a bug that's existed for a while in Pulsar where a Pulsar Function's userConfig is wiped out if it's not provided when a function is updated.
   
   To reproduce:
   
   1. Create a Pulsar function with a userConfig. For example:
   
   `bin/pulsar-admin functions create --tenant myTenant --namespace myNamespace --name myFunction --inputs persistent://myTenant/myNamespace/input-topic --output persistent://myTenant/myNamespace/output-topic --jar http://repository.xyz.com/content/jar-with-dependencies.jar --classname com.company.pulsar.ExampleFunction --userConfig '{"prop1":"val1","prop2":"val2"}';`
   
   2. Update the function without providing the existing userConfig:
   
   `bin/pulsar-admin functions update --tenant myTenant --namespace myNamespace --name myFunction --parallelism 5`
   
   3. Get the function:
   
   `bin/pulsar-admin functions get --tenant myTenant --namespace myNamespace --name myFunction`
   
   Notice that userConfig is now empty. 


-- 
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.

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



[GitHub] [pulsar] devinbost commented on issue #10462: [Functions] Updating function wipes out userConfig

Posted by GitBox <gi...@apache.org>.
devinbost commented on issue #10462:
URL: https://github.com/apache/pulsar/issues/10462#issuecomment-830577071


   Feel free to assign this one to me. I think I know what needs to be done to fix it.


-- 
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.

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



[GitHub] [pulsar] devinbost commented on issue #10462: [Functions] Updating function wipes out userConfig

Posted by GitBox <gi...@apache.org>.
devinbost commented on issue #10462:
URL: https://github.com/apache/pulsar/issues/10462#issuecomment-864303722


   Looks like this was already fixed by https://github.com/apache/pulsar/pull/10732


-- 
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.

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



[GitHub] [pulsar] devinbost closed issue #10462: [Functions] Updating function wipes out userConfig

Posted by GitBox <gi...@apache.org>.
devinbost closed issue #10462:
URL: https://github.com/apache/pulsar/issues/10462


   


-- 
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.

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