File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3 Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1299,6 +1299,7 @@ void put_pipelineStatusReindexesDownstreamLineage_200_OK(TestNamespace ns) throw
12991299 assertEquals (StatusType .Successful , updatedPipeline .getPipelineStatus ().getExecutionStatus ());
13001300 assertEquals (pipelineStatus .getTimestamp (), updatedPipeline .getPipelineStatus ().getTimestamp ());
13011301 }
1302+
13021303 // ===================================================================
13031304 // BULK API SUPPORT
13041305 // ===================================================================
Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ public RestUtil.PutResponse<?> addBulkPipelineStatus(
388388
389389 Set <String > validatedTasks = new HashSet <>();
390390 for (PipelineStatus pipelineStatus : pipelineStatuses ) {
391- for (Status taskStatus : pipelineStatus .getTaskStatus ()) {
391+ for (Status taskStatus : listOrEmpty ( pipelineStatus .getTaskStatus () )) {
392392 if (validatedTasks .add (taskStatus .getName ())) {
393393 validateTask (pipeline , taskStatus .getName ());
394394 }
@@ -416,7 +416,11 @@ public RestUtil.PutResponse<?> addBulkPipelineStatus(
416416 pipeline .setChangeDescription (change );
417417 pipeline .setIncrementalChangeDescription (change );
418418
419- searchRepository .updateEntityIndex (pipeline );
419+ try {
420+ searchRepository .updateEntityIndex (pipeline );
421+ } catch (Exception e ) {
422+ LOG .error ("Failed to update pipeline entity index in Elasticsearch" , e );
423+ }
420424
421425 return new RestUtil .PutResponse <>(
422426 Response .Status .OK ,
You can’t perform that action at this time.
0 commit comments