tarantool / vshard

The new generation of sharding based on virtual buckets
Other
100 stars 31 forks source link

Assert in `conn_manager_collect_idle_conns()` #446

Closed Gerold103 closed 10 months ago

Gerold103 commented 10 months ago

In its code

                if replica == rs.master and rs.is_master_auto then
                    assert(rs ~= M.this_replicaset)
                    rs.master = nil
                end

the assert is not needed. It was for checking that the node never establishes connection to self. But it can actually happen. For example, the rebalancer asks all masters for data via iproto, including self if it is running on master. This is not perf critical anyway.

The patch should