You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/06/13 03:25:31 UTC

[GitHub] [pulsar] frank-xf opened a new issue, #16030: [client][cpp] The declaration of the function name of pulsar_producer_configuration_get_crypto_failure_action in the cpp library is inconsistent with the implementation

frank-xf opened a new issue, #16030:
URL: https://github.com/apache/pulsar/issues/16030

   **Describe the bug**
   In the C language interface provided by `pulsar-client-cpp`, there is an interface for getting producer configuration properties:
   `pulsar_producer_configuration_get_crypto_failure_action`.
   However, when call the function to try to get the attribute value, it will prompt that the corresponding symbolic link cannot be found in the library, This is because the cpp library wrote the function name incorrectly when implementing it:
   The function name declared in the header file is: [pulsar_producer_configuration_get_crypto_failure_action](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/include/pulsar/c/producer_configuration.h#L201)
   But the function name in the implementation file is: [pulsar_producer_configuration_set_crypto_failure_action](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/lib/c/c_ProducerConfiguration.cc#L212)
   And there are two `pulsar_producer_configuration_set_crypto_failure_action` functions in the implementation file, so it can be determined that this is a typo by the API developer.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. include header file into your program
   2. call the function: `pulsar_producer_configuration_get_crypto_failure_action`
   3. compile and run your program: `g++ ...`
   4. Then you'll see: Symbolic link not found ...
   
   **Expected behavior**
   The program can run normally, and can get the correct property value.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] BewareMyPower closed issue #16030: [client][cpp] The declaration of the function name of pulsar_producer_configuration_get_crypto_failure_action in the cpp library is inconsistent with the implementation

Posted by GitBox <gi...@apache.org>.
BewareMyPower closed issue #16030: [client][cpp] The declaration of the function name of pulsar_producer_configuration_get_crypto_failure_action in the cpp library is inconsistent with the implementation
URL: https://github.com/apache/pulsar/issues/16030


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org