201112227-fix-feedback-event-exportCsv-updateSwissmedic-debug-odba-hash-iteration-error-ruby193-oddb_org
<< Masa.20111228-check-importer-exporter-ruby193-oddb_org | 2011 | Masa.20111223-fix-patinfo-fachinfo-invoicer-ruby193-oddb_org >>
- Goal
-
- check all the importer exporter on Ruby 1.9.3 oddb.org / 70% / 50%
- Milestones
-
export_csv (oddb.csv, oddb2.csv)
swissmedic importer bug
check patinfo error
check update_swissmedic
- update_swissmedic_followers
- (update_package_trade_status_by_swissindex)
- (exporter.mail_swissmedic_notifications)
- update_bsv_followers
export_oddb_csv
export_oddb2_csv
- export daily
mail_patinfo_invoices
mail_fachinfo_log
export_csv
- Commits
-
Debug Hash iteration error
Refer to http://dev.ywesee.com/wiki.php/Choddb/Ruby193p0#HashError20111227
How to debug
- A hash (@fetched, @prefetched) is used in the part where the hash iteration error happens.
- The _clean method is only the other part where @fetched and @prefetched (Hash) are used.
- Then I tested a simple sample where the same thread situation was constructed.
- The same error happens on Ruby 1.9 but it works on Ruby 1.8 without error. Then I get to believe it is a bug.
Note
- So basically the Mutex is back, but the file lock is not back
- This was a bug of in ODBA
Sample script to reproduce the bug