-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][client]Add null check for Pulsar client clock configuration #24848
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
Conversation
|
BTW, For custom clock implementations, if the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24848 +/- ##
============================================
- Coverage 74.36% 74.02% -0.34%
+ Complexity 33856 32641 -1215
============================================
Files 1913 1913
Lines 149280 152228 +2948
Branches 17324 18163 +839
============================================
+ Hits 111012 112690 +1678
- Misses 29445 30515 +1070
- Partials 8823 9023 +200
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…apache#24848) (cherry picked from commit 54db7f2) (cherry picked from commit fb1b2a5)
…apache#24848) (cherry picked from commit 54db7f2) (cherry picked from commit 79784c0)
…apache#24848) (cherry picked from commit 54db7f2) (cherry picked from commit 79784c0)
…apache#24848) (cherry picked from commit 54db7f2)
…apache#24848) (cherry picked from commit 54db7f2) (cherry picked from commit fb1b2a5)
Motivation
Currently, when setting a clock for the Pulsar client, there is no null check for the clock parameter. This can cause a NullPointerException when sending messages if a null clock is passed.1
Modifications
This PR adds a null check for the clock parameter to provide a clear error message and prevent NPEs.
Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: 3pacccccc#26