-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Lots of statistic collection with use in tests. * s3a prefetch tests all moved to prefetch. package * and split into caching stream and large files tests * large files and LRU are scale * and testRandomReadLargeFile uses small block size to reduce read overhead * new hadoop common org.apache.hadoop.test.Sizes sizes class with predefined sizes (from azure; not moved existing code to it yet) Overall, the prefetch reads of the large files are slow; while it's critical to test multi-block files, we don't need to work on the landsat csv file. better: one of the huge tests uses it, with a small block size of 1 MB to force lots of work. Change-Id: Idff93810f32f6b42fe07733d2de60d180ea978e8
- Loading branch information
1 parent
9274168
commit f24f1fd
Showing
16 changed files
with
504 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/Sizes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.hadoop.test; | ||
|
||
/** | ||
* Sizes of data in KiB/MiB | ||
*/ | ||
public class Sizes { | ||
|
||
public static final int S_256 = 256; | ||
public static final int S_512 = 512; | ||
public static final int S_1K = 1024; | ||
public static final int S_2K = 2 * S_1K; | ||
public static final int S_4K = 4 * S_1K; | ||
public static final int S_8K = 8 * S_1K; | ||
public static final int S_10K = 10 * S_1K; | ||
public static final int S_16K = 16 * S_1K; | ||
public static final int S_32K = 32 * S_1K; | ||
public static final int S_64K = 64 * S_1K; | ||
public static final int S_128K = 128 * S_1K; | ||
public static final int S_256K = 256 * S_1K; | ||
public static final int S_512K = 512 * S_1K; | ||
public static final int S_1M = S_1K * S_1K; | ||
public static final int S_2M = 2 * S_1M; | ||
public static final int S_4M = 4 * S_1M; | ||
public static final int S_5M = 5 * S_1M; | ||
public static final int S_8M = 8 * S_1M; | ||
public static final int S_16M = 16 * S_1M; | ||
public static final int S_10M = 10 * S_1M; | ||
public static final int S_32M = 32 * S_1M; | ||
public static final int S_64M = 64 * S_1M; | ||
public static final double NANOSEC = 1.0e9; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.