MSBuild new csproj format causes a strange async timeout behavior

132 views
Skip to first unread message

Valeriob

unread,
Aug 4, 2017, 6:19:26 AM8/4/17
to RavenDB - 2nd generation document database
Hi,
i'm converting an existing .net 461 console project to the new msbuild csproj format.
It used to work fine, but after the conversion i get a timeout executing the following code (repro solution attached.) : 




Thanks
Valerio

RavendbDeadlock.zip

Valeriob

unread,
Aug 4, 2017, 6:31:55 AM8/4/17
to RavenDB - 2nd generation document database
RavenDb Server is running version 3.5.2.35183

Valerio

Oren Eini (Ayende Rahien)

unread,
Aug 4, 2017, 2:47:43 PM8/4/17
to ravendb
What does Fiddler say?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Fri, Aug 4, 2017 at 1:31 PM, Valeriob <vale...@gmail.com> wrote:
RavenDb Server is running version 3.5.2.35183

Valerio

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Valeriob

unread,
Aug 5, 2017, 5:42:06 AM8/5/17
to RavenDB - 2nd generation document database
Hi,
when i step over the line that i know it will timeout, fiddler shows only this request (and then nothing, even after the timeout expires): 

Raven-Client-Version: 3.5.5.0
Accept-Encoding: gzip
Host: localhost:8090

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Raven-Server-Build: 35183
Temp-Request-Time: 0
Date: Sat, 05 Aug 2017 09:37:41 GMT
Content-Length: 547

{"Index":{"IndexId":60,"Name":"CreateIndex5","LockMode":"Unlock","IndexVersion":1,"Map":"from doc in docs\nselect new {\r\n\n}","Maps":["from doc in docs\nselect new {\r\n\n}"],"Reduce":null,"IsMapReduce":false,"IsCompiled":false,"Stores":{},"Indexes":{},"SortOptions":{},"Analyzers":{},"Fields":["__document_id"],"Suggestions":null,"SuggestionsOptions":[],"TermVectors":{},"SpatialIndexes":{},"InternalFieldsMapping":{},"MaxIndexOutputsPerDocument":null,"Type":"Map","DisableInMemoryIndexing":false,"IsTestIndex":false,"IsSideBySideIndex":false}}

On Friday, August 4, 2017 at 8:47:43 PM UTC+2, Oren Eini wrote:
What does Fiddler say?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Fri, Aug 4, 2017 at 1:31 PM, Valeriob <vale...@gmail.com> wrote:
RavenDb Server is running version 3.5.2.35183

Valerio

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Aug 5, 2017, 6:30:48 AM8/5/17
to ravendb
There is another request there, because we are getting a response there, 503 (see the inner exception in your image)
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Valeriob

unread,
Aug 5, 2017, 7:33:02 AM8/5/17
to RavenDB - 2nd generation document database
I was surprised as well not seeing that 503 response !
I configured ravendb Url = "http://localhost.fiddler:8090";
This is the fiddler of the whole test (attached the export from fiddler) : 

Since i only switched the .csproj content, maybe is has something to do with how some foundational assembly is resolved ? I know httpclient is a beast to tame :D
Thanks
Valerio
ravendb timeout.txt

Oren Eini (Ayende Rahien)

unread,
Aug 5, 2017, 7:39:26 AM8/5/17
to ravendb
This is 3.5 or 4.0?

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

Valerio

unread,
Aug 5, 2017, 7:56:13 AM8/5/17
to rav...@googlegroups.com

It’s last 3.5 preview and I did not mention it, but the Lib project is netstandard2.0 with vs 2015 preview 7.

 

Valerio

 

Da: Oren Eini (Ayende Rahien)
Inviato: sabato 5 agosto 2017 13:39
A: ravendb
Oggetto: Re: [RavenDB] Re: MSBuild new csproj format causes a strange asynctimeout behavior

 

This is 3.5 or 4.0?

On 5 Aug 2017 7:33 AM, "Valeriob" <vale...@gmail.com> wrote:

I was surprised as well not seeing that 503 response !

I configured ravendb Url = "http://localhost.fiddler:8090";

This is the fiddler of the whole test (attached the export from fiddler) : 

 

https://lh3.googleusercontent.com/-LdiTEqdFnZI/WYWsZQ7CaoI/AAAAAAAAHsE/7SVybS0USy031OL9PmM0FyYhT6yMkpw_gCLcBGAs/s1600/ravendb%2Bdeadlock%2B2.PNG

--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/LlFCBhM32Q8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.

Michael Yarichuk

unread,
Aug 6, 2017, 9:22:03 AM8/6/17
to RavenDB - 2nd generation document database
Hi,
I think I've replicated this locally with the project you supplied. Currently investigating.

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/LlFCBhM32Q8/unsubscribe.

To unsubscribe from this group and all its topics, send an email to ravendb+unsubscribe@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Best regards,

 

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Michael Yarichuk l RavenDB Core Team 

RavenDB paving the way to "Data Made Simple"   http://ravendb.net/  

Valeriob

unread,
Aug 7, 2017, 2:56:32 AM8/7/17
to RavenDB - 2nd generation document database
Very good, 
i'm glad the project to reproduce it helped !
Valerio

Michael Yarichuk

unread,
Aug 7, 2017, 5:51:39 AM8/7/17
to RavenDB - 2nd generation document database
I believe it is not related to RavenDB - I replicated this issue without using RavenDB related code.

I've opened a bug at CoreCLR for this --> https://github.com/dotnet/coreclr/issues/13247

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Valeriob

unread,
Sep 5, 2017, 11:25:13 AM9/5/17
to RavenDB - 2nd generation document database

We finally got some feedback from ms : 

https://github.com/dotnet/corefx/issues/23012 looks like some response not being disposed properly, it's still strange the way it manifests itself !

Valerio


On Monday, August 7, 2017 at 11:51:39 AM UTC+2, Michael Yarichuk wrote:
I believe it is not related to RavenDB - I replicated this issue without using RavenDB related code.

I've opened a bug at CoreCLR for this --> https://github.com/dotnet/coreclr/issues/13247
On Mon, Aug 7, 2017 at 9:56 AM, Valeriob <vale...@gmail.com> wrote:
Very good, 
i'm glad the project to reproduce it helped !
Valerio

On Sunday, August 6, 2017 at 3:22:03 PM UTC+2, Michael Yarichuk wrote:
Hi,
I think I've replicated this locally with the project you supplied. Currently investigating.

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Oren Eini (Ayende Rahien)

unread,
Sep 5, 2017, 1:40:24 PM9/5/17
to ravendb
Yes, I'm pretty sure that we are disposing everything properly.
Using the latest code, are you able to reproduce this?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Message has been deleted

Valeriob

unread,
Sep 5, 2017, 4:11:34 PM9/5/17
to RavenDB - 2nd generation document database

Hi Oren,
unfortunatly yes, i linked ravendb sources patch 35219 : 

Oren Eini (Ayende Rahien)

unread,
Sep 6, 2017, 2:40:10 AM9/6/17
to ravendb
How do you reproduce this?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Tue, Sep 5, 2017 at 11:10 PM, Valeriob <vale...@gmail.com> wrote:
Hi Oren,
unfortunatly yes, i linked ravendb sources patch 35219 : 


Valeriob

unread,
Sep 6, 2017, 3:17:11 AM9/6/17
to RavenDB - 2nd generation document database

Hi, 
yes ofc, i've attached a new version of the repro.

Thanks
Valerio
RavendbDeadlock.zip

Michael Yarichuk

unread,
Sep 7, 2017, 5:36:16 AM9/7/17
to RavenDB - 2nd generation document database
Thanks for the new version of the repro. Taking a look.

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Valeriob

unread,
Sep 7, 2017, 6:07:11 AM9/7/17
to RavenDB - 2nd generation document database
Thanks Michale,
@khellang has done some more investigation, see https://github.com/dotnet/corefx/issues/23012

Valerio

Michael Yarichuk

unread,
Sep 12, 2017, 12:24:50 PM9/12/17
to RavenDB - 2nd generation document database
It seems that the underlying issue was that some of http response object were not disposed properly. 
This is fixed (http://issues.hibernatingrhinos.com/issue/RavenDB-8594) and should be available in the next build.

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Valeriob

unread,
Sep 13, 2017, 7:59:52 AM9/13/17
to RavenDB - 2nd generation document database
Thanks Michael !
I can confirm that i do not get stuck anymore in the repro !

Valeriob

unread,
Sep 14, 2017, 10:31:36 AM9/14/17
to RavenDB - 2nd generation document database

Can you pls make a release with this fix as soon as possible ?
Thanks

Oren Eini (Ayende Rahien)

unread,
Sep 17, 2017, 4:35:23 AM9/17/17
to ravendb
Yes, we'll be doing that this week

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages