[CSHARP-162] Thread is not in a request from GridFS.Upload Created: 31/Jan/11 Updated: 02/Apr/15 Resolved: 01/Feb/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 0.11 |
| Fix Version/s: | 0.11 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Joe Seymour | Assignee: | Robert Stam |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 x64 |
||
| Description |
|
I have an application that is running on multiple threads. It creates some files during certain conditions, and attempts to save them to GridFS. After running for a few minutes, it will crash with the following exception: Thread is not in a request (did you call RequestStart?) Here is what the call looks like: var fileInfo = _database.GridFS.Upload(fileStream, fileName); |
| Comments |
| Comment by Robert Stam [ 01/Feb/11 ] |
|
Closed. |
| Comment by Joe Seymour [ 01/Feb/11 ] |
|
I've been running the master code for a couple of days now and this error is gone. I think it can be closed. |
| Comment by Robert Stam [ 31/Jan/11 ] |
|
I created a test program that uses multiple threads to call GridFS.Upload in parallel. I set it to 20 threads, each uploading 1MB of zeroes. Couldn't reproduce, but if you see it again please report back. Thanks. |
| Comment by Robert Stam [ 31/Jan/11 ] |
|
There aren't any changes since v0.11 that would explain why you are no longer see this when using a driver built from master. But if you see this again a stack trace would be helpful. |
| Comment by Joe Seymour [ 31/Jan/11 ] |
|
I can if you would like. I needed some way to work around this, so I was going to dive into the code myself. I got the master from git, and it doesn't seem to be an issue anymore. Would you still like the stack trace? |
| Comment by Robert Stam [ 31/Jan/11 ] |
|
Can you provide a stack trace? |