iartiukhov commented on code in PR #7122:
URL: https://github.com/apache/ignite-3/pull/7122#discussion_r2584099030
##########
examples/java/src/main/java/org/apache/ignite/example/compute/ComputeJobPriorityExample.java:
##########
@@ -122,13 +187,19 @@ public static void main(String[] args) {
//--------------------------------------------------------------------------------------
CompletableFuture.allOf(jobFutures.toArray(new
CompletableFuture[0])).join();
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ } finally {
+
+ System.out.println("Cleaning up resources");
+ undeployUnit(DEPLOYMENT_UNIT_NAME, DEPLOYMENT_UNIT_VERSION);
}
}
/**
* High-priority job.
*/
- private static class HighPriorityJob implements ComputeJob<Integer,
String> {
+ public static class HighPriorityJob implements ComputeJob<Integer, String>
{
Review Comment:
What's the reason behind changing the visibility scope? Here and in all
other implementations of ComputeJob.
--
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]