fabriziofortino commented on code in PR #2183:
URL: https://github.com/apache/jackrabbit-oak/pull/2183#discussion_r2012451073


##########
oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticBulkProcessorHandler.java:
##########
@@ -268,113 +484,75 @@ public void beforeBulk(long executionId, BulkRequest 
request, List<String> conte
         }
 
         @Override
-        public void afterBulk(long executionId, BulkRequest request, 
List<String> contexts, BulkResponse response) {
+        public void afterBulk(long executionId, BulkRequest request, 
List<OperationContext> contexts, BulkResponse response) {
             try {
-                LOG.debug("Bulk with id {} processed in {} ms", executionId, 
response.took());
+                LOG.debug("Bulk with id {} processed in {} ms", executionId, 
response.took() / 1_000_000);

Review Comment:
   `response.took()` returns milliseconds. Dividing it by 1M would result in 
`0` most of the times.



-- 
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: oak-dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to