You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2018/03/15 15:10:43 UTC
[isis] branch master updated: ISIS-1841 cleanup thread locals on
shutdown
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 7172b21 ISIS-1841 cleanup thread locals on shutdown
7172b21 is described below
commit 7172b21eaf9a68dcad08012dddb44a1c463bd31f
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Mar 15 16:10:39 2018 +0100
ISIS-1841 cleanup thread locals on shutdown
---
.../isis/objectstore/jdo/datanucleus/DataNucleusLifeCycleHelper.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/objectstore/jdo/datanucleus/DataNucleusLifeCycleHelper.java b/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/objectstore/jdo/datanucleus/DataNucleusLifeCycleHelper.java
index bc19b81..28600b6 100644
--- a/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/objectstore/jdo/datanucleus/DataNucleusLifeCycleHelper.java
+++ b/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/objectstore/jdo/datanucleus/DataNucleusLifeCycleHelper.java
@@ -48,6 +48,9 @@ public class DataNucleusLifeCycleHelper {
// https://github.com/datanucleus/datanucleus-core/issues/272
EnhancementHelper.getInstance().unregisterClasses(cl);
+ // cleanup thread locals
+ JDOStateManagerForIsis.hint.remove();
+
} catch (Exception e) {
// ignore, since it only affects re-deploy-ability, which is nice to have but not critical
}
--
To stop receiving notification emails like this one, please contact
ahuber@apache.org.