You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by am...@apache.org on 2019/07/31 23:10:58 UTC
[atlas] 02/02: ATLAS-3354: Stale entry in RequestContext causes
Export's changeMarker to not be updated.
This is an automated email from the ASF dual-hosted git repository.
amestry pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
commit b5189194952c73ce77d4c935b4d00a9a2d16684d
Author: Ashutosh Mestry <am...@hortonworks.com>
AuthorDate: Wed Jul 31 16:05:19 2019 -0700
ATLAS-3354: Stale entry in RequestContext causes Export's changeMarker to not be updated.
---
.../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 {