This is an automated email from the ASF dual-hosted git repository.
mandarambawane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new d9d4e17ae ATLAS-4687: Atlas server doesn't come up due to circular
dependency in TaskRegistry class
d9d4e17ae is described below
commit d9d4e17ae5e0a85b571985af8733796782b41d0e
Author: sheetal.shah <[email protected]>
AuthorDate: Thu Apr 27 15:45:02 2023 +0530
ATLAS-4687: Atlas server doesn't come up due to circular dependency in
TaskRegistry class
Signed-off-by: Mandar Ambawane <[email protected]>
---
repository/src/main/java/org/apache/atlas/tasks/TaskRegistry.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/repository/src/main/java/org/apache/atlas/tasks/TaskRegistry.java
b/repository/src/main/java/org/apache/atlas/tasks/TaskRegistry.java
index 5d1f50f5b..459d44d48 100644
--- a/repository/src/main/java/org/apache/atlas/tasks/TaskRegistry.java
+++ b/repository/src/main/java/org/apache/atlas/tasks/TaskRegistry.java
@@ -28,6 +28,7 @@ import org.apache.atlas.type.AtlasType;
import org.apache.atlas.utils.AtlasJson;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import javax.inject.Inject;
@@ -40,6 +41,7 @@ import java.util.Map;
import static org.apache.atlas.repository.Constants.TASK_GUID;
import static
org.apache.atlas.repository.store.graph.v2.AtlasGraphUtilsV2.setEncodedProperty;
+@Lazy
@Component
public class TaskRegistry {
private static final Logger LOG =
LoggerFactory.getLogger(TaskRegistry.class);