Comments (4)
Author: monzum
A possible test for this scenario may be to advertise to one of the service and then do lookup on all the services with short graceperiod. What will happen in this case, is a service that does not have the (key,value) may return an empty list first. This will cause the empty list to be returned to the application even if there is a valid result for the key on one of the other services. This would be due to race condition on which service returns the result first.
from advertiseserver.
Author: albert
Maybe we need a way to tell the lookup function to wait until all of the services have returned, instead of returning the first result it sees after the grace period?
from advertiseserver.
Author: leonwlaw
Instead of returning upon the first result returned, how about waiting for the first non-empty result? We would return the empty list only if all services return an empty list.
from advertiseserver.
Author: justinc
Replying to leonwlaw:
Instead of returning upon the first result returned, how about waiting for the first non-empty result? We would return the empty list only if all services return an empty list.
What if it is empty though? I'm more concerned about why we get an empty list in the first place. Can you look and see why / when this happens?
from advertiseserver.
Related Issues (20)
- There seems to be a small bug dealing with openDHTadvertise.repy HOT 5
- Advertising two keys (in two threads) results in high failure rate HOT 2
- Bug in current advertiseserver HOT 2
- DORadvertise seems to have a bug in it HOT 3
- DOR and opendht fail when using keys that are large dicts... HOT 2
- Advertise bug caused by , and \ encoding HOT 1
- Many nodes have hard time advertising. HOT 1
- Problem with advertise service - Error when using announce HOT 2
- httpretrieve.repy possibly leaks sockets. HOT 1
- Deprecate old advertise server format... HOT 3
- Unexpected tag 'details' raises exception during advertise lookup HOT 2
- Centralized advertise v2 is slow HOT 7
- Centralized advertise v2 to contact multiple v2 servers HOT 7
- [Newcomer] Integration test for advertise servers HOT 5
- Dwindling node counts since 0.1.1d push HOT 6
- [Newcomer| Evaluate advertise monitoring logs HOT 2
- Port advertise servers to RepyV2 HOT 4
- Clean up repo HOT 3
- advertiseserver.py needs include RepyV2 files through dylink 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 advertiseserver.