sumitagrawl commented on code in PR #4578:
URL: https://github.com/apache/ozone/pull/4578#discussion_r1331076726
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/events/EventWatcher.java:
##########
@@ -157,13 +146,14 @@ protected synchronized void
handleCompletion(COMPLETION_PAYLOAD
}
}
- private synchronized void handleTimeout(EventPublisher publisher,
+ private synchronized Void handleTimeout(EventPublisher publisher,
Review Comment:
Callback as getting registered has return type is Callback with "Void"
Object, so this gives error if return type mismatch,
Syntax for acquire: `public synchronized Lease<T> acquire(
T resource, Callable<Void> callback)`
Below is error if we keep void:
`Bad return type in lambda expression: void cannot be converted to Void`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]