Commit b5189194 by Ashutosh Mestry

ATLAS-3354: Stale entry in RequestContext causes Export's changeMarker to not be updated.

parent 7b0a0e12
...@@ -360,6 +360,8 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { ...@@ -360,6 +360,8 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
} }
} catch (AtlasBaseException e) { } catch (AtlasBaseException e) {
LOG.error("Failed to init after becoming active", e); LOG.error("Failed to init after becoming active", e);
} finally {
RequestContext.clear();
} }
} }
...@@ -880,6 +882,7 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { ...@@ -880,6 +882,7 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
ret = APPLIED; ret = APPLIED;
} finally { } finally {
RequestContext.get().setInTypePatching(false); RequestContext.get().setInTypePatching(false);
RequestContext.clear();
} }
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment