500 Errors accessing rest data from multiple threads
tshannon
Joined: 2012-04-20
Posts: 7 |
![]() |
I'm writting a command line uploader that uses the REST api, and I'm uploading the data on 5 threads currently, and occassionaly I'm getting the following errors: Quote:
2012-04-20 11:12:09 -05:00 --- error: Exception [ 0 ]: @todo UNABLE_TO_LOCK_EXCEPTION My webserver isn't a powerhouse, and at this point I'm working on the assuming that it's a resource bottleneck issue (probabaly CPU), and I'm looking for some confirmation. Is that what this error could be referring to, or is this something else? For those interested, the commandline uploader is here: http://code.google.com/p/gal3upload It's a work in progress, but should be finished shortly. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I have never used REST so can rellay comment on that but the error comes from this function: /** * Lock the tree to prevent concurrent modification. */ protected function lock() { $result = $this->db->query("SELECT GET_LOCK('{$this->table_name}', 1) AS l")->current(); if (empty($result->l)) { throw new Exception("@todo UNABLE_TO_LOCK_EXCEPTION"); } } Are you trying to do muti uploads at the same time? Dave |
|
tshannon
Joined: 2012-04-20
Posts: 7 |
![]() |
I'm absolutely doing multiple uploads at the same time. I would assume that it could run multithreaded on the server. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
could be a server setting: Dave |
|