Skip to content

Commit

Permalink
PR refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hr2904 committed Dec 2, 2024
1 parent 0da6164 commit e93359b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package org.apache.atlas.tasks;

import com.datastax.oss.driver.shaded.fasterxml.jackson.core.JsonProcessingException;
import com.datastax.oss.driver.shaded.fasterxml.jackson.databind.ObjectMapper;
import org.apache.atlas.AtlasConfiguration;
import org.apache.atlas.RequestContext;
Expand Down Expand Up @@ -498,9 +499,12 @@ private void repairMismatchedTask(AtlasTask atlasTask, String docId) {
} else {
LOG.info("No documents updated in Elasticsearch for guid: " + atlasTask.getGuid());
}
} catch (Exception e) {
e.printStackTrace();
} catch (JsonProcessingException e) {
LOG.error("Error converting fieldsToUpdate to JSON for task with guid: {} and docId: {}. Error: {}", atlasTask.getGuid(), docId, e.getMessage(), e);
}
catch (AtlasBaseException e) {
LOG.error("Error executing Elasticsearch query for task with guid: {} and docId: {}. Error: {}", atlasTask.getGuid(), docId, e.getMessage(), e);
}
}

public void commit() {
Expand Down

0 comments on commit e93359b

Please sign in to comment.