[
https://issues.apache.org/jira/browse/GEODE-4074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16286606#comment-16286606
]
ASF GitHub Bot commented on GEODE-4074:
---------------------------------------
jdeppe-pivotal closed pull request #1151: GEODE-4074: Cleanup of PdxSerializers
in TypeRegistry
URL: https://github.com/apache/geode/pull/1151
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/geode-core/src/test/java/org/apache/geode/test/dunit/internal/JUnit4DistributedTestCase.java
b/geode-core/src/test/java/org/apache/geode/test/dunit/internal/JUnit4DistributedTestCase.java
index 6665dfef4b..b44ca8dbad 100644
---
a/geode-core/src/test/java/org/apache/geode/test/dunit/internal/JUnit4DistributedTestCase.java
+++
b/geode-core/src/test/java/org/apache/geode/test/dunit/internal/JUnit4DistributedTestCase.java
@@ -73,6 +73,7 @@
import org.apache.geode.internal.net.SocketCreator;
import org.apache.geode.internal.net.SocketCreatorFactory;
import org.apache.geode.management.internal.cli.LogWrapper;
+import org.apache.geode.pdx.internal.TypeRegistry;
import org.apache.geode.test.dunit.DUnitBlackboard;
import org.apache.geode.test.dunit.Disconnect;
import org.apache.geode.test.dunit.Host;
@@ -597,6 +598,8 @@ private static final void tearDownVM() {
IgnoredException.removeAllExpectedExceptions();
SocketCreatorFactory.close();
+ TypeRegistry.setPdxSerializer(null);
+ TypeRegistry.init();
cleanDiskDirs();
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Clean up TypeRegistry WRT PDX settings
> --------------------------------------
>
> Key: GEODE-4074
> URL: https://issues.apache.org/jira/browse/GEODE-4074
> Project: Geode
> Issue Type: Test
> Components: tests
> Reporter: Jens Deppe
> Assignee: Jens Deppe
>
> PdxSerializer needs to be reset as part of VM cleanup for
> JUnit4DistributedTestCase.
> When a custom serializer is set, it may affect subsequent tests.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)