Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.1
-
Thin client: added an option to append server exception stack trace to the error messages.
-
Release Notes Required
Description
Some server side errors have deeply nested suppressed or caused by errors which contains informative messages for further problem recognition. Possible such mechanism need to be disabled on production environment. Example of non informative error on client side:
org.apache.ignite.internal.client.thin.ClientServerError: Ignite failed to process request [1]: Failed to update keys (retry update if possible).: [1] (server status code [1])
but full stack holds the root case:
Caused by: class org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException: Failed to update keys (retry update if possible).: [1] at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicAbstractUpdateFuture.onPrimaryError(GridNearAtomicAbstractUpdateFuture.java:397) at org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2567) at org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:2544) at org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.put(IgniteCacheProxyImpl.java:1316) ... 13 more Suppressed: class org.apache.ignite.IgniteCheckedException: Failed to update keys. ... 23 more Suppressed: class org.apache.ignite.IgniteCheckedException: Runtime failure on search row: SearchRow ... 25 more Caused by: class org.apache.ignite.IgniteCheckedException: org.apache.ignite.internal.binary.BinaryObjectImpl cannot be cast to org.apache.ignite.client.IgniteBinaryTest$ThinBinaryValue <-- here !!! at org.apache.ignite.internal.processors.cache.GridCacheMapEntry$AtomicCacheUpdateClosure.update(GridCacheMapEntry.java:6379) ... 30 more
looks like it would be useful to have additional setting in ThinClientConfiguration#showFullStackOnClientSide configured both as direct setting and through JMX (ClientProcessorMXBean#showFullStackOnClientSide).
Attachments
Issue Links
- blocks
-
IGNITE-16549 .NET: Add IgniteClientConfiguration.SendServerExceptionStackTraceToClient
- Resolved
- is a child of
-
IGNITE-10789 CacheInterceptor on server node get BinaryObject if put was invoked by ClientCache.
- Resolved
- is related to
-
IGNITE-17499 Service method invocation exception is not propagated to thin client side
- Resolved
-
IGNITE-17541 Add "set" prefix to ThinClientConfiguration#sendServerExceptionStackTraceToClient()
- Resolved
- links to