[Ferret-talk] [0.10.0] Random error when big import

Florent Solt
2006-08-24T16:24:07Z

In a rails script (something in the "script" dir with the good
require)
I added many document (around 4000) to an index globaly instanciate (and
build if not present) in config/environment.rb.

I ran 3 three times my script (I deleted my index every time before),
and only the third was successful. That was STRANGE ! :)

These are the errors :

/usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/ferret/index.rb:204:in
`commit'': End-of-File Error occured at <except.c>:79 in xraise
(EOFError)
Error occured in store.c:197 - is_refill
        current pos = 117, file length = 68

  from
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/ferret/index.rb:204:in
`<<''
  from /usr/lib/ruby/1.8/monitor.rb:229:in `synchronize''
  from
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/ferret/index.rb:186:in
`<<''
  (...)

OR

/usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/ferret/index.rb:204:in
`commit'': End-of-File Error occured at <except.c>:79 in xraise
(EOFError)
Error occured in store.c:197 - is_refill
        current pos = 116, file length = 50

  from
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/ferret/index.rb:204:in
`<<''
  from /usr/lib/ruby/1.8/monitor.rb:229:in `synchronize''
  from
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.0/lib/ferret/index.rb:186:in
`<<''
  (...)

When I tried with auto_flush, it''s worst :(

Any ideas ?

--
Posted via http://www.ruby-forum.com/.