1. 10 8月, 2019 7 次提交
    • H
      requests should respect no_proxy env variable (#4867) · 648f0c82
      Heiss 提交于
      If you want to specify a no_proxy variable in your dockerfile or docker-compose.yml, then this little fix respects the variable in get-requests. Otherwise the proxies could break your docker namespace lookup.
      648f0c82
    • L
      [pulsar-sql] Handle schema not found (#4890) · 2069f761
      lipenghui 提交于
      * Handle get schema 404 in pulsar sql(table meta and get splits)
      
      * Fix unit test.
      
      * add defaultSchema()
      
      * use Schema.BYTES.getSchemaInfo()
      
      * add unit test
      
      * rebase and fix unit tests
      2069f761
    • Fix swagger of FunctionBase display problem (#4901) · b3ae47c6
      冉小龙 提交于
      * Fix swagger of FunctionBase display problem
      Signed-off-by: Nxiaolong.ran <ranxiaolong716@gmail.com>
      
      * fix comments
      Signed-off-by: Nxiaolong.ran <ranxiaolong716@gmail.com>
      b3ae47c6
    • H
      Update admin-api-overview.md (#4922) · 2ea530e7
      huangdx0726 提交于
      Fixes #4914
      
      ### Motivation
         1.Go to 'http://pulsar.apache.org/docs/en/admin-api-overview'
         2.Scroll down to 'Java admin client' and click ClientConfiguration link
         3.404 not found error is displayed "The requested URL /api/admin/org/apache/pulsar/client/admin/ClientConfiguration was not found on this server."
         4.the examples can't work.
      
      ### Modifications
      1.The link to ClientConfiguration  changed to PulsarAdminBuilder.
      2.The example changed to 
      ```
      String url = "http://localhost:8080";
      // Pass auth-plugin class fully-qualified name if Pulsar-security enabled
      String authPluginClassName = "com.org.MyAuthPluginClass";
      // Pass auth-param if auth-plugin class requires it
      String authParams = "param1=value1";
      boolean useTls = false;
      boolean tlsAllowInsecureConnection = false;
      String tlsTrustCertsFilePath = null;
      PulsarAdmin admin = PulsarAdmin.builder()
      .authentication(authPluginClassName,authParams)
      .serviceHttpUrl(url)
      .tlsTrustCertsFilePath(tlsTrustCertsFilePath)
      .allowTlsInsecureConnection(tlsAllowInsecureConnection)
      .build();
      ```
      2ea530e7
    • Y
      [Transaction][Buffer] move the transaction buffer code to the broker module (#4919) · 1ad632d6
      Yong Zhang 提交于
      
      *Motivation*
      
      Currently, all transaction buffer code in the transaction module. A transaction buffer inherits `PersistentTopic`, it depends on the pulsar-broker module. When we need to create a transaction buffer at the pulsar-broker, the pulsar-broker depends on the transaction module. So it will cause cyclic reference.
      
      *Modifications*
      
      - move the code under transaction buffer module to the broker module
      1ad632d6
    • Y
      [doc] dashboard docker relative clarity (#4915) · 18d21acd
      Yi Tang 提交于
      Fixes #4913 
      
      ### Motivation
      
      The original document may mislead users into thinking that there is no any ready-made docker image and building one from scratch.
      18d21acd
    • L
      [pulsar-sql] Make partition as internal column (#4888) · 5adc522e
      lipenghui 提交于
      Fixes #4785
      
      ### Motivation
      
      1. Stop return partition name in table list, just return the partitioned topic name in table list. This will avoid huge tables while user create large number of partition.
      2. Make partition as internal column, provide users with the ability to get which partition data in and filtration based on partition. For example: 
      ```
      SELECT * FROM "my-table" WHERE "__partition__" = 0;
      SELECT * FROM "my-table" WHERE "__partition__" in (2,3);
      SELECT * FROM "my-table" WHERE "__partition__" < 1;
      ```
      ### Modifications
      
      1. Add "__partition__" internal column.
      2. Add domain handle for "__partition__".
      
      ### Verifying this change
      
      Added new unit test to verify this change
      
      ### Does this pull request potentially affect one of the following parts:
      
      *If `yes` was chosen, please highlight the changes*
      
        - Dependencies (does it add or upgrade a dependency): (no)
        - The public API: (yes)
        - The schema: (no)
        - The default values of configurations: (no)
        - The wire protocol: ( no)
        - The rest endpoints: (no)
        - The admin cli options: (no)
        - Anything that affects deployment: (no)
      
      ### Documentation
      
        - Does this pull request introduce a new feature? (yes)
      5adc522e
  2. 08 8月, 2019 2 次提交
    • E
      Merge Request for #4809: provide a convenient method for C++ client producer... · 8058775c
      Easyfan Zheng 提交于
      Merge Request for #4809: provide a convenient method for C++ client producer batch container (#4885)
      
      provide a convenient method for C++ client producer batch container https://github.com/apache/pulsar/issues/4809
      
      Formally the container element must be used like the following way:
      `MessageContainerList::iterator iter = messagesContainerListPtr->begin();`
      `iter->sendCallback_(r, iter->message_);`
      There are totally 3 reference operation steps inside:
      
      1. Reference an exact element of MessageContainer explicitly from outside by iteration operator;
      2. Reference the `sendCallback_` function pointer of said MessageContainer element explicitly from outside;
      3. Reference the `message_` member of said MessageContainer element explicitly from outside;
      
      Besides,  there is only one incoming variable say `Result r` is given from outside; 
      
      In an ideal design, a user of `MessageContainer` should not have to know exactly the existence of `MessageContainer::sendCallback_` or `MessageContainer::message_`, what they exactly are, either how to use them.  Organize those stuff in a right way, should be the responsibility of struct `MessageContainer` itself.
      
      So a reasonable convenient invoking method should be like:
      `MessageContainerList::iterator iter = messagesContainerListPtr->begin();`
      `iter->callBack(r);`
      
      And said `MessageContainer::callBack` function shall be implemented like below:
      `void callBack(const pulsar::Result& r) { sendCallback_(r, message_); }`
      
      Obviously, said convenient method is also an efficient one.
      
      Moreover, use a more efficient iteration method while going through the MessageContainerList; 
      From some benchmark test result in my local environment, such "for iteration based a fixed-length", will be 5 times faster than the STL::iterator operator way. 
      
      Refer to the change on BatchMessageContainer.cc, please.
      8058775c
    • Y
      Update pulsar-client-cpp README.mc (#4881) · c1f8293b
      Yong Zhang 提交于
      ---
      
      *Motivation*
      
      There is a error when execute cmake on pulsar-client-cpp
      
      CMake Error at CMakeLists.txt:151 (MESSAGE):
        Could not find Boost Python library
      c1f8293b
  3. 07 8月, 2019 2 次提交
  4. 06 8月, 2019 4 次提交
  5. 05 8月, 2019 10 次提交
    • B
      Allow resource overcommitting when running functions in Kubernetes (#4829) · c7b2cb37
      Boyang Jerry Peng 提交于
      ### Motivation
      
      Currently, when running Pulsar Functions, Sources, and Sinks in Kubernetes. The resources requests and resource limits are set to the same values.  While this is ok and everything will run as it should, actual resource utilization in the cluster might be low.   To increase actual resource utilization, we need to be able to overcommit a certain amount in our clusters
      c7b2cb37
    • S
      Enforce checkstyle in the pulsar sql module (#4882) · f6fee1c6
      Sergii Zhevzhyk 提交于
      ### Modifications
      
      The checksyle plugin was added to the pulsar sql module to enforce the defined style. All violations were fixed:
      
      - Ordering of imports.
      - Formatting of the code.
      - Absent Javadoc comments.
      - Other small issues.
      f6fee1c6
    • E
      Merge Request for #4871: change unittest code for support LLVM. (#4878) · ce681dfd
      Easyfan Zheng 提交于
       MacOS clang/llvm compiler imcompatible code in Unit test case BasicEndToEndTest.cc #4871
      ce681dfd
    • K
      Fix concurrent access of `uninitializedCursors` in `ManagedLedgerImpl.asyncOpenCursor` (#4837) · 5bf319e4
      Kezhu Wang 提交于
      ### Motivation
      Fix concurrent access of `uninitializedCursors` in `ManagedLedgerImpl.asyncOpenCursor`.
      
      ### Modifications
      * Adds test to expose concurrent access of `uninitializedCursors` in `ManagedLedgerImpl.asyncOpenCursor`.
      * Fixes concurrent access of `uninitializedCursors` in `ManagedLedgerImpl.asyncOpenCursor`.
      5bf319e4
    • G
      Update kubernetes deployment apis k8s post 1.9 (#4700) · bb1108e8
      Guillaume Braibant 提交于
      **Motivation**
      
      Fixes #4698 and #4699 
      
      **List of changes**
      
      1. Two new folders under pulsar/deployment/kubernetes/generic : 
      - original : contains the original scripts (pre Kubernetes 1.9)
      - k8s-1-9-and-above : contains the new scripts with APIs ipdated (Kubernetes 1.9 and above)
      
      2. bookie.yaml :
      - Migrate DaemonSet api version from extensions/v1beta1 to apps/v1
      - Declare the bookie service before the DaemonSet object for bookies
      
      3. broker.yaml
      - Migrate Deployment api version from apps/v1beta1 to apps/v1
      - Declare the bookie service before the Deployment object for brokers
      
      4. monitoring.yaml :
      - Migrate all Deployment api version from apps/v1beta1 to apps/v1
      - Declare each service before the Deployment object the service is bound to
      
      5. zookeeper.yaml :
      - Migrate StatefulSet api version from apps/v1beta1 to apps/v1
      - Declare the service before the StatefulSet object for zookeeper
      
      6. proxy.yaml
      - Migrate Deployment api version from apps/v1beta1 to apps/v1
      - Declare the bookie service before the Deployment object for proxy.
      bb1108e8
    • A
      [Doc] Add *Understand Schema* Section (#4786) · 822531c0
      Anonymitaet 提交于
      * Add *Understand Schema* Section
      
      * Update
      
      * Update
      
      * Update
      
      * update
      
      * Update
      
      * Update
      
      * Update
      
      * Update
      
      * Update
      
      * update
      822531c0
    • E
      Merge Request for #4808: TYPO in C++ client producer method for processing... · b90b4ea1
      Easyfan Zheng 提交于
      Merge Request for #4808: TYPO in C++ client producer method for processing failure case, and add corresponding unit test case. (#4873)
      
      Definitely, this is a typo. This method is dealing with the Failed Message with the GIVEN result, but not a CERTAIN result.
      
      Contribution Checklist
      #4808 : TYPO in C++ client producer method for processing failure case
      Add c++ client producer failure message unit test case.
      
      UT passed:
      
      BatchMessageTest
      b90b4ea1
    • D
      Added Pulsar in Action book (#4781) · 5ff464b5
      David Kjerrumgaard 提交于
      5ff464b5
    • Y
      [Transaction][buffer] Add new commands for the transaction (#4866) · 59a70db4
      Yong Zhang 提交于
      *Motivation*
      
      Add new commands for the transaction.
      
      *Modifications*
      
      - Add new property for `CommandSend`
      - Add new command `CommandEndTxnOnPartition`
      59a70db4
    • R
      Fix typo in helm chart (#4875) · 2b52ccb2
      Robert Moucha 提交于
      ### Motivation
      Incorrect value is being used in Pulsar Helm template `autorecovery-deployment.yaml`
      
      ### Modifications
      Proper variable name set.
      
      ### Verifying this change
      Fixed variable name is already set in `values.yaml` and `values-mini.yaml`.
      This change is a trivial rework / code cleanup without any test coverage.
      
      ### Documentation
      None needed.
      2b52ccb2
  6. 02 8月, 2019 6 次提交
  7. 01 8月, 2019 7 次提交
  8. 31 7月, 2019 1 次提交
  9. 30 7月, 2019 1 次提交