Re: Test-Stream + MongoDB scalar refcount issue

[email protected] (David Golden)
Newsgroups perl.cpan.workers
Message-ID <CAOeq1c9zo2fPCG+BNcoS+sFcYakJq7j3LmWeK4oL-obdk_Wh6w@mail.gmail.com>
On Mon, May 4, 2015 at 12:35 PM, Matthew Horsfall (alh) <[email protected]>
wrote:

> However when I manually downloaded and ran 3.0.2, it started triggering.
> (There is a different codepath (the first try block) in
> MongoDB::Collection::get_indexes that gets run with 3.0.2 that seems
> necessary for this bug to manifest.)
>

My repro efforts are here:
https://github.com/dagolden/zzz-repro-test-stream-mongodb-bug

It does require a MongoDB 3.0.2 server for this particular command.

I haven't tried other commands that might return similarly structured data.

Some of my attempts to mock the DB return or extract the DB result directly
without using the Cursor code didn't repro, at least within my patience to
run the test code in a tight loop four times in parallel for many minutes.

It also seems related to the use of Try::Tiny as replacing that with an
eval didn't repro.

David

-- 
David Golden <[email protected]> Twitter/IRC: @xdg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.