1. 28 8月, 2019 2 次提交
  2. 15 5月, 2019 1 次提交
  3. 02 4月, 2019 1 次提交
  4. 29 3月, 2019 1 次提交
  5. 28 3月, 2019 1 次提交
  6. 24 3月, 2019 1 次提交
  7. 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
  8. 05 3月, 2019 1 次提交
  9. 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
  10. 18 2月, 2019 1 次提交
  11. 15 1月, 2019 1 次提交
  12. 08 1月, 2019 1 次提交
  13. 01 1月, 2019 1 次提交
  14. 19 12月, 2018 1 次提交
    • B
      optimize java functions stats code (#3209) · 83cf25c9
      Boyang Jerry Peng 提交于
      ### Motivation
      
      Optimized the stats collection code for java functions to reduce stats collection foot print both memory and cpu.  Reduced the number of objects allocated by 20% in java functions
      83cf25c9
  15. 11 12月, 2018 1 次提交
  16. 04 12月, 2018 2 次提交
    • B
      Consolidate timer threads in functions (#3109) · ded90862
      Boyang Jerry Peng 提交于
      * Use instanceCache schedulerExecutorService for timer
      
      * fixing process runtime
      
      * addressing comments
      ded90862
    • B
      report function exceptions via prometheus (#3107) · 8cd900c8
      Boyang Jerry Peng 提交于
      ### Motivation
      
      Allow exceptions in functions to be reported via prometheus
      
      example output:
      ```
      # TYPE pulsar_function_user_exception gauge
      pulsar_function_user_exception{cluster="standalone",error="error val: 0",fqfn="public/default/py-test",function="py-test",instance_id="0",namespace="public/default",tenant="public",ts="1543786615954"} 1.0
      pulsar_function_user_exception{tenant="public",namespace="public/default",function="test",instance_id="0",cluster="standalone",fqfn="public/default/test",error="error val: 5c53460e-03cf-4368-88d4-f23aeb3adf84",ts="1543787031371",} 1.0
      ```
      8cd900c8
  17. 28 11月, 2018 2 次提交
  18. 26 11月, 2018 1 次提交
  19. 22 11月, 2018 2 次提交
  20. 21 11月, 2018 1 次提交
    • S
      [state][standalone] When running with more than one function instance,... · 4f1b53c8
      Sijie Guo 提交于
      [state][standalone] When running with more than one function instance, Function instances will crash because of table service throws INTERNAL_SERVER_ERROR (#3017)
      
      *Motivation*
      
      When running with more than one function instance, Function instances will crash because of table service throws INTERNAL_SERVER_ERROR
      
      ```
      org.apache.pulsar.functions.runtime.shaded.org.apache.bookkeeper.clients.exceptions.ClientException: fail to access its root range : code = INTERNAL_SERVER_ERROR
              at org.apache.pulsar.functions.runtime.shaded.org.apache.bookkeeper.clients.impl.internal.ProtocolInternalUtils.createRootRangeException(ProtocolInternalUtils.java:105) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.org.apache.bookkeeper.clients.impl.internal.RootRangeClientImpl.processCreateNamespaceResponse(RootRangeClientImpl.java:129) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.org.apache.bookkeeper.clients.impl.internal.RootRangeClientImpl.lambda$createNamespace$4(RootRangeClientImpl.java:118) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.org.apache.bookkeeper.clients.utils.RpcUtils$1.onSuccess(RpcUtils.java:78) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.com.google.common.util.concurrent.Futures$4.run(Futures.java:1135) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:902) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:813) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:655) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.stub.ClientCalls$GrpcFuture.set(ClientCalls.java:487) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:465) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:471) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:553) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:474) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:591) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at org.apache.pulsar.functions.runtime.shaded.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) ~[java-instance.jar:2.3.0-SNAPSHOT]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_144]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_144]
      
      ```
      
      in current version of bk, `INTERNAL_SEVER_ERROR` was thrown a client attempts to create a table while the table already exists. In a newer version, the client handles that better.
      
      *Changes*
      
      A temp fix before upgrading BK to 4.9 is to handle creating state tables in a more reliable way.
      4f1b53c8
  21. 17 11月, 2018 1 次提交
    • B
      cleaning up and improving function metrics (#2994) · 23c5505d
      Boyang Jerry Peng 提交于
      * removing metrics module from functions
      
      * removing other references ot Prometheus metrics server
      
      * removing references to pulsar-functions-metrics
      
      * fix unit tests
      
      * revert test change
      
      * cleaning up and improving function metrics
      
      * slight refactoring
      
      * fix unittest
      
      * moving pulsar-spark tests into its own module
      23c5505d
  22. 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
  23. 04 11月, 2018 1 次提交
    • B
      Refactor function metrics to use prometheus (#2914) · 6583d2ce
      Boyang Jerry Peng 提交于
      * Beginging to refactor function metrics to use prometheus
      
      * fix unit test
      
      * removing test code
      
      * fix test
      
      * minor refactoring
      
      * addressing comments
      
      * adding python instance
      
      * remove test code
      
      * adding prometheus client as instance dependency
      
      * fix bug
      
      * adding prometheus to license file
      6583d2ce
  24. 03 11月, 2018 1 次提交
    • S
      [state] Initialize bookkeeper table service metadata on initializing pulsar... · 4e9971df
      Sijie Guo 提交于
      [state] Initialize bookkeeper table service metadata on initializing pulsar cluster metadata (#2706)
      
      
      *Motivation*
      
      This is the first set of changes to better integration with state storage.
      
      *Changes*
      
      - PulsarClusterMetadataSetup should initialize the metadata for bookkeeper table service
      - Move the common util functions to `StateUtils`
      - Delete state table on deleting functions
      
      4e9971df
  25. 31 10月, 2018 1 次提交
  26. 24 10月, 2018 2 次提交
  27. 27 9月, 2018 2 次提交
    • B
      implement topic routing on a per record basis (#2605) · e15a6065
      Boyang Jerry Peng 提交于
      ### Motivation
      
      There are use cases that the destination topic for a message cannot be determined at source submission time.  This requires the ability for sources to to set which topic a record should be written to.
      
      ### Modifications
      
      1. add an interface Record that allows users to set the destination topic for a record
      2. Refactored the Pulsar sink code to support this
      e15a6065
    • S
      [functions] change instance id from string to int and expose number of instances in context (#2411) · be5e847a
      Sijie Guo 提交于
      * [functions] change instance id from string to int and expose number of instances in context
      
       ### Motivation
      
      When writing a connector reading from a list of sources, it is hard for the connector implementation to decide how
      to distribute the list of sources across the function instances. because there is no way to tell how many function
      instances is running.
      
       ### Changes
      
      - change instance id from string to integer (since the implementation is already assuming instance id is an integer)
      - add getNumInstances in the context
      - expose both interfaces in source and sink connector context
      
      * Fix compilation
      be5e847a
  28. 20 9月, 2018 2 次提交
  29. 19 9月, 2018 1 次提交
    • S
      [tests] improve connector related integration tests (#2587) · 7530d64a
      Sijie Guo 提交于
      *Motivation*
      
      with more and more connector are added, it becomes expensive to start all external services at the begin.
      
      *Changes*
      
      - refactor the connector testing framework to start external service before methods
      - fix kafka, cassandra and mysql connectors
      7530d64a
  30. 06 9月, 2018 2 次提交
  31. 01 9月, 2018 1 次提交
  32. 22 8月, 2018 1 次提交
    • S
      Integrate Functions with Schema (#2397) · 7bff81e3
      Sanjeev Kulkarni 提交于
      * Integrate functions and io with schema registry
      
      * Added missing license headers
      
      * Renamed topicSchema to inputSpecs
      
      * Fixed comments
      
      * Fixed cli arg docs
      
      * Fixed schema arguments
      
      * Fixed errors after merge
      
      * Fixed instance parameters
      
      * Fixed tests and addressed comments
      
      * Fixed PulsarSourceTest after merge
      
      * Took feedback and made changes backwards compatible
      
      * Fixed compilation issues
      
      * Fixed bug
      
      * fixed test compilation
      
      * Fixed bug
      
      * Fixed bug
      
      * Fix pythn instance
      
      * Fixed the way cmdsink populates sinkconfig
      
      * Addressed feedback
      7bff81e3