rpuch commented on code in PR #5122:
URL: https://github.com/apache/ignite-3/pull/5122#discussion_r1930543291
##########
modules/core/src/main/java/org/apache/ignite/internal/future/timeout/TimeoutObject.java:
##########
@@ -37,4 +38,11 @@ public interface TimeoutObject<T extends
CompletableFuture<?>> {
* @return A future.
*/
T future();
+
+ /**
+ * Describes the operation that has time limit. This is used to construct
TimeoutException.
+ */
+ default @Nullable String describe() {
Review Comment:
There are 3 other implementations. 2 of them are in test and benchmark, so
the description is simply not needed; third is in TcpClientChannel, and:
* I've never stumbled upon such timeout exceptions when debugging (so it's
not clear why this has to be improved here as well)
* it's not obvious what should be described in this case
That's why I only added an implementation for the network-related timeout
object. Later we can add them for other objects if the need arises.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]