1. 28 8月, 2019 1 次提交
    • S
      Fix the getSchema logic in pulsar proxy (#4975) · b8aa2b0d
      Sijie Guo 提交于
      *Motivation*
      
      The getSchema logic in Pulsar proxy handler doesn't handle the case that
      the request doesn't have schema version.
      
      *Modification*
      
      - Fix the logic to handle the case that a GetSchema request doesn't have schema version.
      - Forward the GetSchemaResponse back to the client
      
      *Tests*
      
      The GetSchema tests in ProxyTest was disabled by mistake. Turn it on.
      (cherry picked from commit 676fd71a)
      b8aa2b0d
  2. 07 6月, 2019 1 次提交
    • K
      Include pulsar-client-api in shaded client artifacts (#4445) · dfdfdb4e
      Kim Christian Gaarder 提交于
      * o.a.p.c.api -> o.a.p.c.protocol
      
      Classes in pulsar-common module were moved to avoid jpms split-package
      conflict between the pulsar-client-api and pulsar-common modules.
      
      * o.a.p.c.schema -> o.a.p.c.protocol.schema
      
      Classes in pulsar-common module were moved to avoid jpms split-package
      conflict between the pulsar-client-api and pulsar-common modules.
      dfdfdb4e
  3. 01 6月, 2019 1 次提交
  4. 31 5月, 2019 1 次提交
  5. 16 5月, 2019 1 次提交
    • Y
      [WIP] PIP-36: Support set message size in broker.conf (#4247) · da1cd78d
      Yong Zhang 提交于
      * Support set message size
      ---
      
      *Motivation*
      
      Currently Pulsar only support 5MB size of messages.But there are many cases will use more than 5MB message
      to transfer.
      https://github.com/apache/pulsar/wiki/PIP-36%3A-Max-Message-Size
      
      *Modifications*
      
      - Add message size in protocol
      - Automaticlly adjust client message size by server
      
      * Use `maxMessageSize` to set `nettyFrameSize` in bookie client
      ---
      
      *Motivation*
      
      When broker specify a `maxMessageSize` bookie should accept this value as `nettyFrameSize`
      
      *Modifications*
      
      - Use `cnx().getMaxMessageSize`
      - Discovery service only redirect so use the constant value `5 * 1024 * 1024` as message size
      - Put `MAX_METADATA_SIZE` as constant value in `InternalConfigurationData`
      
      * Use `Commands` to store message setting
      ---
      
      *Modifications*
      
      - use `Commands` to store default `MAX_MESSAGE_SIZE` and `MESSAGE_SIZE_FRAME_PADDING`
      - replace `LengthFieldBasedFrameDecoder` when has set message size
      - replace `PulsarDecoder.MaxMessageSize`
      
      * Fix some error
      
      * Fix license header
      
      * Add test and make `ClientCnx.maxMessageSize` static
      ---
      
      *Motivation*
      
      - Even if the cnx can't use, `maxMessageSize` should be used at compare message size. So it should as a static variable
      
      * fix code style
      
      * Fix license header
      da1cd78d
  6. 23 4月, 2019 1 次提交
    • M
      Reduce memory used in ClientCnx for pending lookups (#4104) · 3f779a40
      Matteo Merli 提交于
      ### Motivation
      
      Currently, each `ClientCnx` has a blocking queue for the max number of pending lookup requests. By default that ends up using an array of 45K objects. When a single process handles many connections (eg: broker or proxy), that will end up using 200K per connection just for this.
      
      ### Modifications
      
      Instead of using the fixed array size, use semaphore and a `ConcurrentLinkedQueue`
      
      * Reduce memory used in ClientCnx for pending lookups
      
      * Fixed semaphore size
      3f779a40
  7. 09 4月, 2019 1 次提交
    • J
      Issue 3655: Kerberos authentication for proxy (#3997) · 66a1b1b6
      Jia Zhai 提交于
      Fixes #3655
      
      Master Issue: #3491
      
      ### Motivation
      add support of Kerberos authentication for proxy
      
      ### Modifications
      add support of Kerberos authentication for proxy ;
      add unit test.
      
      ### Verifying this change
      Ut passed
      66a1b1b6
  8. 25 3月, 2019 1 次提交
  9. 13 3月, 2019 1 次提交
    • J
      PIP-30: interface for mutual authentication (#3677) · 09e3ed8a
      Jia Zhai 提交于
      This is to implement the mutual auth api discussed in "PIP-30: change authentication provider API to support mutual authentication"
      Mainly provide 2 new command CommandAuthResponse and  CommandAuthChallenge in proto, to support it.
      09e3ed8a
  10. 25 1月, 2019 1 次提交
  11. 10 1月, 2019 1 次提交
  12. 09 1月, 2019 2 次提交
  13. 26 10月, 2018 1 次提交
  14. 14 9月, 2018 1 次提交
    • P
      PIP-22: Dead Letter Topic (#2508) · 95fe84c7
      penghui 提交于
      ### Motivation
      
      Fixes #189
      
      When consumer got messages from pulsar, It's difficult to ensure every message can be consume success. Pulsar support message redelivery feature by set acknowledge timeout when create a new consumer. This is a good feature guarantee consumer will not lost messages.
      
      But however, some message will redelivery so many times possible, even to the extent that it can be never stop.
      
      So, It's necessary to support a feature to control it by pulsar. Users can use this feature and customize this feature to control the message redelivery behavior. The feature named Dead Letter Topic.
      
      ### Modifications
      
      Consumer can set maximum number of redeliveries by java client.
      Consumer can set the name of Dead Letter Topic by java client, It’s not necessary.
      Message exceeding the maximum number of redeliveries should send to Dead Letter Topic and acknowledged automatic.
      
      ### Result
      
      If consumer enable future of dead letter topic. When Message exceeding the maximum number of redeliveries, message will send to the Dead Letter Topic and acknowledged automatic.
      95fe84c7
  15. 25 8月, 2018 1 次提交
  16. 17 8月, 2018 1 次提交
  17. 23 7月, 2018 1 次提交
  18. 03 5月, 2018 1 次提交
  19. 18 4月, 2018 1 次提交
  20. 13 4月, 2018 1 次提交
  21. 07 4月, 2018 1 次提交
    • D
      Schema registry 4/N (#1381) · 1eb80681
      Dave Rusek 提交于
      * Schema Registry proto changes
      
      * Infrastructure to store schemas
      
      * A default schema registry implementation
      
      * Add admin api for the schema registry
      
      * Renumber schema fields
      
      * Update Pulsar API with schema changes
      
      * Revert field number change
      
      * Fix merge conflict
      
      * Fix broken merge
      
      * DestinationName has been renamed to TopicName
      
      * Address issues in review
      
      * Add schema type back to proto definition
      
      * Address comments regarding lombok usage
      
      * Remove reserved future enum fields
      
      * regenerate code from protobuf
      
      * Remove unused code
      
      * Add schema version to producer success message
      
      * plumb schema through to producer
      
      * Revert "Add schema version to producer success message"
      
      This reverts commit e7e72f468cf46f1605524a7399520c22763583c9.
      
      * Revert "Revert "Add schema version to producer success message""
      
      This reverts commit 7b902f6bdb1cb054e26577747ff4dd8c326a6248.
      
      * Persist schema on producer connect
      
      * Add principal to schema on publish
      
      * Reformat function for readability
      
      * Remove unused protoc profile
      
      * Rename put on schema registry to putIfAbsent
      
      * Reformat function for readability
      
      * Remove unused protoc profile
      
      * Rename put on schema registry to putIfAbsent
      
      * fix compile errors from parent branch changes
      
      * fix lombok tomfoolery on builder
      
      * plumb hash through and allow lookup by data
      
      * wip
      
      * run tests
      
      * wip: address review comments
      
      * switch underscore to slash in schema name
      
      * blah
      
      * Get duplicate schema detection to work
      
      * Fix protobuf version incompatibility
      
      * fix merge issues
      
      * Fix license headers
      
      * Fix license headers
      
      * Address review
      
      * Fix webservice
      
      * plumb schema from producer to server and back
      
      * Plumb schema through subscriber
      
      * Create and return schema via rest endpoint
      
      * Make DELETE great again
      
      * Clean up imports
      
      * Move resource objects to common package
      
      * Fix licenses
      
      * Update error message for schema registry service
      
      * Remove cruft
      
      * Address review comments
      
      - rename props to properties in GetSchemaResponse
      - Use config for ledger parameters
      
      * Address review comments
      
      * Fix license headers
      
      * deal with lombock stuff causing issues
      
      * Resolve conflict
      1eb80681
  22. 02 3月, 2018 1 次提交
  23. 27 2月, 2018 1 次提交
  24. 25 2月, 2018 1 次提交
  25. 15 2月, 2018 1 次提交
    • S
      Introduce ActiveConsumerListener for realizing if a consumer is active in a... · f2160c01
      Sijie Guo 提交于
      Introduce ActiveConsumerListener for realizing if a consumer is active in a failover subscription group (#1156)
      
      * Introduce ConsumerGroupListener for realizing if a consumer is active in a failover subscription group
      
      * Rename ConsumerGroupListener to ActiveConsumerListener
      
      * Fail subscribe if active consumer listener is provided with non-failover subscription.
      
      * Notify consumer state change only after the cursor is rewinded.
      
      * Address comments
      
      * Rename ActiveConsumerListener to ConsumerEventListener
      Use consumer object as identifier for comparison
      
      * Fix test after rebase
      
      * Fix license headers
      
      * Ignore active consumer change command in cpp client
      
      * rename "become" to "became"
      f2160c01
  26. 14 2月, 2018 1 次提交
    • J
      Issue 937: add CommandGetLastMessageId to make reader know the end of topic (#1066) · 74049522
      Jia Zhai 提交于
      * add CommandGetLastMessageId to getlastMessageId of topic
      
      * rebase master, change following comments
      
      * add partition index in GetLastMessageIdResponse
      
      * fix rebase error
      
      * bump proot version to v11
      
      * change following comments
      
      * change following comments2
      
      * change following comments3
      
      * change following comments
      
      * get cnx() first
      74049522
  27. 13 2月, 2018 2 次提交
  28. 10 2月, 2018 1 次提交
    • R
      Add hostname-verification at client tls connection (#1208) · 8d3ab43c
      Rajan Dhabalia 提交于
      * Add hostname-verification at client tls connection
      
      * add httpclient dep with exclude all + add pem in apache-rat
      
      * add httpclient+commons-logging dep in client-shading and LICENSE
      
      * shade artifacts
      
      * fix: proxy send certs to client for host verification
      8d3ab43c
  29. 08 2月, 2018 1 次提交
  30. 06 2月, 2018 1 次提交
  31. 25 1月, 2018 1 次提交
  32. 02 1月, 2018 1 次提交
  33. 01 11月, 2017 1 次提交
  34. 31 10月, 2017 1 次提交
  35. 16 9月, 2017 1 次提交
  36. 29 7月, 2017 1 次提交
  37. 12 7月, 2017 1 次提交
  38. 24 6月, 2017 1 次提交