Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] new exception
@ 2009-09-05 19:08 Ben Walton
  2009-09-05 19:30 ` Rich Lane
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Walton @ 2009-09-05 19:08 UTC (permalink / raw)



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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [sup-talk] new exception
  2009-09-05 19:08 [sup-talk] new exception Ben Walton
@ 2009-09-05 19:30 ` Rich Lane
  2009-09-05 19:35   ` Ben Walton
  0 siblings, 1 reply; 7+ messages in thread
From: Rich Lane @ 2009-09-05 19:30 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [sup-talk] new exception
  2009-09-05 19:30 ` Rich Lane
@ 2009-09-05 19:35   ` Ben Walton
  2009-09-05 19:55     ` Rich Lane
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Walton @ 2009-09-05 19:35 UTC (permalink / raw)


Excerpts from Rich Lane's message of Sat Sep 05 15:30:04 -0400 2009:
> 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.

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

-- 
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 --------------
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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [sup-talk] new exception
  2009-09-05 19:35   ` Ben Walton
@ 2009-09-05 19:55     ` Rich Lane
  2009-09-05 21:57       ` Ben Walton
  0 siblings, 1 reply; 7+ messages in thread
From: Rich Lane @ 2009-09-05 19:55 UTC (permalink / raw)


Excerpts from Ben Walton's message of Sat Sep 05 15:35:50 -0400 2009:
> Your guess is as good as mine here...I didn't realize there were
> 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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [sup-talk] new exception
  2009-09-05 19:55     ` Rich Lane
@ 2009-09-05 21:57       ` Ben Walton
  2009-09-06 17:02         ` Rich Lane
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Walton @ 2009-09-05 21:57 UTC (permalink / raw)


Excerpts from Rich Lane's message of Sat Sep 05 15:55:12 -0400 2009:

> 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

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

Thanks for the info.

-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 --------------
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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [sup-talk] new exception
  2009-09-05 21:57       ` Ben Walton
@ 2009-09-06 17:02         ` Rich Lane
  2009-09-06 17:22           ` Ben Walton
  0 siblings, 1 reply; 7+ messages in thread
From: Rich Lane @ 2009-09-06 17:02 UTC (permalink / raw)


Excerpts from Ben Walton's message of Sat Sep 05 17:57:41 -0400 2009:
> Excerpts from Rich Lane's message of Sat Sep 05 15:55:12 -0400 2009:
> 
> > 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
> 
> 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?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [sup-talk] new exception
  2009-09-06 17:02         ` Rich Lane
@ 2009-09-06 17:22           ` Ben Walton
  0 siblings, 0 replies; 7+ messages in thread
From: Ben Walton @ 2009-09-06 17:22 UTC (permalink / raw)


Excerpts from Rich Lane's message of Sun Sep 06 13:02:19 -0400 2009:
> 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?

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
-- 
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 --------------
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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-06 17:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-05 19:08 [sup-talk] new exception Ben Walton
2009-09-05 19:30 ` Rich Lane
2009-09-05 19:35   ` Ben Walton
2009-09-05 19:55     ` Rich Lane
2009-09-05 21:57       ` Ben Walton
2009-09-06 17:02         ` Rich Lane
2009-09-06 17:22           ` Ben Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox