1. 28 8月, 2019 33 次提交
  2. 27 8月, 2019 7 次提交
    • 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