Skip to content
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

Calling BulkInsertOrUpdateAsync() will hang when running in Linux #281

Closed
robolize opened this issue Jan 8, 2020 · 6 comments
Closed

Calling BulkInsertOrUpdateAsync() will hang when running in Linux #281

robolize opened this issue Jan 8, 2020 · 6 comments

Comments

@robolize
Copy link

robolize commented Jan 8, 2020

I have been trying to get my data process to work when deploying to a Linux container in Cloud Foundry. I am using the "dotnet_core_buildpack" buildpack and "cflinuxfs3" stack. It's running DotNetCore 3.1 and targeting "linux-x64" self contained. I have tried many things to get this to work, but the process would always hang when calling BulkInsertOrUpdateAsync(). Sorry, I don't know how to provide any specific details. I'm not getting an exception or anything. All I have to go on is logging and that stops giving any messages when it hangs. Please let me know if there is a way to debug this further.
I was able to get it to work by changing over to the "binary_buildpack" buildpack and targeting "win10-x64" self contained.
Again, sorry I don't know how to provide more details, but I at least wanted to report the issue.

@Maleaume
Copy link

Maleaume commented Mar 13, 2020

I have same issue. It takes a lot of time or does not work under Linux:
1,5 M items to insert on Windows: few minutes
1.5 M items to insert on Linux : one night is not enough ....:(

@Numpsy
Copy link
Contributor

Numpsy commented Mar 16, 2020

Could this issue be down to dotnet/SqlClient#262 in the MS Sql Client?

Might be worth updating the Microsoft.Data.SqlClient reference from 1.1.0 to 1.1.1 to get the fix for that?

@Maleaume
Copy link

Thanks @Numpsy
I have updated nuget dependencies of EF.BulkExtensions to 1.1.1. It's working fine now
Maybe it will be interesting to update EFCore.BulkExtensions packages (@borisdj )

@libe
Copy link

libe commented Mar 17, 2020

Hello,

this is very reproducible if you do a bulk insert with more 200MB of data with two Task in parallel. It hangs with a deadlock under Linux keeping the TCP connection open without sending any packets.

We got rid of this issue by updating the SQL Client to version 1.1.1.

@borisdj
Copy link
Owner

borisdj commented Mar 25, 2020

Merged and NuGet 3.1.1 published.

@borisdj borisdj closed this as completed Mar 25, 2020
@Maleaume
Copy link

Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants