-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Configurable data source for offloaded messages #8717
Conversation
/pulsarbot run-failure-checks |
Great work, maybe we could add a configuration like |
2d14cec
to
6a071f7
Compare
|
/pulsarbot run-failure-checks |
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
578727a
to
1cb61da
Compare
/pulsarbot run-failure-checks |
--- *Motivation* The pakcage management module build failed by the spotbugs check. That will block the project build.
/pulsarbot run-failure-checks |
2 similar comments
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
@hangc0276 Can you review this PR again? |
@sijie done |
# Conflicts: # managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
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.
@Renkai Overall the change looks great. I have left a couple of comments. Please take a look.
if (this.offloadReadPriorityStr != null) { | ||
try { | ||
offloadedReadPriority = OffloadedReadPriority.fromString(this.offloadReadPriorityStr); | ||
System.out.println("offloadedReadPriority = " + offloadedReadPriority); |
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.
@Renkai Can we avoid using System.out.println
?
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.
@sijie This code is in a command-line tool, I think stdout is a good choice for users to get information
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.
This is a set command, no?
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.
@sijie I check the code again, I think it's ok to remove println
so we can use mute as success information, if the value which user set is an invalid value, the tool will throw a exception. The println
was removed.
if (this.offloadReadPriorityStr != null) { | ||
try { | ||
offloadedReadPriority = OffloadedReadPriority.fromString(this.offloadReadPriorityStr); | ||
System.out.println("offloadedReadPriority = " + offloadedReadPriority); |
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.
@Renkai Can we avoid using System.out.println
?
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.
ditto
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.
But this is a set command, no? Why people need this information when setting the offloaded priority?
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.
ditto
pulsar-common/src/main/java/org/apache/pulsar/common/policies/data/OffloadPolicies.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Renkai <gaelookair@gmail.com>
Signed-off-by: Renkai <gaelookair@gmail.com>
if (this.offloadReadPriorityStr != null) { | ||
try { | ||
offloadedReadPriority = OffloadedReadPriority.fromString(this.offloadReadPriorityStr); | ||
System.out.println("offloadedReadPriority = " + offloadedReadPriority); |
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.
But this is a set command, no? Why people need this information when setting the offloaded priority?
if (this.offloadReadPriorityStr != null) { | ||
try { | ||
offloadedReadPriority = OffloadedReadPriority.fromString(this.offloadReadPriorityStr); | ||
System.out.println("offloadedReadPriority = " + offloadedReadPriority); |
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.
This is a set command, no?
Signed-off-by: Renkai <gaelookair@gmail.com>
Great contributions! |
Fix issue: #8591 This PR include: * API change in command tools * Related implementation with tests * Related docs in cookbook By the way log4j dependency is removed for module `managed-ledger` because now the whole project use log4j2 as the default logger framework. (cherry picked from commit 7c09f5c)
Fix issue: #8591 This PR include: * API change in command tools * Related implementation with tests * Related docs in cookbook By the way log4j dependency is removed for module `managed-ledger` because now the whole project use log4j2 as the default logger framework. (cherry picked from commit 7c09f5c)
@Renkai many thanks for your docs! While |
Fix issue: #8591
This PR include:
By the way log4j dependency is removed for module
managed-ledger
because now the whole project use log4j2 as the default logger framework.