Giter Club home page Giter Club logo

Comments (8)

yreynhout avatar yreynhout commented on June 9, 2024 3

I've worked on this with @wooderz privately. We found out that his Guid based stream identity generation logic was at fault. Every so often it would generate a duplicate value (where a unique one was expected) and cause the expected behaviour around appending to a stream with ExpectedVersion.NoStream to kick in.

from sqlstreamstore.

yreynhout avatar yreynhout commented on June 9, 2024

It's a known issue with the MySql implementation, but it's news to me with the Postgres one ... I'll try and add a test to reproduce the behavior. As of how much concurrency are you observing this?

from sqlstreamstore.

wooderz avatar wooderz commented on June 9, 2024

Wasn't lots really, about 120 I think. I use Loadster to do the tests, here's the page with the error on. Each test is set to create a new record (using a random identifier in the post body) so each one should be a NewStream

image

from sqlstreamstore.

wooderz avatar wooderz commented on June 9, 2024

To be 100% sure I just ran it with a dataset of all unique values for keys for the tenant id and the same problem occurred. Therefore it's definitely not an ID conflict

from sqlstreamstore.

yreynhout avatar yreynhout commented on June 9, 2024

Great, was going to ask - makes looking for the needle in the haystack easier since there should be a needle.

from sqlstreamstore.

wooderz avatar wooderz commented on June 9, 2024

Anything I can do to narrow it down? Happy to share my aggregate Save method if that's of any help

from sqlstreamstore.

yreynhout avatar yreynhout commented on June 9, 2024

If you can share it, that might shed some extra light.

from sqlstreamstore.

bartelink avatar bartelink commented on June 9, 2024

(FWIW Equinox.Tool (see https://github.com/jet/equinox#benchmarks and the section just above) is plumbed to run a concurrency test with error and latency metrics using SqlStreamStore - I have not personally used it for some time and don't have much direct interest in mucking with SQL stores atm)

from sqlstreamstore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.