log.info("Error Code generated : "
+ fetchResponse.errorCode(kafkaRequest.getTopic(),
kafkaRequest.getPartition()));
return false;
} else {
ByteBufferMessageSet messageBuffer = fetchResponse.messageSet(
kafkaRequest.getTopic(), kafkaRequest.getPartition());
lastFetchTime = (System.currentTimeMillis() - tempTime);
log.debug("Time taken to fetch : "
+ (lastFetchTime / 1000) + " seconds");
log.debug("The size of the ByteBufferMessageSet returned is : " + messageBuffer.sizeInBytes());
int skipped = 0;
totalFetchTime += lastFetchTime;
messageIter = messageBuffer.iterator();
//boolean flag = false;
Iterator<MessageAndOffset> messageIter2 = messageBuffer
.iterator();
MessageAndOffset message = null;
while (messageIter2.hasNext()) {
message = messageIter2.next();
if (message.offset() < currentOffset) {