Code Monkey home page Code Monkey logo

Comments (5)

ledpup avatar ledpup commented on July 29, 2024

I'm running 2.1.3. Going to drop back a version or two and test that. Then try cloning the repo and have a look.

from service-fabric-distributed-cache.

ledpup avatar ledpup commented on July 29, 2024

I cloned and included the project in the solution. After doing that, I could not reproduce the issue. It only happens when including it as a NuGet package 2.1.3 or 2.1.1 so far (the two packages I've tested).

from service-fabric-distributed-cache.

ledpup avatar ledpup commented on July 29, 2024

Reading... clearly I don't know enough about Service Fabric.

https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-concepts-partitioning

It doesn't seem possible that my service switched from getting that error to not getting it after only just cloning the library. Somehow it looks like I've switched it from being a SingletonPartition to a Int64RangePartition.

Right now the only thing I can see wrong with this repo is that it could probably have a better error message. I'll keep investigating this.

from service-fabric-distributed-cache.

ledpup avatar ledpup commented on July 29, 2024

I figured out how the above occurred. I had my SingletonPartition app working because on my other machine I'd run the DistributedCache app in the example code of the repo. This means my SingletonPartition was using the cache store created by the demo. Once you remove the demo application, the cast exception re-occurs.

I then resolved the issue properly by making my application a UniformInt64Partition in ApplicationManifest.xml, same as in the example code.

Next issue is that I get this exception. Once again, it's a difference between the example application and mine.

SoCreate.Extensions.Caching.ServiceFabric.CacheStoreException: An exception occurred while accessing cache store.
 ---> System.Fabric.FabricInvalidAddressException: NamedEndpoint 'CacheStoreServiceListener' not found in the address '{"Endpoints":{"":"http:\/\/mymachine:8686"}}' for partition '6b83ffa3-c4d8-4db0-bf5d-a58de373599b'
   at Microsoft.ServiceFabric.Services.Communication.Client.CommunicationClientCacheEntry`1.GetEndpointAddressForNamedEndpoint()
   at Microsoft.ServiceFabric.Services.Communication.Client.CommunicationClientCacheEntry`1.GetEndpoint()
   at Microsoft.ServiceFabric.Services.Communication.Client.CommunicationClientFactoryBase`1.CreateNewClientAsync(String listenerName, String requestId, ResolvedServicePartition previousRsp, CommunicationClientCacheEntry`1 cacheEntry, CancellationToken cancellationToken)

from service-fabric-distributed-cache.

ledpup avatar ledpup commented on July 29, 2024

A lot more reading later... I figured out how to use this library though it turns out I don't need a distributed cache. I only needed the most basic of caching. Just rolled it from the basic stateful SF functionality.

Thanks for writing this though. I'll keep it in mind for the future.

from service-fabric-distributed-cache.

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.