SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

HttpGDataRequest#execute() is not thread safe #352

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Initiate multiple concurrent uploads/updates/deletes (any operation) so that 
com.google.gdata.client.http.HttpGDataRequest#execute() gets executed multiple 
times concurrently.

What is the expected output? What do you see instead?
All concurrent gdata operations succeed.

What version of the product are you using? On what operating system?
gdata-core-1.0-1.41.3
Sun JVM java-6-sun-1.6.0.24
Any operating system

The workaround for http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4023866 
as mentioned in the comment for the above method is subject to race conditions 
when multiple threads execute anything and can potentially fail in a way that 
is difficult to debug.

Original issue reported on code.google.com by ankurtro...@gmail.com on 21 Jun 2011 at 12:43