HBASE-10686 [WINDOWS] TestStripeStoreFileManager fails on windows
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1575011 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1237a85052
commit
617235b953
|
@ -18,6 +18,13 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.hadoop.hbase.regionserver;
|
package org.apache.hadoop.hbase.regionserver;
|
||||||
|
|
||||||
|
import static org.apache.hadoop.hbase.regionserver.StripeStoreFileManager.OPEN_KEY;
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertFalse;
|
||||||
|
import static org.junit.Assert.assertNull;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
@ -26,9 +33,6 @@ import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
|
||||||
import static org.apache.hadoop.hbase.regionserver.StripeStoreFileManager.OPEN_KEY;
|
|
||||||
|
|
||||||
import org.apache.hadoop.conf.Configuration;
|
import org.apache.hadoop.conf.Configuration;
|
||||||
import org.apache.hadoop.fs.FileSystem;
|
import org.apache.hadoop.fs.FileSystem;
|
||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
|
@ -551,7 +555,7 @@ public class TestStripeStoreFileManager {
|
||||||
long size, long seqNum, byte[] startKey, byte[] endKey) throws Exception {
|
long size, long seqNum, byte[] startKey, byte[] endKey) throws Exception {
|
||||||
FileSystem fs = TEST_UTIL.getTestFileSystem();
|
FileSystem fs = TEST_UTIL.getTestFileSystem();
|
||||||
Path testFilePath = StoreFile.getUniqueFile(fs, CFDIR);
|
Path testFilePath = StoreFile.getUniqueFile(fs, CFDIR);
|
||||||
fs.create(testFilePath);
|
fs.create(testFilePath).close();
|
||||||
MockStoreFile sf = new MockStoreFile(TEST_UTIL, testFilePath, size, 0, false, seqNum);
|
MockStoreFile sf = new MockStoreFile(TEST_UTIL, testFilePath, size, 0, false, seqNum);
|
||||||
if (startKey != null) {
|
if (startKey != null) {
|
||||||
sf.setMetadataValue(StripeStoreFileManager.STRIPE_START_KEY, startKey);
|
sf.setMetadataValue(StripeStoreFileManager.STRIPE_START_KEY, startKey);
|
||||||
|
|
Loading…
Reference in New Issue