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. 02 9月, 2020 1 次提交
    • F
      [Issue 7933][pulsar-broker-common] Add some logging to improve Authentication... · 7ab29d85
      Frank J Kelly 提交于
      [Issue 7933][pulsar-broker-common] Add some logging to improve Authentication debugging and Fix typos in code "occured" -> "occurred" (#7934)
      
      Fixes #7933 
      
      ### Motivation
      Newbie trying to make his first contribution to this projection :-)
      
      ### Modifications
      
      Added some logging to Authentication Service to help debugging when there are more than one AuthN provider.
      When I did that I noticed a typo ('occured' should have two r's) so I decided to try to fix all of them
      7ab29d85
  3. 28 8月, 2020 1 次提交
  4. 04 8月, 2020 1 次提交
  5. 30 7月, 2020 1 次提交
  6. 29 7月, 2020 1 次提交
  7. 25 7月, 2020 3 次提交
  8. 15 7月, 2020 1 次提交
  9. 14 7月, 2020 2 次提交
  10. 11 7月, 2020 1 次提交
  11. 09 7月, 2020 1 次提交
  12. 08 7月, 2020 1 次提交
  13. 07 7月, 2020 1 次提交
  14. 03 7月, 2020 1 次提交
    • [Issue: 7379] Improve security setting of Pulsar Functions (#7424) · e99b6693
      冉小龙 提交于
      Fixes #7379 
      
      ### Motivation
      
      Rename some settings to make those broker-client TLS settings clearer.
      
      ### Modifications
      
      - replace `clientAuthenticationParameters` with `brokerClientAuthenticationParameters`
      - replace `clientAuthenticationPlugin` with `brokerClientAuthenticationPlugin`
      - replace `tlsHostnameVerificationEnable` with `tlsEnableHostnameVerification`
      e99b6693
  15. 02 7月, 2020 1 次提交
  16. 01 7月, 2020 1 次提交
    • S
      Functions metadata compaction (#7377) · 3d94553f
      Sanjeev Kulkarni 提交于
      * Function workers re-direct call update requests to the leader
      
      * Fixed test
      
      * tests pass
      
      * Working version
      
      * Fix test
      
      * Short circuit update
      
      * Fix test
      
      * Fix test
      
      * Fix tests
      
      * Added one more catch
      
      * Added one more catch
      
      * Seperated internal and external errors
      
      * Fix test
      
      * Address feedback
      
      * Do not expose updateOnLeader to functions
      
      * hide api
      
      * hide api
      
      * removed duplicate comments
      
      * Do leadership changes in function metadata manager
      
      * make the function sync
      
      * Added more comments
      
      * Throw error
      
      * Changed name
      
      * address comments
      
      * Deleted unused classes
      
      * Rework metadata manager
      
      * Working
      
      * Fix test
      
      * A better way for test
      
      * Address feedback
      
      * Added an option to compact function metadata topic
      
      * Address feedback
      
      * Incorporate feedback
      Co-authored-by: NSanjeev Kulkarni <sanjeevk@splunk.com>
      3d94553f
  17. 26 6月, 2020 2 次提交
  18. 25 6月, 2020 1 次提交
  19. 24 6月, 2020 1 次提交
    • B
      Various fixes and optimizations for processing assignments in function worker (#7338) · df0d189d
      Boyang Jerry Peng 提交于
      1. FunctionRuntimeManager initialize() should return messageId of last read message which is the position assignment tailer should start reading from
      2. Inefficient use of data structures in processAssignment()
      3. Wait for leader to finish init routine before allowing scheduler to compute new assignments
      4. Start leader service early so that the worker joins the worker membership sooner and its assignments don't get re-scheduled because initialize() routines for function runtime manager and metadata manager may take a while
      Co-authored-by: NJerry Peng <jerryp@splunk.com>
      df0d189d
  20. 20 6月, 2020 1 次提交
  21. 10 6月, 2020 2 次提交
  22. 09 6月, 2020 1 次提交
  23. 08 6月, 2020 1 次提交
  24. 07 6月, 2020 1 次提交
  25. 06 6月, 2020 1 次提交
  26. 05 6月, 2020 3 次提交
    • J
      fix typo follwing (#7170) · 49287fa7
      Jia Zhai 提交于
      fix typo: follwing => following
      49287fa7
    • S
      Attach names for all producers/readers in worker service (#7165) · 7add9309
      Sanjeev Kulkarni 提交于
      * Attach names for all producers/readers in worker service
      
      * Fix tests
      Co-authored-by: NSanjeev Kulkarni <sanjeevk@splunk.com>
      7add9309
    • O
      [#6003][pulsar-functions] Possibility to add builtin Functions (#6895) · 9b0098a1
      oncode 提交于
      Master Issue: #6003
      
      ### Motivation
      
      This pull request implements the possibility to add builtin functions (in the same way of the build in connectors). 
      
      The builtin function must include a `pulsar-io.yml` file with the following content
      
      ```yml
      name: <function-name>
      description: <function-desciption>
      functionClass: <function-class>
      ```
      
      e.g.
      ```yml
      name: test-function
      description: test function description
      functionClass: it.oncode.pulsar.functions.TestFunction
      ```
      
      it is possible to create a builtin function in the same way of the builtin sinks/sources.
      
      Example in scala
      ```scala
      val functionConfigBuilder: FunctionConfigBuilder = FunctionConfig.builder()
          val function =
            functionConfigBuilder
              .tenant("public")
              .namespace("default")
              .jar("builtin://test-function")
              .name("test-function-name")
              .className("it.oncode.pulsar.functions.TestFunction")
              .inputs(Seq("channel_in").asJava)
              .output("channel_out")
              .runtime(FunctionConfig.Runtime.JAVA)
              .build()
      
      Pulsar.admin.functions
            .createFunction(function, null)
      
      ```
      
      Function folder to be specified in the `conf/functions_worker.yml` conf file
      
      e.g.
      `functionsDirectory: ./functions`
      
      Function package must be in `*.nar` format like for source/sink connectors
      
      ### Modifications
      
      I modified the `pulsar-function-utils`, `pulsar-functions-worker` and `pulsar-common` modules on the basis of the built in connectors implementation.
      Also `Function.proto` has been modified in order to include the `builtin` property
      
      #### What this MR does not include
      
      - modification of pulsar-admin to fetch the available buildin functions
      - the related documentation
      
      This is a feature that is critical for us, I think we could open an issue for the remaining points and consider to merge this PR.
      9b0098a1
  27. 04 6月, 2020 1 次提交
  28. 03 6月, 2020 1 次提交
  29. 02 6月, 2020 1 次提交
  30. 30 5月, 2020 1 次提交
  31. 28 5月, 2020 1 次提交
  32. 22 5月, 2020 1 次提交
  33. 19 5月, 2020 1 次提交