sk0x50 commented on code in PR #6541:
URL: https://github.com/apache/ignite-3/pull/6541#discussion_r2321534010


##########
docs/_docs/developers-guide/compute/compute.adoc:
##########
@@ -246,24 +247,18 @@ tab:Java[]
 ----
 try (IgniteClient client = IgniteClient.builder()
         .addresses("127.0.0.1:10800")
-        .build()
-) {
+        .build()) {
 
     System.out.println("\nConfiguring compute job...");
 
+    JobDescriptor<Integer, Void> job = 
JobDescriptor.builder(PrintAccountInfoJob.class)
+                    .units(new DeploymentUnit(DEPLOYMENT_UNIT_NAME, 
DEPLOYMENT_UNIT_VERSION))
+                    .build();
 
-    JobDescriptor<String, Void> job = 
JobDescriptor.builder(HelloMessageJob.class)
-            .units(new DeploymentUnit(DEPLOYMENT_UNIT_NAME, 
DEPLOYMENT_UNIT_VERSION))
-            .build();
-
-    BroadcastJobTarget target = 
BroadcastJobTarget.nodes(client.clusterNodes());
-
+    int accountNumber = ThreadLocalRandom.current().nextInt(ACCOUNTS_COUNT);

Review Comment:
   Hmm, this example uses a random account number. On the other hand, the 
description refers to the specific key `John`.
   
   > In the example below, the job runs on the node storing data for the 
`Person` table by using a key,
   > ensuring the compute task executes on the node that holds the partition 
for key `k` = "John".
   



-- 
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]

Reply via email to