Short reads in hash indexes (was: [sqlsmith] Failed assertion in _hash_splitbucket_guts) - Mailing list pgsql-hackers

From Andreas Seltenreich
Subject Short reads in hash indexes (was: [sqlsmith] Failed assertion in _hash_splitbucket_guts)
Date
Msg-id 877f7c1eu7.fsf_-_@credativ.de
Whole thread Raw
In response to Re: [sqlsmith] Failed assertion in _hash_splitbucket_guts  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: [sqlsmith] Short reads in hash indexes
List pgsql-hackers
Amit Kapila writes:

> On Sat, Dec 3, 2016 at 3:44 PM, Andreas Seltenreich <seltenreich@gmx.de> wrote:
>> Amit Kapila writes:
>>
>>> [2. text/x-diff; fix_hash_bucketsplit_sqlsmith_v1.patch]
>> Ok, I'll do testing with the patch applied.

Good news: the assertion hasn't fired since the patch is in.

However, these are still getting logged:

smith=# select * from state_report where sqlstate = 'XX001';
-[ RECORD 1 ]------------------------------------------------------------------------------
count    | 10
sqlstate | XX001
sample   | ERROR:  could not read block 1173 in file "base/16384/17256": read only 0 of 8192 bytes
hosts    | {airbisquit,frell,gorgo,marbit,pillcrow,quakken}

> Hmm, I am not sure if this is related to previous problem, but it
> could be.  Is it possible to get the operation and or callstack for
> above failure?

Ok, will turn the elog into an assertion to get at the backtraces.

regards,
Andreas



pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Back-patch use of unnamed POSIX semaphores for Linux?
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Quorum commit for multiple synchronous replication.