|
6 | 6 | import java.io.IOException; |
7 | 7 | import java.io.InputStream; |
8 | 8 | import java.io.InputStreamReader; |
| 9 | +import java.net.InetAddress; |
9 | 10 | import java.text.SimpleDateFormat; |
10 | 11 | import java.time.Duration; |
11 | 12 | import java.util.ArrayList; |
@@ -103,6 +104,7 @@ public static void setUpBeforeClass() throws Exception { |
103 | 104 | dmManager = dbClient.newDataMovementManager(); |
104 | 105 |
|
105 | 106 | Map<String, String> props = new HashMap<>(); |
| 107 | + String localhost = InetAddress.getLocalHost().getHostName().toLowerCase(); |
106 | 108 | String version = String.valueOf(evalClient.newServerEval().xquery("xquery version \"1.0-ml\"; xdmp:version()") |
107 | 109 | .eval().next().getString().charAt(0)); |
108 | 110 | if (OS.indexOf("win") >= 0) { |
@@ -131,7 +133,9 @@ public static void setUpBeforeClass() throws Exception { |
131 | 133 | } |
132 | 134 | dataDir = location + "/space/dmsdk-failover/win/" + version + "/temp-"; |
133 | 135 | } else if (OS.indexOf("nux") >= 0) { |
134 | | - dataDir = "/project/qa-netapp/space/dmsdk-failover/linux/" + version + "/temp-"; |
| 136 | + // Avoid creating Forest at same location when multiple Linux platforms are used |
| 137 | + String uniqueForestStr = localhost +"-" + version; |
| 138 | + dataDir = "/project/qa-netapp/space/dmsdk-failover/linux/" + uniqueForestStr + "/temp-"; |
135 | 139 | } else if (OS.indexOf("mac") >= 0) { |
136 | 140 | dataDir = "/project/qa-netapp/space/dmsdk-failover/mac/" + version + "/temp-"; |
137 | 141 | } else { |
|
0 commit comments