Subject: [sup-talk] new exception

From: [email-masked] (Ben Walton)
Date: Sat, 05 Sep 2009 15:08:52 -0400

This attached exception log was generated after sending a reply,
before the inbox buffer was redisplayed.

I have the following small modifications to 99e62d55 included (still
required for importing to xapian in my case):

--snip--
-    raise ArgumentError, "expecting a symbol" unless t.is_a? Symbol
+    t = t.intern if t.is_a? String
+
+    unless t.is_a? Symbol
+      m = "expecting a symbol, got a #{t.class} (#{t.to_s})"
+      raise ArgumentError, m
+    end
+
--snip--

Thanks
-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: exception-log.txt
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef8749ed/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef8749ed/attachment.bin>

---

From: [email-masked] (Rich Lane)
Date: Sat, 05 Sep 2009 15:30:04 -0400

Excerpts from Ben Walton's message of Sat Sep 05 15:08:52 -0400 2009:
> --- RuntimeError from thread: main
> DocNotFoundError: No termlist found for document 2478134195
> /usr/lib/ruby/site_ruby/1.8/xapian.rb:239:in `doclength'
> /usr/lib/ruby/site_ruby/1.8/xapian.rb:239:in `postlist'
> /usr/lib/ruby/site_ruby/1.8/xapian.rb:59:in `_safelyIterate'
> /usr/lib/ruby/site_ruby/1.8/xapian.rb:237:in `postlist'
> ./sup/xapian_index.rb:361:in `term_docids'

I'm guessing you're using the Chert Xapian backend. When I moved all the
index data into Xapian it started triggering this Chert bug.
Unfortunately, it's nondeterministic and very hard to reproduce in a
small testcase. I've been holding off filing a bug upstream until I had
a better failing testcase than "run sup-sync". If anyone would like to
familiarize themselves with the xapian-index internals and narrow this
bug down a bit I'd be very glad for the help.

The Flint Xapian backend seems to work fine, so for now I suggest using that.

---

From: [email-masked] (Ben Walton)
Date: Sat, 05 Sep 2009 15:35:50 -0400

> bug down a bit I'd be very glad for the help.

Your guess is as good as mine here...I didn't realize there were
different back ends.  How would I go about switching?

Thanks
-Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/2217f134/attachment.bin>

---

From: [email-masked] (Rich Lane)
Date: Sat, 05 Sep 2009 15:55:12 -0400

> different back ends.  How would I go about switching?

Interesting, AFAIK Flint is still the default. Check for a
.sup/xapian/iamchert file to see if it's really a Chert DB. If it is
Chert, you'll have to delete the xapian directory before you can switch
to Flint. The environment variable XAPIAN_PREFER_CHERT controls which
backend is used. Set it to the empty string to make sure you're getting
Flint.

---

From: [email-masked] (Ben Walton)
Date: Sat, 05 Sep 2009 17:57:41 -0400

> .sup/xapian/iamchert file to see if it's really a Chert DB. If it is

Nope.  I've got ~/.sup/xapian/iamflint though...

Thanks for the info.

-Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090905/ef9fc4c3/attachment.bin>

---

From: [email-masked] (Rich Lane)
Date: Sun, 06 Sep 2009 13:02:19 -0400

> Nope.  I've got ~/.sup/xapian/iamflint though...

Well, that's not good. How often does this bug occur? What version of
Xapian are you running? How many messages are in your index?

---

From: [email-masked] (Ben Walton)
Date: Sun, 06 Sep 2009 13:22:39 -0400

> Xapian are you running? How many messages are in your index?

It's only occurred twice, but both were with my polluted index of ~77k
messages.  Let me run for a bit now that I've cleaned out my string
labels and see what happens.

Thanks
-Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090906/5f1cedfa/attachment.bin>