Giter Club home page Giter Club logo

Comments (6)

EricStG avatar EricStG commented on June 21, 2024 1

@daveleek FYI, this happens in a Docker with no volumes mounted. There's only 1 process in that container, and that's the ASP.NET Core app using Unleash.

from unleash-client-dotnet.

daveleek avatar daveleek commented on June 21, 2024

Thank you for bringing this up @SMLVE. If you don't mind, what's your polling interval set to (if not default)?

from unleash-client-dotnet.

SMLVE avatar SMLVE commented on June 21, 2024

It's set to 30 seconds, which is the default I think.

from unleash-client-dotnet.

daveleek avatar daveleek commented on June 21, 2024

Thanks @SMLVE!

So we have identified a likely cause for this. When an instance tag is not provided to unleash upon creation it will create an instance tag with a random number in it for uniqueness. The instance tag makes its way into the name of the toggles backup file.

The random number has a low entropy so collisions could be occasionally occurring when more than one instance of an application running Unleash .NET SDK runs on the same machine/has the same temp folder volume mapped (which could explain why you're unable to reproduce locally and only see it sporadically in production)

Unleash catches and logs an error+exception for this (so unhandled is perhaps poorly worded in the error message), and continues operation.

We're changing the logging for this to log a warning+exception, and setting fallback instance tag to include a GUID component instead of a low entropy random number. We'll release this sometime this week!

// David

from unleash-client-dotnet.

SMLVE avatar SMLVE commented on June 21, 2024

Thanks, for the detailed explanation and for getting back to us so quickly. We are going to update our package whenever the fix is released!

from unleash-client-dotnet.

daveleek avatar daveleek commented on June 21, 2024

FYI: Closing as we released an improvement on randomization of instance tags in v 3.0.0

from unleash-client-dotnet.

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.