@@ -343,6 +343,7 @@ public ObjectPropConsumer(NotificationConsumer<ObjectPropEvent> consumer) {
343
343
344
344
@ Override
345
345
public void doWork () {
346
+ // INC kafka batch size -> reduce kafka calls
346
347
long lineStart = System .currentTimeMillis ();
347
348
348
349
LOG .info ("ObjectPropConsumer::doWork() [Line 1] ==> Entered doWork()" );
@@ -387,7 +388,7 @@ public void doWork() {
387
388
lineStart = System .currentTimeMillis ();
388
389
389
390
for (AtlasKafkaMessage <ObjectPropEvent > msg : messages ) {
390
- long msgStart = System .currentTimeMillis (); // track each message individually
391
+ long msgStart = System .currentTimeMillis ();
391
392
392
393
LOG .info ("ObjectPropConsumer::doWork() -> Msg consumed on offset : {} with value : {}" ,
393
394
msg .getOffset (), msg .toString ());
@@ -401,7 +402,7 @@ public void doWork() {
401
402
msgStart = System .currentTimeMillis ();
402
403
403
404
if (res ) {
404
- long commitOffset = msg .getOffset () + 1 ;
405
+ long commitOffset = msg .getOffset () + 1 ; // Reduce this to a single batch commit
405
406
consumer .commit (msg .getTopicPartition (), commitOffset );
406
407
subTaskSuccess ++;
407
408
LOG .info ("ObjectPropConsumer::doWork() [Line 7-c] => commit offset done in {} ms" ,
@@ -431,6 +432,7 @@ public void doWork() {
431
432
LOG .info ("ObjectPropConsumer::doWork() [Line 9] => incremented ASSETS_PROPAGATION_FAILED_COUNT in {} ms" ,
432
433
(System .currentTimeMillis () - lineStart ));
433
434
}
435
+ // move redis above than kafka
434
436
lineStart = System .currentTimeMillis ();
435
437
436
438
} catch (IllegalStateException ex ) {
0 commit comments