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 2018/09/26 02:01:00 UTC

[GitHub] jiazhai commented on issue #2653: Access function state by rest endpoint

jiazhai commented on issue #2653: Access function state by rest endpoint
URL: https://github.com/apache/pulsar/pull/2653#issuecomment-424559304
 
 
   running locally:
   ```
   - before produce hello.
   ➜  apache-pulsar-2.2.0-SNAPSHOT git:(func_state_rest) curl -s http://localhost:8080/admin/v2/functions/test/test-namespace/word_count/state/hello
   key 'hello' doesn't exist.%                                                                                                                                                         ➜  apache-pulsar-2.2.0-SNAPSHOT git:(func_state_rest) bin/pulsar-client produce -m "hello" -n 10 test_wordcount_src
   
   - produce hello once
   ➜  apache-pulsar-2.2.0-SNAPSHOT git:(func_state_rest) curl -s http://localhost:8080/admin/v2/functions/test/test-namespace/word_count/state/hello
   value : 10, version : 9% 
   
   - produce another time
   ➜  apache-pulsar-2.2.0-SNAPSHOT git:(func_state_rest) curl -s http://localhost:8080/admin/v2/functions/test/test-namespace/word_count/state/hello
   value : 20, version : 19%      
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services