-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi threading issue. #98
Comments
...? parse-ruby-client-0.1.15/lib/parse/client.rb :
|
Is this causing problems? Sent from my iPhone On Jul 18, 2013, at 5:13 PM, Brendan Winter notifications@github.com wrote:
|
Not sure, but it looks like that was written to allow multiple concurrent connections. But seeing as it's not actually used and I am having concurrency issues ... it have to wonder if they aren't related. |
A while ago I tried to build a throttler for concurrent connections, but my use case invoked multiple clients, so I had no threading issues to worry about. Notice that it uses IronCache, which is remote storage. I wish I could be more helpful re threading, but right now I lack the expertise to make this suit your needs. Sent from my iPhone On Jul 18, 2013, at 6:16 PM, Brendan Winter notifications@github.com wrote:
|
Not to worry, we tried mutexes to synchronize all the saves but that didn't seem to work - which is really strange. I think we are going to change our approach and create a process dedicated to updating Parse. It's a little bit circuitous but should solve the problem. Thanks for getting back to me. Not sure if we should close this thread...? |
Can you close it? Feel free to repoen of you need. Sent from my iPhone On Jul 18, 2013, at 7:47 PM, Brendan Winter notifications@github.com wrote:
|
Closed for now - Trying new approach. |
I am in the same situation as @bwinter. I've been running some code single threaded for a few months without any problems. Recently, we move some of that code to use http://sidekiq.org/ and we are seeing some error for the first time. They are: Parse::ParseProtocolError: : unauthorized Not sure if all the exceptions are related to thread safety. I'll investigate further. 😄 |
Can you guys please take a look at #165 ? |
Hey,
I have been running my code in a single thread without issue. But as soon as I run two threads problems arise.
Occasionally I get the following error, which seems related:
I think it's unrelated but occasionally it segfaults as well (I think this is a selenium issue). The full error is massive so I will supply that upon request:
I am not quite sure what's causing the issue here. I create my parse object then create a new thread that starts using it. If I remove every 'parse.save' in my code I can run multiple threads w/o issue. So I can only assume Parse is somehow causing these issues. Maybe the shared application_id/api_keys...
As you can see from my stack traces I have tried quite a few versions of ruby (1.9.3, 2.0.0-193p,247p,270p), none of them seemed to help.
Gemfile:
If there is any missing information that might help, let me know.
Thanks,
Brendan
The text was updated successfully, but these errors were encountered: