Slackbot
02/03/2023, 6:12 PMSlackbot
02/04/2023, 4:11 AMSlackbot
02/06/2023, 11:17 AMSlackbot
02/06/2023, 11:33 AMSlackbot
02/06/2023, 2:01 PMSlackbot
02/06/2023, 5:19 PMSourabh Agrawal
02/07/2023, 9:59 AMSlackbot
02/07/2023, 12:01 PMSlackbot
02/07/2023, 1:23 PMSlackbot
02/08/2023, 4:02 AMSlackbot
02/08/2023, 6:27 AMSlackbot
02/08/2023, 12:09 PMJeff Bolle
02/08/2023, 2:22 PMsetProcessingGuarantees
to MANUAL
and then inside my function all of my processing is async, including publishing to some output topics. The final callback I have on the `CompletableFuture`from the async processing calls this method:
public <T> T handle(T obj, Throwable ex, Context context){
if (ex == null) {
context.getCurrentRecord().ack();
return obj;
} else {
context.getLogger().error("Error Processing record.", ex);
context.getCurrentRecord().fail();
return null;
}
}
Does all of that look like the right way to be acking / failing the record from inside a function using the Context
? I ask because in my logs I'm seeing a lot of the following:
2023-02-08T14:13:09,961+0000 [pulsar-timer-6-1] INFO org.apache.pulsar.client.impl.UnAckedMessageTracker - [ConsumerBase{subscription='bnr-url-function-sub', consumerName='45c52', topic='<persistent://q6/default/bnr_legacy'}>] 2634 messages will be re-delivered
However I'm not seeing error logs indicating that there were an equivalent number of message failures. I'm not seeing any failures right now, and I'm seeing many copies of the UnAckedMessageTracker logging that.Slackbot
02/08/2023, 3:37 PMJeff Bolle
02/08/2023, 3:56 PMSlackbot
02/08/2023, 4:28 PMJulien Jakubowski
02/08/2023, 4:46 PMSlackbot
02/08/2023, 5:08 PMSandip
02/09/2023, 11:34 AMSlackbot
02/09/2023, 12:32 PMSandip
02/09/2023, 12:35 PMcluster2/broker1/bin/pulsar-perf produce -u <http://10.160.0.8:8080>,10.160.0.9:8080,10.160.0.10:8080 -r 10000 -m 100000 -threads 10 -z ZLIB -s 50000 <persistent://cpaas/email/mq>
Consumer
cluster1/broker1/bin/pulsar-perf consume -u <http://10.160.0.8:8080>,10.160.0.9:8080,10.160.0.10:8080 <persistent://cpaas/email/mq> -r 10000
Sandip
02/09/2023, 12:36 PM2023-02-09T16:38:21,042+0530 [pulsar-perf-producer-exec-1-3] INFO org.apache.pulsar.testclient.PerformanceProducer - Created 1 producers
2023-02-09T16:38:30,591+0530 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produced: 920 msg --- 92.0 msg/s --- 35.1 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 5701.607 ms - med: 6281.375 - 95pct: 8017.151 - 99pct: 8879.295 - 99.9pct: 8879.807 - 99.99pct: 8907.007 - Max: 8907.007
[18.897s][warning][gc,alloc] pulsar-perf-producer-exec-1-2: Retried waiting for GCLocker too often allocating 524290 words
[19.107s][warning][gc,alloc] pulsar-perf-producer-exec-1-8: Retried waiting for GCLocker too often allocating 524290 words
[19.309s][warning][gc,alloc] pulsar-perf-producer-exec-1-9: Retried waiting for GCLocker too often allocating 524290 words
Slackbot
02/09/2023, 11:14 PMSlackbot
02/09/2023, 11:35 PMSlackbot
02/10/2023, 5:27 PMSlackbot
02/10/2023, 6:07 PMSlackbot
02/10/2023, 9:41 PMSlackbot
02/13/2023, 2:16 PMSlackbot
02/14/2023, 6:03 PMDavid K
02/14/2023, 6:14 PM