ThinkingSphinx.updates_enabled = false causing stack level too deep errors

16 views
Skip to first unread message

agib

unread,
Apr 9, 2009, 6:25:18 PM4/9/09
to Thinking Sphinx
In order to run autospec while I run my cucumber features I need two
separate test databases so that the tests don't conflict. I decided to
create a clone of my test environment called features. I created
config/environment/features.rb and copy-pasted test.rb. I added a
features database to database.yml and also added a line in sphinx.yml
as well. This all works fine (my cucumber features run), except that
they're slow because of all the index output. I would love to turn off
TS's updates, but for some reason when I add
ThinkingSphinx.updates_enabled = false to features.rb I get crazy
stack too deep errors:

stack level too deep (SystemStackError)
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
/Users/agib/Sites/site/vendor/plugins/thinking-sphinx/lib/
thinking_sphinx/active_record/delta.rb:48:in
`save_without_instrument_19725140!'
(eval):3:in `save_without_after_commit_callback!'
(eval):2:in `save_without_after_commit_callback!'
...

Pat Allan

unread,
Apr 10, 2009, 10:12:27 PM4/10/09
to thinkin...@googlegroups.com
Hi Aaron

I've just tried setting updates_enabled to false in Thinking Sphinx's
feature tests, and didn't get any stack errors. Can you confirm you're
running the latest version of TS? line 48 of delta.rb is a method
definition in my version, so that's not quite matching up, I think.

Cheers

--
Pat

agib

unread,
Apr 27, 2009, 5:12:46 PM4/27/09
to Thinking Sphinx
Hi Pat, sorry for the delay -- yeah I upgraded both cucumber and
sphinx and everything seems ok now -- not too sure what happened
there... sorry for the trouble!

Best,
Aaron
Reply all
Reply to author
Forward
0 new messages