From: Zardosht Kasheff Date: July 15 2009 12:52pm Subject: Re: is MySQL bug #44373 really a bug? List-Archive: http://lists.mysql.com/internals/37189 Message-Id: <2f9663ba0907150552i1c650301n1604d97b179f95f1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Sergei, The bitmap was not a strict subset. The reason I was able to find the problem was that because the bitmap was not a subset, the query returned an incorrect result. Upon investigation, I found the problem. The workaround for us is that for queries using ::rnd_pos, we retrieve the whole row. Thanks -Zardosht On Wed, Jul 15, 2009 at 6:56 AM, Sergei Golubchik wrote: > Hi, Zardosht! > > On Jul 14, Zardosht Kasheff wrote: >> Hello, >> >> Some time back, I filed MySQL bug #44373, because comments in the >> Handler API led me to believe it is a bug. However, I was never really >> sure. I may be misunderstanding the intended API contracts. What I am >> wondering is this. Is my understanding correct, and this is a bug, or >> is my understanding of the behavior of column_bitmaps_signal with >> respect to the handler::position API not correct? > > From what you've written in the bug report it looks like it's a genuine > bug. > > But - admittedly - I didn't try to extract a small test case out of > test-ATIS and run it in a debugger. > > Is the new bitmap a strict subset of the old one ? I remember > discussions that NDB needs to know the bitmap before the scan starts > (e.g. before index_init) because it sends it (bitmap) to other nodes, > and we were talking about an optimization where MySQL could remove > columns from a bitmap after the scan started - but the engine was not > required to obey it, indeed, it's always ok to return more columns than > what was requested. But even in this case column_bitmaps_signal() > should've been called. Still a bug. > > If a new bitmap is not a strict subset of the old one then it's a much > worse bug, and it probably would deliver incorrect query results (or > worse) with ndb. > > Regards / Mit vielen Gr=FC=DFen, > Sergei > > -- > =A0 __ =A0___ =A0 =A0 ___ ____ =A0__ > =A0/ =A0|/ =A0/_ __/ __/ __ \/ / =A0 Sergei Golubchik > =A0/ /|_/ / // /\ \/ /_/ / /__ =A0Principal Software Engineer/Server Arch= itect > /_/ =A0/_/\_, /___/\___\_\___/ =A0Sun Microsystems GmbH, HRB M=FCnchen 16= 1028 > =A0 =A0 =A0 <___/ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Sonnenallee 1, 85551= Kirchheim-Heimstetten > Gesch=E4ftsf=FChrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel > Vorsitzender des Aufsichtsrates: Martin H=E4ring >