Skip to content

Commit

Permalink
Merge pull request #133 from Azure/bugfix/FixFlakyTest
Browse files Browse the repository at this point in the history
* Fix Flaky test on TopicPartitionWriter
  • Loading branch information
ag-ramachandran authored Dec 11, 2024
2 parents 11febbd + 6c3c80f commit 7279001
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,13 @@ public void handleRollFile(SourceFile fileDescriptor) {
continue;
}
}
IngestionStatus ingestionStatus = null;
if(ingestionResult!=null && ingestionResult.getIngestionStatusCollection()!=null
&& !ingestionResult.getIngestionStatusCollection().isEmpty()){
ingestionStatus = ingestionResult.getIngestionStatusCollection().get(0);
}
log.info("Kusto ingestion: file ({}) of size ({}) at current offset ({}) with status ({})",
fileDescriptor.path, fileDescriptor.rawBytes, currentOffset, ingestionResult.getIngestionStatusCollection().get(0));
fileDescriptor.path, fileDescriptor.rawBytes, currentOffset,ingestionStatus);
this.lastCommittedOffset = currentOffset;
return;
} catch (IngestionServiceException exception) {
Expand Down

0 comments on commit 7279001

Please sign in to comment.