You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2017/10/15 20:34:16 UTC

[4/7] oodt git commit: - fix annoying RMI cache issue http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/faq.html#domain

- fix annoying RMI cache issue
http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/faq.html#domain

Project: http://git-wip-us.apache.org/repos/asf/oodt/repo
Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/3d40d193
Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/3d40d193
Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/3d40d193

Branch: refs/heads/development
Commit: 3d40d193682bd102071af4003ad042c192cc093c
Parents: 64826fb
Author: Chris Mattmann <ch...@jpl.nasa.gov>
Authored: Sun Oct 15 09:15:58 2017 -0700
Committer: Chris Mattmann <ch...@jpl.nasa.gov>
Committed: Sun Oct 15 09:15:58 2017 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/oodt/cas/filemgr/ingest/TestRmiCache.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oodt/blob/3d40d193/filemgr/src/test/java/org/apache/oodt/cas/filemgr/ingest/TestRmiCache.java
----------------------------------------------------------------------
diff --git a/filemgr/src/test/java/org/apache/oodt/cas/filemgr/ingest/TestRmiCache.java b/filemgr/src/test/java/org/apache/oodt/cas/filemgr/ingest/TestRmiCache.java
index 5ba6e33..d696968 100644
--- a/filemgr/src/test/java/org/apache/oodt/cas/filemgr/ingest/TestRmiCache.java
+++ b/filemgr/src/test/java/org/apache/oodt/cas/filemgr/ingest/TestRmiCache.java
@@ -160,6 +160,8 @@ public class TestRmiCache extends TestCase {
      * @see junit.framework.TestCase#setUp()
      */
     protected void setUp() throws Exception {
+        // http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/faq.html#domain
+        System.setProperty("java.rmi.server.hostname", "127.0.0.1"); // fix annoying RMI test issue
         startXmlRpcFileManager();
         doIngest();
         try {