From 78723e045ae7abaf58452a64ada88c7cfd7011b8 Mon Sep 17 00:00:00 2001 From: Michael Kuchenbecker Date: Wed, 20 Oct 2021 14:38:09 -0700 Subject: [PATCH] HDFS-7612: Fix default cache directory in TestOfflineEditsViewer.testStored. Contributed by Michael Kuchenbecker (#3571) (cherry picked from commit a73ff6915ae3e0ced1b4c814a94845f51e655a0c) --- .../hdfs/tools/offlineEditsViewer/TestOfflineEditsViewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/TestOfflineEditsViewer.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/TestOfflineEditsViewer.java index 226e4861f4..6f30416ed6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/TestOfflineEditsViewer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/offlineEditsViewer/TestOfflineEditsViewer.java @@ -164,7 +164,7 @@ public void testRecoveryMode() throws IOException { public void testStored() throws IOException { // reference edits stored with source code (see build.xml) final String cacheDir = System.getProperty("test.cache.data", - "build/test/cache"); + "target/test-classes"); // binary, XML, reparsed binary String editsStored = cacheDir + "/editsStored"; String editsStoredParsedXml = cacheDir + "/editsStoredParsed.xml";