This is an automated email from the ASF dual-hosted git repository. sarath pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 890dd069f0d65a13511d6dac1cd4f0fe4176d1fc Author: Ashutosh Mestry <[email protected]> AuthorDate: Wed Jul 31 16:05:19 2019 -0700 ATLAS-3354: Stale entry in RequestContext causes Export's changeMarker to not be updated. (cherry picked from commit b5189194952c73ce77d4c935b4d00a9a2d16684d) --- .../atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java b/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java index de79cbe..8d7dbfb 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/bootstrap/AtlasTypeDefStoreInitializer.java @@ -360,6 +360,8 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { } } catch (AtlasBaseException e) { LOG.error("Failed to init after becoming active", e); + } finally { + RequestContext.clear(); } } @@ -880,6 +882,7 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { ret = APPLIED; } finally { RequestContext.get().setInTypePatching(false); + RequestContext.clear(); } } } else {
