kfaraz commented on code in PR #16041:
URL: https://github.com/apache/druid/pull/16041#discussion_r1556810682
##########
integration-tests/src/test/java/org/apache/druid/tests/indexer/AbstractITBatchIndexTest.java:
##########
@@ -370,7 +370,12 @@ protected void submitTaskAndWait(
if (segmentAvailabilityConfirmationPair.lhs != null &&
segmentAvailabilityConfirmationPair.lhs) {
TaskReport reportRaw =
indexer.getTaskReport(taskID).get("ingestionStatsAndErrors");
IngestionStatsAndErrorsTaskReport report =
(IngestionStatsAndErrorsTaskReport) reportRaw;
- IngestionStatsAndErrors reportData = (IngestionStatsAndErrors)
report.getPayload();
+ IngestionStatsAndErrors reportData = report.getPayload();
+
+ Assert.assertTrue(
+ reportData.getTaskContext() != null &&
!reportData.getTaskContext().isEmpty(),
+ "Report data does not contain task context. Ensure that
TaskContextEnricher is correctly bound."
+ );
Review Comment:
+1
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]