Patches: Browse | Submit New | Admin

[#7740] NoMethodError: undefined method `feed_data_type' for nil:NilClass

Date:
2007-01-10 23:42
Priority:
3
Submitted By:
Tim Harrison (heedspin)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
NoMethodError: undefined method `feed_data_type' for nil:NilClass

Detailed description
Multithreaded access to multiple feeds which call item.find_node('media:title') cause an exception.  The attached runit
test reproduces the exception.

My workaround is to use a Mutex to synchronize access to all feedtools calls.

feedtools 0.2.26

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-10-11 04:37
Sender: Sean Geoghegan

We could test that you can create two feeds in two separate threads
without them stepping on each other.
Date: 2007-10-11 04:10
Sender: Bob Aman

I'm inclined to say we should add a test to the test suite to
verify that the code behaves as expected in a multi-threaded
environment.
Date: 2007-10-11 02:43
Sender: Sean Geoghegan

I ran the attached test without any failures, I'm not sure what
it is try to show.

Either way I think it is better for an application requiring
multithreaded access to a feed to do it's own locking instead
of adding locking overhead for everyone.

I'd close this ticket, if you are happy with that resolution Bob?
Date: 2007-04-21 20:45
Sender: Bob Aman

Why do you need threaded access to the same feed / feed entry?
Most scenarios I have considered involved multiple threads working
on multiple feeds, not multiple threads working on one feed.

Attached Files:

Name Description Download
multithreaded_feedtools.rb runit test to reproduce bug Download

Changes:

Field Old Value Date By
File Added1110: multithreaded_feedtools.rb2007-01-10 23:42heedspin