Comments (5)
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.
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.
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.
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.
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)
- Support for Rate Limiting functionality HOT 1
- Facing an exception in stateful service constructor in sample code System.IO.FileNotFoundException HOT 2
- TimeoutException on SetAsync() HOT 9
- Exception on RemoveLeastRecentlyUsedCacheItemWhenOverMaxCacheSize, null key HOT 8
- MaxCacheSizeInMegabytes with HasPersistedState = true HOT 4
- Correct usage HOT 1
- Running in docker container
- Getting "System.Fabric.FabricServiceNotFoundException: Service does not exist." on SetAsync HOT 2
- Any reason why IDistributedCacheStoreLocator is not public?
- Any reason there is no option to get all stored keys or remove all stored keys within a cache store?
- I was trying to use socreate libraray for caching .Im getting Could not ping any of the provided Service Fabric gateway endpoints. error even after providing the endpoints. Any insights
- Support configure FabricTransportRemotingListenerSettings for authentication HOT 3
- Monitoring HOT 2
- Publish v2.3.0
- Publish v3.2.0 HOT 2
- unexplained cache failure after some time HOT 1
- High latency happens HOT 1
- .net framework support
- Service Fabric Depenencies locked to specific patch versions HOT 2
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 service-fabric-distributed-cache.