-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve] Upgrade pulsar-client-python to 3.8.0 in Docker image #24544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improve] Upgrade pulsar-client-python to 3.8.0 in Docker image #24544
Conversation
|
test failure in python related test: |
|
Found the python related error in logs: @BewareMyPower Any recommendation about how to fix this? seems to originate to this line of code:
|
|
This might be caused by the upgrade of protobuf in apache/pulsar-client-python#260 for CVE. The python protobuf API might have changed. I guess that we need to regenerate the |
|
BTW, it also reminds me of the discussion I started long days ago: https://lists.apache.org/thread/5s2l9vgt5f973psb6xlttpmy4rpym7zh The Python function related code and tests are maintained in the |
Yes, it seems to be caused by that change. There are multiple I guess all of them would have to be re-generated. pulsar/bin/pulsar-managed-ledger-admin Lines 33 to 35 in de53c29
|
|
Let's see if the BookKeeper stream storage protobuf and grpc stubs are compatible. The stubs at https://github.com/apache/bookkeeper/tree/master/stream/clients/python/bookkeeper/proto haven't been updated for ages. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24544 +/- ##
============================================
+ Coverage 73.57% 74.31% +0.74%
+ Complexity 32624 32575 -49
============================================
Files 1877 1874 -3
Lines 139502 146231 +6729
Branches 15299 16772 +1473
============================================
+ Hits 102638 108673 +6035
- Misses 28908 28922 +14
- Partials 7956 8636 +680
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these new scripts documented or integrated into Maven build?
@BewareMyPower I've added docs now. There's no intention to integrate into the Maven build since the stubs would only need to be updated when the grpc version changes since grpcio-tools is used to generate stubs. grpcio-tools includes a specific libprotoc library so the protobuf version should match this version. I've documented this too. PTAL |
(cherry picked from commit 767d583)
(cherry picked from commit 767d583)
(cherry picked from commit 767d583)
…he#24544) (cherry picked from commit 767d583) Signed-off-by: Zixuan Liu <[email protected]>
…he#24544) (cherry picked from commit 767d583) Signed-off-by: Zixuan Liu <[email protected]>
Motivation
pulsar-client-python 3.8.0 has been released with fixes and it would be useful to upgrade pulsar-client-python used in Pulsar docker image.
Modifications
Documentation
docdoc-requireddoc-not-neededdoc-complete