-
Notifications
You must be signed in to change notification settings - Fork 66
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
fix: add id field to bookie socket address struct #545
Conversation
f818375
to
d49cb38
Compare
It respects the latest bookkeeper rest api, looks good to me. |
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.
Overall looks good to me.
Could you please also update the CI?
image: "apache/bookkeeper:4.10.0" |
I think we should use the latest image to test this.
@zymap Update the bk image will cause the test to fail, I will make a PR after this PR is merged into master. |
But we need a test to cover this, no? |
@zymap I can add a test to check the id field or host and port field exists. |
The tests which failed mean there have other commands that can't run with the latest bookkeeper, we need to update the bookkeeper to the latest to make sure other commands can run well with the latest bookkeeper. You can do this in another PR as well. |
d89dd2e
to
c49d89d
Compare
@zymap Please take a look. |
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
c49d89d
to
0be010a
Compare
Signed-off-by: Zixuan Liu nodeces@gmail.com
Fix #523
When get the ledger info by
pulsarctl bookkeeper ledger get 0
, this command returns the following body:The
allEnsembles.0.id
andallEnsembles.0.hostname
is nil value. In face, it should be non-nil value.I checked the bk repo and found the apache/bookkeeper#2404 changes this behavior, so add the id field with omitempty to bookie socket address struct for compatibility.