Sanity check
Fairlight
fairlite at fairlite.com
Tue Jun 2 14:38:17 PDT 2020
That is a very bad idea, depending upon ones's caching scenario.
It should never be necessary to skip a sync to disk anyway. If something
relies that hard on arbitrary timing, it's written like rubbish. I refuse
to believe even fP's code is -that- poorly written.
Dollars to donutes removal of sync is a no-op.
m->
On Tue, Jun 02, 2020 at 04:17:27PM -0400, Richard Kreiss via Filepro-list thus spoke:
> Delete the sync or comment it out and see if that eliminates the problem.
>
> Richard
> Sent from my iPhone
>
> > On Jun 2, 2020, at 3:59 PM, William J. McEachran via Filepro-list <filepro-list at lists.celestial.com> wrote:
> >
> > ???On Tue, 2 Jun 2020 at 12:10, Fairlight via Filepro-list <
> > filepro-list at lists.celestial.com> wrote:
> >
> >> It's the result of bad BTree+ code.
> >>
> >> If you go through this demo, you'll see when data needs to be split.
> >> Something about it is incorrectly handled in fP, resulting in bad
> >> indexes.
> >>
> >> https://www.cs.usfca.edu/~galles/visualization/BPlusTree.html
> >>
> >>
> > I got lucky and found that the nightly tar archive had the troubled data.
> > I was able to play around with it on a test system and found I could get a
> > DKNF (deleted key not found) error on the data in addition to the sanity
> > check
> > The data is part of a simple routine that is created and used in a single
> > process ... so it easily traceable.
> >
> > All lookups involved in record operations (creating, deleting, modifying)
> > are protected (-p flag) lookups.
> > Each record operations concludes with a write - 'write [lookupname''.
> > Create a record; write that record. Delete a record; write that record.
> > etc.
> > The routine concludes with a 'sync'.
> >
> > So I can't think of anything that I've missed to cause invalid key/index
> > issues.
> > Did I miss something?
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200602/7d8f4995/attachment.html>
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > Subscribe/Unsubscribe/Subscription Changes
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
--
Audio panton, cogito singularis.
More information about the Filepro-list
mailing list