9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: smiley@icebubble.org
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] sealed arena modified by venti??
Date: Tue, 28 Feb 2012 18:13:31 +0000	[thread overview]
Message-ID: <86linmhlmc.fsf@cmarib.ramside> (raw)

Venti!  ARRRRRRRRRRRRGH!  OK.  Deep breath... whoooooow...

I recently observed some Venti behavior which has absolutely perplexed
me.  I'm at my wit's end, trying to figure out what's going on, here.  I
have an arena file containing a number of arenas.  Whenever an arena
becomes full and /index reports it as "disk=sealed", I back it up to
another drive.

Recently, I compared the live and backup copies of the sealed arenas.
To my surprise, one of the arenas differed from its backup copy.  The
two arenas are identical for about the first 75% of their contents.
Then, they begin to differ.  But, near 99.2% of the way through the
arena, their contents begin to match again, and are thenceforth
identical through the end of the arena.

My first thought was that I must have inadvertently copied an arena
before it was sealed.  (That would be an easy way to explain all the
above observations.)  HOWEVER: Both versions of the arena have the score
written into their last block, and the score in BOTH copies is the SAME!
Just to be sure, I double- and triple-checked this, with the distinct
feeling that the Earth was slipping away beneath my feet... how could
this be??

Is there some way to "compare" two arenas, and see how they differ?
Could there be a way to list the contents of an arena, to see what's
inside it?  I tried running checkarenas on the live copy, but it only
prints /index stats and four undocumented columns of monotonically
increasing integers.  It doesn't provide any (at least overt) hint that
anything in the arena is out of the ordinary.  checkarenas refuses to
run on the backup copy, complaining that it's missing a magic number.
Presumably, checkarenas wants a complete arena file, not a disembodied
arena like I gave it.

If it's any clue, the arena was the second-to-last active arena at the
time it was first copied; it was sealed on-disk, and the arena
immediately following it was open and holding data.

Any help would be 2^1024 appreciated!

--
+---------------------------------------------------------------+
|Smiley       <smiley@icebubble.org>    PGP key ID:    BC549F8B |
|Fingerprint: 9329 DB4A 30F5 6EDA D2BA  3489 DAB7 555A BC54 9F8B|
+---------------------------------------------------------------+



             reply	other threads:[~2012-02-28 18:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28 18:13 smiley [this message]
2012-02-28 18:20 ` Russ Cox
2012-03-22 15:34   ` smiley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86linmhlmc.fsf@cmarib.ramside \
    --to=smiley@icebubble.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).