Comments (4)
Hey @Mpdreamz ,
I think you're right. I was able to reproduce the issue with the elasticsearch
repo. Seems like there was quite a few static
field Faker
initializations that were being fired up at the same time.
I changed the locker to ExecutionAndPublication
and it seemed to solve the issue after running the elasticsearch unit tests a few times now.
Please feel free to re-open the issue if you run into the issue again.
Bogus v8.0.2
with the ExecutionAndPublication
should available soon as it gets indexed shortly.
Thanks,
Brian
from bogus.
Hi @Mpdreamz ,
Sorry about the trouble you're having. I wrote a few unit tests to try to reproduce a deadlock; however, I'm not able to reproduce the behavior you're seeing.
Is this in the elasticsearch-net
repo? Is it easy to run unit tests? Is there anything special I need to run the unit tests?
Thanks,
Brian
from bogus.
Hi @bchavez
It is yeah, you should be able to clone it and checkout the https://github.com/elastic/elasticsearch-net/tree/5.0.0-rc4 tag and run build
from the commandline. This will build and run the unit tests.
The deadlock does not happen always, as deadlocks tend to do. It doesn't even happen often enough for us to get into gear but when it does it tends to happen constantly during that period.
I do think having the lazy execute with ExecutionAndPublication
be a safer option so no synchronization has to happen on the winning threads returned object
that everyone wants to lock on.
from bogus.
Awesome thanks Brian!
from bogus.
Related Issues (20)
- Bogus is slow on Blazor WASM HOT 1
- Add Amka number (Greek social security number) to Extensions.Greece
- Option to filter out en_AU_ocker
- Generating a deep object graph based on rules HOT 1
- Xamarin fails to publish due to Nordic characters in Method names HOT 2
- Add Direct License Information In Nuget metadata HOT 2
- Foreign Key Constraint Violation Issue with Bogus and EF Core
- Binder throw ambiguous match exception for object with read only indexer property that has two implementations in base class HOT 2
- First and Full names are incorrectly generated with locale "sv" HOT 2
- Request to add language English (Hong Kong) / locale en_HK
- Faker.Tv() is missing from Bogus.Hollywood HOT 3
- Feature request: New localized data: Word(s).
- Add ability to except random numbers HOT 2
- Update Denmark (da) locale from faker-js
- Nuget for .NET 8.0.x HOT 4
- Random history facts generation
- Are Randomizer's number ranges inclusive or exclusive? HOT 3
- bogus is missing NuGet package README file HOT 1
- .NET 8 support HOT 9
- Gender-digit is incorrect for Swedish Personnummer generation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bogus.