Comments (5)
What are you wanting to know, exactly? Can you give me examples of how you
might
imagine this working?
Original comment by [email protected]
on 27 Jun 2008 at 5:59
from spymemcached.
I would find it very useful to see the address of the memcached node that
caused the
timeout.
e.g.
try
{
client.get(key);
}
catch (OperationTimeoutException e)
{
// getNodeInfo() could be the SocketAddress to identify the node
log.error("Node that caused timeout: " + e.getNodeInfo());
// or maybe just add the node address to meesage?
log.error("Node that caused timeout: " + e.getMessage();
}
Does this make it clearer?
Original comment by [email protected]
on 27 Jun 2008 at 11:08
from spymemcached.
+1 For this - the IP address of the node that the timeout occurred on would be
super
useful for debugging network-related issues in setups with hundreds of memcache
machines.
Original comment by massdosage
on 30 Jun 2008 at 11:02
from spymemcached.
Currently we see this in our logs (using 2.1):
[2008-11-02 13:56:41] ERROR
net.spy.memcached.OperationTimeoutException: Mutate operation timed out, unable
to
modify counter [da5a963177c779f86fec2618036175f3]
at net.spy.memcached.MemcachedClient.mutate(MemcachedClient.java:1050)
at net.spy.memcached.MemcachedClient.mutateWithDefault(MemcachedClient.java:1089)
at net.spy.memcached.MemcachedClient.incr(MemcachedClient.java:1126)
at
fm.last.memcached.spy.MemCachedClientAdaptor.incr(MemCachedClientAdaptor.java:18
6)
We have roughly 100 memcache nodes. From this stack trace it is impossible to
tell
which of the nodes is causing the problem. It would be great if the exception
message
said something along the lines of:
Mutate operation timed out on 111.222.333.444
That would help in cases where there is an issue with just one of the nodes as
only
its IP address would show up in the logs. If lots of IP's showed up then it
would
point in the direction of a more general failure. Either way, having that
additional
information there would help debugging the cause of timeouts.
Original comment by massdosage
on 20 Nov 2008 at 5:53
from spymemcached.
It's a bit more complicated than this, but you can get the actual node that
should've
been handling the operation from the root cause exception of the
OperationTimeoutException (as attached to the operation itself).
A stack trace print will show the information as well.
It's not guaranteed to report an actual problem with the node, but it should
satisfy
this request.
Original comment by [email protected]
on 18 Sep 2009 at 6:47
- Changed state: Fixed
from spymemcached.
Related Issues (20)
- State the dependencies in the pom file HOT 5
- Multhreaded implementation with SASL support not working. HOT 1
- Operation class is used in un-threadsafe, unsynchronized manner. HOT 4
- Inside TCPMemcachedNodeImpl, use direct buffers HOT 4
- Stability problems in async I/O HOT 4
- assertion failure during ConsistentHashingTest HOT 1
- incr/decr parameter "by" should be a long, not an int HOT 9
- Zlib encoding/binary access HOT 3
- getBulk() logs a warning when no keys are in the cache HOT 3
- bug in OperationImpl HOT 6
- get(long timeout, TimeUnit unit) may take longer than given timeout HOT 3
- IllegalArgumentException after Switching from SpyMemcached 2.7 to 2.7.1 HOT 2
- "unl" unlock operation is not implemented on MembaseClient HOT 9
- 2.7.1 jar for download corrupt? HOT 5
- Callback support HOT 11
- Get canceled HOT 5
- CAS operation fails due to client sign-extending the CAS value HOT 1
- warning for "handling node for operation is not set" if any server is down HOT 4
- javadoc warnings from tap and vbucket classes HOT 3
- CASMutator removes expiry on mutated items
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 spymemcached.