1. 04 9月, 2020 1 次提交
    • B
      Various fixes for Batch Source (#7965) · 1632dcaf
      Boyang Jerry Peng 提交于
      * Various fixes for Batch Source
      1. Create intermediate topic/subscription prior to function running in case auto topic creation is turned off
      2. Fix possible NPE in CronTrigger when calling stop()
      3. Stop all producers created in ContextImpl
      4. Delete intermediate topic for batch source
      Co-authored-by: NJerry Peng <jerryp@splunk.com>
      1632dcaf
  2. 21 8月, 2020 1 次提交
  3. 04 8月, 2020 1 次提交
  4. 10 7月, 2020 1 次提交
    • M
      Fixed flaky test and resource leak in JavaInstanceTest (#7494) · 5e67e7d4
      Matteo Merli 提交于
      ### Motivation
      
      The async function test is relying on a race condition on when the counter is updated. 
      
      With `pendingQueueSize=2`, the 3rd event is blocked on the queue until the 1st event is processed. That makes 1st and 2nd event to be triggered around the same time and the validation to fail, when we the 2nd event to be already done.
      
      Additionally, there are multiple threads leaked by this test.
      5e67e7d4
  5. 12 5月, 2020 1 次提交
  6. 08 5月, 2020 1 次提交
    • J
      Support function with format: Function<I, CompletableFuture<O>> (#6684) · 7cd28b9d
      Jia Zhai 提交于
      Fixes #6519
      
      ### Motivation
      
      Currently, Pulsar Functions not support Async mode, e.g. user passed in a Function in format :
      ```
      Function<I, CompletableFuture<O>>
      ```
      This kind of function is useful if the function might use RPCs to call external systems.
      
      e.g.
      ```java
      public class AsyncFunction implements Function<String, CompletableFuture<O>> {
          CompletableFuture<O> apply (String input) {
              CompletableFuture future = new CompletableFuture();
              ...function compute...
              future.whenComplete(() -> {
                  ...  call external system  ...
              });
              return future;
          }
      ```
      
      ### Modifications
      - add support for Async Functions support.
      
      ### Verifying this change
      current ut passed.
      
      
      
      * support func: Function<I, CompletableFuture<O>>
      
      * add 2 examples
      
      * add limit to the max outstanding items
      7cd28b9d
  7. 22 4月, 2020 1 次提交
  8. 04 11月, 2019 1 次提交
  9. 28 10月, 2019 1 次提交
    • J
      added deletion of state for Functions (#5469) · 309c78e7
      johnwagster 提交于
      ### Motivation
      
      Adding support for state deletion for Functions.  Ran into a use-case where it would be nice to be able to let go of state wherein the key is changing but the data itself is ephemeral. 
      
      ### Modifications
      
      I've reflected the changes in the bookkeepr API back through in the context and state context API's so that you can delete on a put by passing null or call the new api for delete.
      
      ### Verifying this change
      
      This change added tests and can be verified as follows:
       - Running the unit tests available in the ContextImplTest and ContextStateImplTest
      309c78e7
  10. 27 9月, 2019 1 次提交
  11. 27 8月, 2019 1 次提交
  12. 26 7月, 2019 1 次提交
    • V
      Test cleanup and simplification (#4799) · fb6895db
      vzhikserg 提交于
      * Simplified assert statements in the tests. Switch to usage of static imports in tests. (Part 1)
      
      * Simplify assert statements in the tests and use the appropriate assert statements. Switch to usage of static imports in tests. Remove unused imports (Part 2)
      fb6895db
  13. 22 7月, 2019 1 次提交
  14. 13 7月, 2019 1 次提交
  15. 10 7月, 2019 1 次提交
  16. 24 5月, 2019 1 次提交
  17. 15 5月, 2019 1 次提交
  18. 05 5月, 2019 1 次提交
    • [issue#4042] improve java functions API (#4093) · 65fe863f
      冉小龙 提交于
      Master Issue: #4042
      
      Fixes #4042
      
      Motivation
      
      improve java functions API, when you need to publish the fields in the TypedMessageBuilder, there is no need to add a new publish method, just modify the interface in the TypedMessageBuilder.
      65fe863f
  19. 13 4月, 2019 1 次提交
    • B
      Set key for message when using function publish (#4005) · 23b1418f
      Boyang Jerry Peng 提交于
      * Allow to configure TypedMessageBuilder through a Map conf object
      
      * Use constants for message confs
      
      * Reverted previous change
      
      * Use Long instead of Number
      
      * Set key for message when using function publish
      
      * fix unit test
      
      * fix python test
      
      * improving impl
      
      * improving implementation
      
      * add tests and examples
      
      * fix bug
      
      * fix bug
      
      * fixing comments
      
      * fix example
      
      * addressing comments
      
      * fix function
      23b1418f
  20. 05 4月, 2019 1 次提交
  21. 02 4月, 2019 1 次提交
  22. 28 3月, 2019 1 次提交
  23. 24 3月, 2019 1 次提交
  24. 09 3月, 2019 1 次提交
    • W
      [pulsar-functions] fix words error and remove not use import java class (#3791) · 4f03548c
      wpl 提交于
      ### Motivation
         when I study and read this module code , I fix some error like:
      1. words error, such as JaveInstance -> JavaInstance, Recieved -> Received,  Unknwon -> Unknown, alterted -> alterted, Updare -> Update, etc.
      2. remove not use import java class.
      3. duplicated code in this  java class I extract method. 
      4. javadoc  styles are consistent (not required)
      
      ### Modifications
      
      minor fix up in pulsar-functions module
      4f03548c
  25. 05 3月, 2019 1 次提交
  26. 26 2月, 2019 1 次提交
  27. 24 2月, 2019 1 次提交
    • B
      report sys errors when failed to produce successfully (#3668) · 03b06a66
      Boyang Jerry Peng 提交于
      * report sys errors when failed to produce sucessfully
      
      * enhancing error message
      
      * adding metrics to context publish
      
      * enhancing error logging and adding java error handling
      
      * fixing tests
      
      * cleaning up
      
      * addressing comments and fix bug
      
      * cleaning up
      
      * fix bug
      
      * fix test
      
      * check is none
      
      * fix unit test
      
      * cleaning up
      03b06a66
  28. 13 2月, 2019 1 次提交
  29. 15 1月, 2019 1 次提交
  30. 08 1月, 2019 1 次提交
  31. 01 1月, 2019 1 次提交
  32. 22 12月, 2018 1 次提交
  33. 15 12月, 2018 1 次提交
    • B
      remove pulsar-client-schema (#3184) · 5dd4b6e7
      Boyang Jerry Peng 提交于
      * remove pulsar-client-schema
      
      * shade avro dependencies in pulsar-client-kafka-shaded
      
      * refactor api to separate module
      
      * adding schema back
      
      * cleaning up
      
      * fix license issue
      
      * fixing licenses
      
      * cleaning up
      
      * adding back lombok
      
      * cleaning up
      5dd4b6e7
  34. 09 11月, 2018 1 次提交
    • B
      Expose metrics via http port in function instance (#2930) · 900e7479
      Boyang Jerry Peng 提交于
      * fix bugs in python metrics
      
      * instance expose metrics
      
      * remove commented out code
      
      * fix unit tests
      
      * remove commented out code
      
      * fixing test
      
      * fix python instance test
      
      * removing old code
      
      * fix bug
      
      * refactoring java metrics
      
      * refactoring python metrics
      
      * cleaning up code
      
      * removing unneccessary code
      
      * improving metrics format
      
      * fixing test
      
      * fix bugs and revising format
      
      * fix bug
      
      * fix for python3
      
      * change user defined metric to summary
      
      * renaming labels
      
      * change back python
      900e7479
  35. 02 11月, 2018 1 次提交
  36. 31 10月, 2018 1 次提交
  37. 24 10月, 2018 1 次提交
  38. 23 10月, 2018 1 次提交
    • S
      Removed Validation Annotations and do manual Validation (#2813) · 32d1dafd
      Sanjeev Kulkarni 提交于
      * Added Get and List source/sink functionality
      
      * Fixed compile
      
      * Removed test that doesnt make sense any more
      
      * Fixed build
      
      * Fixed logic
      
      * Return error response
      
      * Return response on error
      
      * Fix unittest
      
      * Fixed unittest
      
      * Fixed unittest
      
      * Fixed unittest
      
      * Added get/list sinks tests
      
      * Added get/list tests
      
      * Add more unittests
      
      * Added more unittests
      
      * Added TODO
      
      * Took feedback
      
      * Fix unittest
      
      * Fix unittest
      
      * Fix unittest
      
      * Fixed integration tests
      
      * Fixed integration test
      
      * Added restart/stop functionality to the sources/sinks
      
      * Added getstatus method to sources/sink
      
      * Fix integration tests
      
      * Do Explicit Validation of Configs instead of annotations
      
      * Remove all annotations from config files
      
      * Removed validator related classes
      
      * Removed unused imports
      
      * Fix check logic
      
      * fix compilation
      
      * Fix unittest
      
      * Fixed unittest
      
      * Fixed unittest
      
      * Validator tests should be done elsewhere
      
      * Added unittest
      
      * Fixed unittest
      32d1dafd
  39. 10 10月, 2018 1 次提交
  40. 07 10月, 2018 1 次提交