1. 28 8月, 2019 26 次提交
  2. 27 8月, 2019 14 次提交
    • M
      Upgrade to Mockito 2.x (#4671) · 786e2b95
      Matteo Merli 提交于
      Upgrading to Mockito 2.28 and PowerMock 2.0. This a pre-step to be able to run CI with Java 11 / 12
      
      (cherry picked from commit 108780c7)
      786e2b95
    • T
      Support Pulsar schema for pulsar kafka client wrapper (#4534) · 6c67f948
      tuteng 提交于
      Fixes https://github.com/apache/pulsar/issues/4228
      
      Master Issue: https://github.com/apache/pulsar/issues/4228
      
      ### Motivation
      
      Use Pulsar schema in pulsar kafka client.
      
      ### Modifications
      
      Support schema of pulsar for pulsar kafka client
      
      ### Verifying this change
      
      Add Unit test
      (cherry picked from commit 99d3c11e)
      6c67f948
    • S
      [client] Provide a clock for generating publish timestamp for producers (#4562) · 60475dd1
      Sijie Guo 提交于
      *Motivation*
      
      Currently producers uses `System.currentTimeMillis()` as publish timestamp by default.
      However at some use cases, producers would like to a different way for generating publish timestamp.
      E.g. in a database use case, a producer might be use HLC (Hybrid Logic Clock) as publish timestamp;
      in integration tests, it might require the producer to use a deterministic way to generate publish timestamp.
      
      *Changes*
      
      This PR introduces a `clock` in building the client. This allows applications to override the system clock
      with its own implementation.
      
      *Verify the change*
      
      Add unit test to test customized clock in both batch and non-batch cases.
      
      (cherry picked from commit 7397b960)
      60475dd1
    • V
      Cleanup tests in the presto module (#4683) · 2c97da5e
      vzhikserg 提交于
      * Add static import statements for Assert to simplify the test in the presto module
      
      * Use the preferred way of the schema's creation. The predicates and functions were converted to lambda
      
      (cherry picked from commit c421ca6e)
      2c97da5e
    • T
      [Integeration-test]Fix integration-test failed when execute pip3 install pulsar_client (#4754) · eceb2c97
      tuteng 提交于
      * ### Motivation
      When installing the pulsar-client-2.5.0 using the image openjdk:8-jdk-slim, for debian 10 systems, python3.7 will be installed when apt-get install python3 is executed. When installing the client using pip3, the following exception will be thrown
      ```
      cat /etc/issue
      Debian GNU/Linux 10 \n \l
      
      root@40fdedf3f3c3:/# python3
      Python 3.7.3 (default, Apr  3 2019, 05:39:12)
      [GCC 8.3.0] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>>
      
      root@40fdedf3f3c3:/# pip3 install pulsar_client-2.5.0-cp35-cp35m-manylinux1_x86_64.whl
      ERROR: pulsar_client-2.5.0-cp35-cp35m-manylinux1_x86_64.whl is not a supported wheel on this platform.
      ```
      
      ### Modifications
      
      Install Use pip3.5 instead of pip3.
      
      * Deleute no used tools
      
      * Fix Docker command
      
      (cherry picked from commit 0a59b4ce)
      eceb2c97
    • S
      [build] `docker/publish.sh` doesn't work for pulsar-all and pulsar-standalone images (#4705) · ed1dfa47
      Sijie Guo 提交于
      *Motivation*
      
      pulsar-all and pulsar-standalone dont tag correct as pulsar image.
      so it fails `docker/publish.sh`
      
      *Modifications*
      
      Tag no-repo for both latest and the release version for both pulsar-all and pulsar-standalone
      
      *Verify this change*
      
      After patching this change, `docker/publish.sh` works as expected.
      (cherry picked from commit d2164ebf)
      ed1dfa47
    • L
      Add allowAutoTopicCreation to broker.conf and reference configuration. (#4694) · 0c630e7a
      lipenghui 提交于
      (cherry picked from commit a0ec11ac)
      0c630e7a
    • I
      Don't consider deleted schema when checking compatibility (#4669) · 8b4ff2ba
      Ivan Kelly 提交于
      feca5bbb changed topic delete logic to delete the schema when the
      topic is deleted (though this only seems to be enabled for idle topic
      GC). This exposed a bug in compatibility checking whereby if the a
      subscription tries to attach to the topic, even if using the same
      schema as had been used previously, a compatibility exception will be
      thrown.
      
      This is because the topic still appears to have a schema, even though
      there is no actual schema data, just a tombstone. I've changed the logic
      to return no schema if the schema read back is a tombstone.
      
      The issue doesn't affect producers because the check was already
      correct there.
      
      I've also updated the check for transitive compatibility to remove the
      prefix of schemas before the deleted schema. Previously this was
      throwing an NPE on the broker as it couldn't decode the deleted
      schema.
      
      This issue was discovered by failures in the healthcheck. The check
      period (5 minutes) was longer than the GC period (60 seconds). I would
      expect it to hit quite often in other scenarios also.
      (cherry picked from commit d77980d2)
      8b4ff2ba
    • M
      Fixed the default port for https and http in admin client (#4623) · 87d1ddd2
      Matteo Merli 提交于
      * Fixed the default port for https and http in admin client
      
      * Fixed test expectation
      
      * Removed space added by mistake
      
      (cherry picked from commit c15c867c)
      87d1ddd2
    • L
      Add pulsar-io-influxdb to distribution. (#4678) · a91cfc45
      lipenghui 提交于
      (cherry picked from commit 1b64a6e1)
      a91cfc45
    • M
      Renamed C++ logger enum names to avoid conflicts with compiler macros (#4664) · e5be2291
      Matteo Merli 提交于
      ### Motivation
      
      Fixes #4655
      
      Some compiler will have defined a macro for `DEBUG` and it will clash with the enum value name. Adding prefix to avoid the macro replacement.
      (cherry picked from commit da4e9323)
      e5be2291
    • B
      fix issue when submitting NAR via file url (#4577) · 75683678
      Boyang Jerry Peng 提交于
      * fix issue when submitting NAR via file url
      
      * fix unit tests
      
      * add more specific errors
      
      * fix test
      
      (cherry picked from commit e8025d50)
      75683678
    • E
      C++ client producer sendAsync() method will be blocked forever, if enough... · c9d5b4a8
      Easyfan Zheng 提交于
      C++ client producer sendAsync() method will be blocked forever, if enough batched messages sent timeout. (#4569) (#4657)
      
      (cherry picked from commit 2f686157)
      c9d5b4a8
    • M
      Add perPartition parameter to partitioned-stats API (#4639) · f0c18c99
      massakam 提交于
      ### Motivation
      
      Currently, the partitioned-stats API response includes stats for each partition. However, if the number of partitions and clients is large, the size of the response will be very large. In such cases, it is useful to have a query parameter to get a response that does not include stats for each partition.
      
      ```sh
      $ curl -s http://localhost:8080/admin/persistent/sample/standalone/ns1/pt1/partitioned-stats | jq .
      
      {
        "msgRateIn": 0,
        "msgThroughputIn": 0,
        "msgRateOut": 0,
        "msgThroughputOut": 0,
        "averageMsgSize": 0,
        "storageSize": 0,
        "publishers": [],
        "subscriptions": {
          "sub1": {
            "msgRateOut": 0,
            "msgThroughputOut": 0,
            "msgRateRedeliver": 0,
            "msgBacklog": 0,
            "blockedSubscriptionOnUnackedMsgs": false,
            "msgDelayed": 0,
            "unackedMessages": 0,
            "msgRateExpired": 0,
            "consumers": [],
            "isReplicated": false
          }
        },
        "replication": {},
        "metadata": {
          "partitions": 2
        },
        "partitions": {
          "persistent://sample/standalone/ns1/pt1-partition-1": {
            "msgRateIn": 0,
            "msgThroughputIn": 0,
            "msgRateOut": 0,
            "msgThroughputOut": 0,
            "averageMsgSize": 0,
            "storageSize": 0,
            "publishers": [],
            "subscriptions": {
              "sub1": {
                "msgRateOut": 0,
                "msgThroughputOut": 0,
                "msgRateRedeliver": 0,
                "msgBacklog": 0,
                "blockedSubscriptionOnUnackedMsgs": false,
                "msgDelayed": 0,
                "unackedMessages": 0,
                "msgRateExpired": 0,
                "consumers": [],
                "isReplicated": false
              }
            },
            "replication": {},
            "deduplicationStatus": "Disabled"
          },
          "persistent://sample/standalone/ns1/pt1-partition-0": {
            "msgRateIn": 0,
            "msgThroughputIn": 0,
            "msgRateOut": 0,
            "msgThroughputOut": 0,
            "averageMsgSize": 0,
            "storageSize": 0,
            "publishers": [],
            "subscriptions": {
              "sub1": {
                "msgRateOut": 0,
                "msgThroughputOut": 0,
                "msgRateRedeliver": 0,
                "msgBacklog": 0,
                "blockedSubscriptionOnUnackedMsgs": false,
                "msgDelayed": 0,
                "unackedMessages": 0,
                "msgRateExpired": 0,
                "consumers": [],
                "isReplicated": false
              }
            },
            "replication": {},
            "deduplicationStatus": "Disabled"
          }
        }
      }
      ```
      
      ### Modifications
      
      Added query parameter named `perPartition` to the partitioned-stats API. The default value is true.
      
      (cherry picked from commit 977b1a85)
      f0c18c99