-
Notifications
You must be signed in to change notification settings - Fork 145
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
feat repair CSL on mismatch with Domain config #596
base: main
Are you sure you want to change the base?
Conversation
5456c92
to
a8cf24c
Compare
a8cf24c
to
d32c263
Compare
bsl::vector<bsl::string> addedIds(d_allocator_p); | ||
bsl::vector<bsl::string> removedIds(d_allocator_p); |
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.
I think we should prefer the default allocator for this, the object that will technically own this memory is the function wrapper coming from bind
, which is allocated using the default allocator. Providing this class's allocator might just lead to fragmentation.
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.
Interesting. I guess, the best would be to pass bsl::shared_ptr<bsl::vector<bsl::string>>
to avoid unnecessary copying
@@ -235,6 +236,7 @@ ClusterQueueHelper::QueueLiveState::QueueLiveState( | |||
, d_numHandleCreationsInProgress(other.d_numHandleCreationsInProgress) | |||
, d_queueExpirationTimestampMs(other.d_queueExpirationTimestampMs) | |||
, d_pending(other.d_pending) | |||
, d_pendingUpdates(other.d_pendingUpdates) |
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.
, d_pendingUpdates(other.d_pendingUpdates) | |
, d_pendingUpdates(other.d_pendingUpdates, allocator) |
d32c263
to
b034bcd
Compare
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.
Some comment
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
43e86fe
to
baa5767
Compare
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
baa5767
to
c11fc4e
Compare
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.
Build 2497 of commit c11fc4e has completed with FAILURE
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.
lgtm
We rely on Primary to pick new domain config, but if Primary fails, the new config does not make it to the CSL on existing Replica.
As the result new Primary may crash because domain config doe snot match CSL -