ashishm07 commented on code in PR #7122:
URL: https://github.com/apache/ignite-3/pull/7122#discussion_r2589083368
##########
examples/java/src/main/java/org/apache/ignite/example/compute/ComputeBroadcastExample.java:
##########
@@ -111,21 +195,41 @@ public static void main(String[] args) {
QualifiedName customSchemaTable =
QualifiedName.parse("CUSTOM_SCHEMA.MY_QUALIFIED_TABLE");
client.compute().execute(table(customSchemaTable),
- JobDescriptor.builder(HelloMessageJob.class).build(), null
+ JobDescriptor.builder(HelloMessageJob.class)
+ .units(new DeploymentUnit(DEPLOYMENT_UNIT_NAME,
DEPLOYMENT_UNIT_VERSION))
+ .build(), null
);
-
QualifiedName customSchemaTableName = QualifiedName.of("PUBLIC",
"MY_TABLE");
client.compute().execute(table(customSchemaTableName),
- JobDescriptor.builder(HelloMessageJob.class).build(), null
+ JobDescriptor.builder(HelloMessageJob.class)
+ .units(new DeploymentUnit(DEPLOYMENT_UNIT_NAME,
DEPLOYMENT_UNIT_VERSION))
+ .build(), null
);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ } finally {
+
+ System.out.println("Cleaning up resources");
+ // undeployUnit(DEPLOYMENT_UNIT_NAME, DEPLOYMENT_UNIT_VERSION);
Review Comment:
Added this to verify that other classes using the same deployment unit
function correctly. Uncommented it now.
--
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]