Yubiao, Il Gio 10 Nov 2022, 07:40 Yubiao Feng <yubiao.f...@streamnative.io.invalid> ha scritto:
> Hi all, > > Now if an Exclusive-Mode producer has been registered, we can register > another WaitForExclusive-Mode producer. When the old producer goes > offline, the new producer will take over as the new exclusive producer. > > < Highlight >But if some Shared-Mode producers have been registered, we can > register another WaitForExclusive-Mode producer too, but even if all > Shared-Mode goes offline, the new producer will not take over as the new > exclusive producer. This looks like a bug to me. When you start a xxxx-Exclusive producer you want to take control over the topic. I think that we should kick out all the connected Shared producers. The competition is among Exclusive producers and Shared don't play the game. The fix should be easy Enrico Then, if we register a new WaitForExclusive-Mode > producer, the earlier WaitForExclusive-Mode producer will take over as the > new exclusive producer. > > < Highlight >I want to make the behavior of producers that use the mode > WaitForExclusive clear: When no other mode of producer exists for a topic, > the first producer in the WaitForExclusive queue can auto succeeds as the > exclusive producer. > > Thanks > Yubiao >