20111212-fix-file-lock-odba-ydim-inject-ruby193
<< Masa.20111213-debug-patinfo-invoice-new_sequence-recent_registrations-new_slentry | 2011 | Masa.20111209-compatible-update-ywesee-libs-ruby193-186 >>
- Read oddb.org code focusing on creating new odba_id
- Check Apache benchmark
- Debug recent registrations oddb.org
- Debug ydim injection from oddb.org client (Ruby 1.9.3) to ydim server (Ruby 1.8.6)
- Compatible update rpdf2txt for Ruby 1.8 and 1.9
- Goal/Estimate/Evaluation
-
- Fix file lock odba / 90% /
- Ydim injection on Ruby 1.9.3 / 70% / 100%
- Rpdf2txt for both Ruby 1.9 and 1.8 / 50% / 10%
- Milestones
-
update odba
debug ydim injection
- (oddb.org file lock test online (tommorrow))
- Commit
-
Read oddb.org code focusing on creating new odba_id
Commit
Memo
- The file lock is not used as a defalt (ODBA.cache.file_lock == false)
- It is controllable from bin/admin or job script
To see the variable
ch.oddb> ODBA.cache.file_lock
If you want to lock it on
ch.oddb> ODBA.cache.file_lock = true
As far as I understand,
every application has an independent 'ODBA.cache' object in the application like a global variable.
If we use the file lock, every process to access to the same database should set the file lock on.
Otherwise, the odba_id becomes inconsistent.
And it may be better to delete /tmp/count.dbname file before the main application uses ODBA.cache.file_lock
Check Apache benchmark
Refer to http://dev.ywesee.com/wiki.php/Choddb/Apachebench
Debug recent registrations oddb.org
Problem
- 'Neue Registrierungen' should not be 24 in this month
- The page linked from 'Neue Registrierungen' shows the list of October, this should be November
Note
- The log_group(:swissmedic).latest is saved in the database but cache does not show the latest data
- Let's see tomorrow when import_daily is done.
masa@masa ~/ywesee/oddb.org $ bin/admin
ch.oddb> log_group(:swissmedic).latest.report.split("\n").first
-> ODDB::SwissmedicPlugin - Report 12.12.2011
ch.oddb> log_group(:swissmedic).latest.date
-> 2011-11-01
Debug ydim injection from oddb.org client (Ruby 1.9.3) to ydim server (Ruby 1.8.6)
Refer to http://dev.ywesee.com/wiki.php/Choddb/Ruby193p0#ydim_injection_20111212
Compatible update rpdf2txt for Ruby 1.8 and 1.9
Refer to http://dev.ywesee.com/wiki.php/Choddb/Ruby193p0#rpdf2txt_20111212