Not sure Gus I would blame the create collection code. To the best of my
recollection, when the create collection call returns the collection IS
fully created.
This doesn't mean though (and that's the problem IMO) that the cluster
state on the node that issued the collection creation call is aware of it:
its cache of cluster state is updated async at a later point once Zookeeper
watches decide it's time).

I would tend to blame the way cluster state is managed in general in the
cluster.

I didn't look at this test specifically, so the actual issue might still be
different.

Ilan

On Wed, Sep 22, 2021 at 5:37 PM Gus Heck <[email protected]> wrote:

> why it often can’t find the collection it’s currently supposed to be
>> creating
>
>
> This sounds like things that pestered us while writing TRA tests. IIRC the
> problem basically comes from 2 things: 1) we return from create collection
> before the collection is fully created and ready to use, 2) watching code
> to determine when it IS ready is non-trivial. I think #1 is the real
> problem and #2 is a bandaid that shouldn't be needed.
>
> I think I recall mark previously ranting about how insane and terrible it
> would be if an RDBMS did this with CREATE TABLE...
>
> On Wed, Sep 22, 2021 at 11:24 AM Ishan Chattopadhyaya <
> [email protected]> wrote:
>
>> Sure, Mark.
>> Noble or I will get to this at the earliest, hopefully by end of this
>> week.
>> Unfortunately, I haven't been paying attention to test failures lately.
>>
>> On Wed, Sep 22, 2021 at 8:09 PM Mark Miller <[email protected]>
>> wrote:
>>
>>> Perhaps I just have a unique test running experience, but this test has
>>> been an outlier failure test in my test runs for months. Given that it’s
>>> newer than most tests, I imagine it’s attention grabbing days are on a
>>> downslope, so here is a poke if someone wants to check out why it often
>>> can’t find the collection it’s currently supposed to be creating.
>>>
>>>
>>> --
>>> - Mark
>>>
>>> http://about.me/markrmiller
>>>
>>
>
> --
> http://www.needhamsoftware.com (work)
> http://www.the111shift.com (play)
>

Reply via email to