Warning! Data loss bug when image move times out
|
mattdm
Joined: 2005-07-22
Posts: 181 |
Posted: Fri, 2012-08-10 01:28
|
|
So, for whatever reason, moving images on my system using the organizer is terribly slow. The system itself is fast and does not appear to be misconfigured, so I'm not sure what's up. However, there's a more serious problem. When I tried to move more than twenty photos at once (because I was able to trick the organizer into selecting them despite its best efforts to foil me), I got an error message telling me to contact the systems administrator. Since that's me, I checked in the logs, which tell me "mod_fcgid: read data timeout in 40 seconds". That's the default read data timeout, and seems pretty highly reasonable. The error message isn't the problem, though. The problem is that for each time this message occurs, there is very reliably an image left behind in the directory I'm moving from, but no longer in the database. Running the fix-up operation in the maintenance panel did not help. Gallery needs to be more careful in ensuring that data loss is never the failure state. |
|
| Login or register to post comments |

Posts: 7985
This is bad. I agree with you - it's a problem. Unfortunately, we're operating without transactions here for broad compatibility, and without transactions it's really difficult to close all the integrity holes (and that's just in the database - we're also maintaining integrity between the db and the filesystem and no transactional system covers that). I can't reproduce this - can you? If you can, I can help you dig and maybe we can get to the bottom of it. Otherwise I'm left theorizing about holes (which I do, and I close them when I can think of one).
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!