jiangpengcheng opened a new issue, #21036:
URL: https://github.com/apache/pulsar/issues/21036

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   
[dbbaddb](https://github.com/apache/pulsar/commit/dbbaddb6dbdf2b5a2eaaa93a1ece37a31326a42b)
   
   ### Minimal reproduce step
   
   1. create function with `--producer-config`:
   
   ```
   pulsar-admin functions create --tenant public --namespace default  --name 
fuction-producer-config --inputs public/default/input_topic-1  --output 
public/default/output_topic-1 --producer-config 
'{"batchBuilder":"KEY_BASED","maxPendingMessages":"1000","maxPendingMessagesAcrossPartitions":"50000","useThreadLocalProducers":"true"}'
 --className org.apache.pulsar.functions.api.examples.ExclamationFunction --jar 
examples/api-examples.jar
   ```
   
   2. update the function with new `--producer-config`:
   
   ```
   pulsar-admin functions update --tenant public --namespace default  --name 
fuction-producer-config  --producer-config 
'{"batchBuilder":"KEY_BASED","maxPendingMessages":"1001","maxPendingMessagesAcrossPartitions":"50001","useThreadLocalProducers":"true"}'
   ```
   
   3. get the function
   
   ```
   pulsar-admin functions get --name fuction-producer-config
   ```
   
   ### What did you expect to see?
   
   the producer config should be updated:
   
   ```
     "producerConfig": {
       "maxPendingMessages": 1001,
       "maxPendingMessagesAcrossPartitions": 50001,
       "useThreadLocalProducers": true,
       "batchBuilder": "KEY_BASED"
     },
   ```
   
   ### What did you see instead?
   
   the producer config is not updated:
   
   ```
     "producerConfig": {
       "maxPendingMessages": 1000,
       "maxPendingMessagesAcrossPartitions": 50000,
       "useThreadLocalProducers": true,
       "batchBuilder": "KEY_BASED"
     },
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


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