Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion core/bucket.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,19 @@ class bucket_impl
bool sequence_changed = false;
{
std::scoped_lock lock(config_mutex_);
if (!config_) {
if (config.vbmap && config.vbmap->size() == 0) {
if (!config_) {
CB_LOG_DEBUG("{} will not initialize configuration rev={} because config has an empty partition map",
log_prefix_,
config.rev_str());
} else {
CB_LOG_DEBUG("{} will not update the configuration old={} -> new={}, because new config has an empty partition map",
log_prefix_,
config_->rev_str(),
config.rev_str());
}
return;
} else if (!config_) {
CB_LOG_DEBUG("{} initialize configuration rev={}", log_prefix_, config.rev_str());
} else if (config.force) {
CB_LOG_DEBUG("{} forced to accept configuration rev={}", log_prefix_, config.rev_str());
Expand Down
4 changes: 4 additions & 0 deletions core/io/mcbp_session.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,10 @@ class mcbp_session_impl
return;
}
std::scoped_lock lock(config_mutex_);
if (config.vbmap && config.vbmap->size() == 0) {
CB_LOG_DEBUG("{} received a configuration with an empty vbucket map, ignoring", log_prefix_);
return;
}
if (config_) {
if (config_->vbmap && config.vbmap && config_->vbmap->size() != config.vbmap->size()) {
CB_LOG_DEBUG("{} received a configuration with a different number of vbuckets, ignoring", log_prefix_);
Expand Down