HDFS-6235. Merging change r1586692 from trunk to branch-2.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1586696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fbc9db6954
commit
77beb3573c
|
@ -128,6 +128,9 @@ Release 2.4.1 - UNRELEASED
|
||||||
HDFS-6234. TestDatanodeConfig#testMemlockLimit fails on Windows due to
|
HDFS-6234. TestDatanodeConfig#testMemlockLimit fails on Windows due to
|
||||||
invalid file path. (cnauroth)
|
invalid file path. (cnauroth)
|
||||||
|
|
||||||
|
HDFS-6235. TestFileJournalManager can fail on Windows due to file locking if
|
||||||
|
tests run out of order. (cnauroth)
|
||||||
|
|
||||||
Release 2.4.0 - 2014-04-07
|
Release 2.4.0 - 2014-04-07
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -140,7 +140,7 @@ public class TestFileJournalManager {
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testInprogressRecovery() throws IOException {
|
public void testInprogressRecovery() throws IOException {
|
||||||
File f = new File(TestEditLog.TEST_DIR + "/filejournaltest0");
|
File f = new File(TestEditLog.TEST_DIR + "/inprogressrecovery");
|
||||||
// abort after the 5th roll
|
// abort after the 5th roll
|
||||||
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
||||||
5, new AbortSpec(5, 0));
|
5, new AbortSpec(5, 0));
|
||||||
|
@ -256,7 +256,7 @@ public class TestFileJournalManager {
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testReadFromStream() throws IOException {
|
public void testReadFromStream() throws IOException {
|
||||||
File f = new File(TestEditLog.TEST_DIR + "/filejournaltest1");
|
File f = new File(TestEditLog.TEST_DIR + "/readfromstream");
|
||||||
// abort after 10th roll
|
// abort after 10th roll
|
||||||
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
||||||
10, new AbortSpec(10, 0));
|
10, new AbortSpec(10, 0));
|
||||||
|
@ -283,7 +283,7 @@ public class TestFileJournalManager {
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testAskForTransactionsMidfile() throws IOException {
|
public void testAskForTransactionsMidfile() throws IOException {
|
||||||
File f = new File(TestEditLog.TEST_DIR + "/filejournaltest2");
|
File f = new File(TestEditLog.TEST_DIR + "/askfortransactionsmidfile");
|
||||||
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
||||||
10);
|
10);
|
||||||
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
||||||
|
@ -308,7 +308,7 @@ public class TestFileJournalManager {
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testManyLogsWithGaps() throws IOException {
|
public void testManyLogsWithGaps() throws IOException {
|
||||||
File f = new File(TestEditLog.TEST_DIR + "/filejournaltest3");
|
File f = new File(TestEditLog.TEST_DIR + "/manylogswithgaps");
|
||||||
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()), 10);
|
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()), 10);
|
||||||
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ public class TestFileJournalManager {
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testManyLogsWithCorruptInprogress() throws IOException {
|
public void testManyLogsWithCorruptInprogress() throws IOException {
|
||||||
File f = new File(TestEditLog.TEST_DIR + "/filejournaltest5");
|
File f = new File(TestEditLog.TEST_DIR + "/manylogswithcorruptinprogress");
|
||||||
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()), 10, new AbortSpec(10, 0));
|
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()), 10, new AbortSpec(10, 0));
|
||||||
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ public class TestFileJournalManager {
|
||||||
@Test
|
@Test
|
||||||
public void testReadFromMiddleOfEditLog() throws CorruptionException,
|
public void testReadFromMiddleOfEditLog() throws CorruptionException,
|
||||||
IOException {
|
IOException {
|
||||||
File f = new File(TestEditLog.TEST_DIR + "/filejournaltest2");
|
File f = new File(TestEditLog.TEST_DIR + "/readfrommiddleofeditlog");
|
||||||
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
||||||
10);
|
10);
|
||||||
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
StorageDirectory sd = storage.dirIterator(NameNodeDirType.EDITS).next();
|
||||||
|
@ -450,7 +450,7 @@ public class TestFileJournalManager {
|
||||||
@Test
|
@Test
|
||||||
public void testExcludeInProgressStreams() throws CorruptionException,
|
public void testExcludeInProgressStreams() throws CorruptionException,
|
||||||
IOException {
|
IOException {
|
||||||
File f = new File(TestEditLog.TEST_DIR + "/filejournaltest2");
|
File f = new File(TestEditLog.TEST_DIR + "/excludeinprogressstreams");
|
||||||
|
|
||||||
// Don't close the edit log once the files have been set up.
|
// Don't close the edit log once the files have been set up.
|
||||||
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
NNStorage storage = setupEdits(Collections.<URI>singletonList(f.toURI()),
|
||||||
|
|
Loading…
Reference in New Issue