Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
1ea978a
HDDS-6149. Remove unused keytabs (#2960)
adoroszlai Jan 5, 2022
243cc3f
HDDS-6094. Some unit tests are skipped due to using JUnit4 runner (#2…
adoroszlai Jan 5, 2022
61f1c70
HDDS-6075. OzoneConfiguration constructor overrides input configurati…
lokeshj1703 Jan 7, 2022
ca25193
HDDS-4177. SCM Container DB bootstrap on Recon startup (#2942)
aswinshakil Jan 7, 2022
9644f83
HDDS-6086. Compute MD5MD5CRC file checksum using chunk checksums from…
jojochuang Jan 10, 2022
a31b79a
HDDS-6148. Validate ContainerBalancerConfiguration before start Conta…
symious Jan 10, 2022
c8f6ad0
HDDS-6161. SCM StateMachine failing to reinitialize doesn't terminate…
bharatviswa504 Jan 11, 2022
a348980
HDDS-6134. Move replication-specific config to ReplicationServer (#2943)
adoroszlai Jan 11, 2022
5200eab
HDDS-4010. S3G startup fails when multiple service ids are configured…
bharatviswa504 Jan 11, 2022
a7aac99
HDDS-6170. Add metrics to replication manager to track container heal…
sodonnel Jan 11, 2022
bcfb64a
HDDS-3231. Cleanup KeyManagerImpl (#2961)
GeorgeJahad Jan 12, 2022
ac99b47
HDDS-5927. Improve defaults in ContainerBalancerConfiguration (#2892)
siddhantsangwan Jan 12, 2022
e1f9f21
HDDS-6157. More consistent synchronization in InputStreams (#2965)
adoroszlai Jan 12, 2022
d09cdd4
HDDS-4743. [FSO] Add FSO variant of ITestOzoneContractDistcp. (#2980)
JyotinderSingh Jan 12, 2022
195737d
HDDS-6114. Intermittent error due to Failed to init RocksDB (#2947)
adoroszlai Jan 12, 2022
5447f58
HDDS-6175. Use s3Auth during proxy during decrypt in RpcClient. (#2981)
bharatviswa504 Jan 13, 2022
3eb7235
HDDS-5740. Enable ratis by default for SCM. (#2637)
bshashikant Jan 13, 2022
46f305d
HDDS-6183. Intermittent failure in TestKeyDeletingService.checkIfDele…
JyotinderSingh Jan 16, 2022
1dd1d0b
HDDS-4190. Intermittent failure in TestOMVolumeSetOwnerRequest and Te…
JyotinderSingh Jan 16, 2022
9785941
HDDS-6120. Compute block checksum using chunk checksums (#2930)
jojochuang Jan 18, 2022
cde7cb7
HDDS-6147. Add ability in OM to get limited delta updates (#2956)
symious Jan 18, 2022
fc3015b
HDDS-6195. Remove unused jmh-core dependency. (#2997)
szetszwo Jan 18, 2022
0c071ba
HDDS-6167. Update ozone-runner version to 20211202-1 (#2969)
adoroszlai Jan 19, 2022
b8d97eb
HDDS-6171. Create an API to change Bucket Owner (#2988)
aswinshakil Jan 20, 2022
a99ec03
HDDS-6163. Fix PATH in docker image (#2967)
kmizumar Jan 20, 2022
431ce39
HDDS-6202. Avoid using jmh-generator-annprocess since it is GPL2.0. (…
szetszwo Jan 20, 2022
05773af
HDDS-6135. SCM Container DB bootstrap on Recon startup for SCM HA. (#…
aswinshakil Jan 20, 2022
66aadb0
HDDS-6109. Preserve the underlying exception raised in client lib. (#…
kerneltime Jan 21, 2022
bd91ab9
HDDS-3408. Rename ChunkLayOutVersion to ContainerLayoutVersion. (#2983)
JyotinderSingh Jan 21, 2022
18f1461
HDDS-6203. CleanUp incomplete gz files during Container move (#3000)
Xushaohong Jan 23, 2022
2af225d
HDDS-6216. Move OMOpenKeysDeleteRequest to package om.request.key (#3…
kaijchen Jan 24, 2022
ada4a3b
HDDS-6191. Intermittent failure in TestDeleteWithSlowFollower (#3015)
adoroszlai Jan 25, 2022
6180d21
HDDS-6128. CLI tool that downloads all the block replicas and creates…
dombizita Jan 25, 2022
3a16ebe
HDDS-6177. Extend container info command to include replica details …
sodonnel Jan 26, 2022
5823f56
HDDS-6211. [Docs] Image styling on deployed site does not replicate l…
JyotinderSingh Jan 27, 2022
d3b1a06
HDDS-6219. Switch to RATIS ReplicationType from STAND_ALONE in our te…
fapifta Jan 27, 2022
dc13410
HDDS-6192. feature/Observability.md translated to Chinese (#2994)
steinsgateted Jan 28, 2022
dc6f279
HDDS-6205. Add CLI command to display the latest Replication Manager …
sodonnel Jan 28, 2022
11605e1
HDDS-6227. Test helpers should observe naming conditions (#3020)
adoroszlai Jan 28, 2022
634d666
HDDS-6239. ozonesecure-mr failing with No URLs in mirrorlist (#3029)
adoroszlai Feb 1, 2022
5d496f2
HDDS-6201. Fix NPE for DataScanner with scanned container deleted by …
Feb 1, 2022
9186e6b
HDDS-5529. For any IOexception from @Replicated method we should thro…
Feb 2, 2022
1804e22
HDDS-6181. Change SCMHAInvocationHandler#invokeRatis() logging to TRA…
sky76093016 Feb 2, 2022
e47b6f0
HDDS-6206. Application errors must not flood system log (#3001)
kuenishi Feb 3, 2022
f757d99
HDDS-6245. Add BucketLayout logging to Audit Logs (#3040)
JyotinderSingh Feb 5, 2022
aafc21a
HDDS-6238 Reduce memory requirements for list keys. (#3032)
kerneltime Feb 6, 2022
7cee0ea
HDDS-2919. Intermittent failure in TestRDBStore (#3028)
adoroszlai Feb 7, 2022
5a35cab
HDDS-6253. Unnecessary duplicate smoketest after defaulting to FSO (#…
adoroszlai Feb 7, 2022
5b1dbeb
HDDS-6204. Cleanup handling malformed authorization header (#2999)
kuenishi Feb 7, 2022
b32e135
HDDS-6169. Selective checks: skip junit tests on ozone-runner image u…
adoroszlai Feb 8, 2022
14fa87c
HDDS-6270. Use a dedicated file instead of /etc/passwd for xcompat ac…
adoroszlai Feb 8, 2022
5c3aa01
HDDS-6273. Amend doc SecuringTDE.md (#3047)
smengcl Feb 8, 2022
c5fb612
HDDS-6140. Selective checks: skip unit check for integration-test cha…
adoroszlai Feb 8, 2022
11f4c9b
HDDS-6215. Recon get limited delta updates from OM (#3009)
symious Feb 9, 2022
40d0a40
HDDS-6226. Run tests for selective CI checks in CI (#3019)
adoroszlai Feb 9, 2022
86a771d
HDDS-6247. Avoid logging stack trace for user input problems (#3039)
adoroszlai Feb 9, 2022
de42c61
HDDS-6208. New checkstyle: WhitespaceAround (#3003)
smengcl Feb 9, 2022
ad6d3bc
HDDS-6289. Upgrade acceptance test log flooded with parse error (#3063)
adoroszlai Feb 9, 2022
f7b2dbd
Necessary due to CI workflow issue, HDDS-6239, impacting feature bran…
neils-dev Feb 10, 2022
e325916
Trigger Build
neils-dev Feb 11, 2022
666525e
Fix integration test for added configuation field for selecting OmTra…
neils-dev Feb 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/workflows/post-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ jobs:
steps:
- name: Checkout project
uses: actions/checkout@v2
if: matrix.check != 'bats'
- name: Checkout project with history
uses: actions/checkout@v2
with:
fetch-depth: 0
if: matrix.check == 'bats'
- name: Cache for maven dependencies
uses: actions/cache@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ hadoop-ozone/recon/node_modules
.mvn

.dev-tools

dev-support/ci/bats-assert
dev-support/ci/bats-support

hadoop-ozone/dist/src/main/license/current.txt
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ We welcome contributions of:
* Unit Tests (JUnit / Java)
* Acceptance Tests (docker + robot framework)
* Blockade tests (python + blockade)
* Performance: We have multiple type of load generator / benchmark tools (`ozone freon`, `ozone genesis`), which can be used to test cluster and report problems.
* Performance: We have multiple type of load generator / benchmark tools (`ozone freon`),
which can be used to test cluster and report problems.
* **Bug reports** pointing out broken functionality, docs, or suggestions for improvements are always welcome!

## Who To Contact
Expand Down
24 changes: 23 additions & 1 deletion dev-support/ci/selective_ci_checks.bats
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ load bats-assert/load.bash
assert_output -p needs-kubernetes-tests=true
}

@test "runner image update" {
run dev-support/ci/selective_ci_checks.sh b95eeba82a

assert_output -p 'basic-checks=["rat"]'
assert_output -p needs-build=true
assert_output -p needs-compose-tests=true
assert_output -p needs-dependency-check=true
assert_output -p needs-integration-tests=false
assert_output -p needs-kubernetes-tests=true
}

@test "check script" {
run dev-support/ci/selective_ci_checks.sh 316899152

Expand All @@ -77,10 +88,21 @@ load bats-assert/load.bash
assert_output -p needs-kubernetes-tests=true
}

@test "integration and unit" {
run dev-support/ci/selective_ci_checks.sh 9aebf6e25

assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs","unit"]'
assert_output -p needs-build=false
assert_output -p needs-compose-tests=false
assert_output -p needs-dependency-check=false
assert_output -p needs-integration-tests=true
assert_output -p needs-kubernetes-tests=false
}

@test "integration only" {
run dev-support/ci/selective_ci_checks.sh 61396ba9f

assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs","unit"]'
assert_output -p 'basic-checks=["rat","author","checkstyle","findbugs"]'
assert_output -p needs-build=false
assert_output -p needs-compose-tests=false
assert_output -p needs-dependency-check=false
Expand Down
21 changes: 19 additions & 2 deletions dev-support/ci/selective_ci_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ function get_count_compose_files() {
start_end::group_start "Count compose files"
local pattern_array=(
"^hadoop-ozone/dev-support/checks/acceptance.sh"
"^hadoop-ozone/dist/src/main/compose"
"^hadoop-ozone/dist"
)
local ignore_array=(
"^hadoop-ozone/dist/src/main/k8s"
)
filter_changed_files true
COUNT_COMPOSE_CHANGED_FILES=${match_count}
Expand Down Expand Up @@ -258,7 +261,10 @@ function get_count_kubernetes_files() {
start_end::group_start "Count kubernetes files"
local pattern_array=(
"^hadoop-ozone/dev-support/checks/kubernetes.sh"
"^hadoop-ozone/dist/src/main/k8s"
"^hadoop-ozone/dist"
)
local ignore_array=(
"^hadoop-ozone/dist/src/main/compose"
)
filter_changed_files true
COUNT_KUBERNETES_CHANGED_FILES=${match_count}
Expand Down Expand Up @@ -332,6 +338,9 @@ function check_needs_checkstyle() {
"pom.xml"
"src/..../java"
)
local ignore_array=(
"^hadoop-ozone/dist"
)
filter_changed_files

if [[ ${match_count} != "0" ]]; then
Expand Down Expand Up @@ -373,6 +382,9 @@ function check_needs_findbugs() {
"pom.xml"
"src/..../java"
)
local ignore_array=(
"^hadoop-ozone/dist"
)
filter_changed_files

if [[ ${match_count} != "0" ]]; then
Expand All @@ -391,6 +403,11 @@ function check_needs_unit_test() {
"src/..../java"
"src/..../resources"
)
local ignore_array=(
"^hadoop-ozone/dist"
"^hadoop-ozone/fault-injection-test/mini-chaos-tests"
"^hadoop-ozone/integration-test"
)
filter_changed_files

if [[ ${match_count} != "0" ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void connect(String encodedToken) throws Exception {

private synchronized void connectToDatanode(DatanodeDetails dn)
throws IOException {
if (isConnected(dn)){
if (isConnected(dn)) {
return;
}
// read port from the data node, on failure use default configured
Expand Down Expand Up @@ -269,10 +269,10 @@ public ContainerCommandResponseProto sendCommand(
Thread.currentThread().interrupt();
}
}
try{
try {
for (Map.Entry<DatanodeDetails,
CompletableFuture<ContainerCommandResponseProto> >
entry : futureHashMap.entrySet()){
entry : futureHashMap.entrySet()) {
responseProtoHashMap.put(entry.getKey(), entry.getValue().get());
}
} catch (InterruptedException e) {
Expand Down Expand Up @@ -538,7 +538,7 @@ public void onCompleted() {
}

private synchronized void checkOpen(DatanodeDetails dn)
throws IOException{
throws IOException {
if (closed) {
throw new IOException("This channel is not connected.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ public static void verifyKeyName(String keyName) {
if (keyName == null) {
throw new IllegalArgumentException("Key name is null");
}
if(!OzoneConsts.KEYNAME_ILLEGAL_CHARACTER_CHECK_REGEX
.matcher(keyName).matches()){
if (!OzoneConsts.KEYNAME_ILLEGAL_CHARACTER_CHECK_REGEX
.matcher(keyName).matches()) {
throw new IllegalArgumentException("Invalid key name: " + keyName);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public synchronized void initialize() throws IOException {
// retry according to retry policy.
chunks = getChunkInfos();
break;
} catch(SCMSecurityException ex) {
} catch (SCMSecurityException ex) {
throw ex;
} catch (StorageContainerException ex) {
refreshPipeline(ex);
Expand Down Expand Up @@ -340,9 +340,9 @@ synchronized int readWithStrategy(ByteReaderStrategy strategy) throws
} else {
throw e;
}
} catch(SCMSecurityException ex) {
} catch (SCMSecurityException ex) {
throw ex;
} catch(IOException ex) {
} catch (IOException ex) {
// We got a IOException which might be due
// to DN down or connectivity issue.
if (shouldRetryRead(ex)) {
Expand Down Expand Up @@ -512,7 +512,7 @@ synchronized long getBlockPosition() {
}

@Override
public void unbuffer() {
public synchronized void unbuffer() {
storePosition();
releaseClient();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public void flush() throws IOException {
} catch (Throwable e) {
String msg = "Failed to flush. error: " + e.getMessage();
LOG.error(msg, e);
throw new RuntimeException(msg, e);
throw e;
}
}
}
Expand Down Expand Up @@ -553,7 +553,7 @@ public void close() throws IOException {
} catch (Throwable e) {
String msg = "Failed to flush. error: " + e.getMessage();
LOG.error(msg, e);
throw new RuntimeException(msg, e);
throw e;
} finally {
cleanup(false);
}
Expand Down Expand Up @@ -708,7 +708,7 @@ private void handleInterruptedException(Exception ex,
boolean processExecutionException)
throws IOException {
LOG.error("Command execution was interrupted.");
if(processExecutionException) {
if (processExecutionException) {
handleExecutionException(ex);
} else {
throw new IOException(EXCEPTION_MSG + ex.toString(), ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public BufferPool(int bufferSize, int capacity) {
}

public BufferPool(int bufferSize, int capacity,
Function<ByteBuffer, ByteString> byteStringConversion){
Function<ByteBuffer, ByteString> byteStringConversion) {
this.capacity = capacity;
this.bufferSize = bufferSize;
bufferList = new ArrayList<>(capacity);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void releaseBuffersOnException() {

@Override
XceiverClientReply sendWatchForCommit(boolean bufferFull) throws IOException {
return bufferFull? commitWatcher.watchOnFirstIndex()
return bufferFull ? commitWatcher.watchOnFirstIndex()
: commitWatcher.watchOnLastIndex();
}

Expand Down
15 changes: 15 additions & 0 deletions hadoop-hdds/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,21 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.jaegertracing</groupId>
<artifactId>jaeger-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public final class HddsConfigKeys {
*/
public static final String HDDS_X509_MAX_DURATION = "hdds.x509.max.duration";
// Limit Certificate duration to a max value of 5 years.
public static final String HDDS_X509_MAX_DURATION_DEFAULT= "P1865D";
public static final String HDDS_X509_MAX_DURATION_DEFAULT = "P1865D";
public static final String HDDS_X509_SIGNATURE_ALGO =
"hdds.x509.signature.algorithm";
public static final String HDDS_X509_SIGNATURE_ALGO_DEFAULT = "SHA256withRSA";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public static long getShutDownTimeOut(ConfigurationSource conf) {
* Utility method to round up bytes into the nearest MB.
*/
public static int roundupMb(long bytes) {
return (int)Math.ceil((double) bytes/(double) ONE_MB);
return (int)Math.ceil((double) bytes / (double) ONE_MB);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ public static String createStartupShutdownMessage(VersionInfo versionInfo,

public static String appendIfNotPresent(String str, char c) {
Preconditions.checkNotNull(str, "Input string is null");
return str.isEmpty() || str.charAt(str.length() - 1) != c ? str + c: str;
return str.isEmpty() || str.charAt(str.length() - 1) != c ? str + c : str;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public final class InterfaceAudience {
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Public {};
public @interface Public { };

/**
* Intended only for the project(s) specified in the annotation.
Expand All @@ -67,7 +67,7 @@ public final class InterfaceAudience {
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Private {};
public @interface Private { };

private InterfaceAudience() {} // Audience can't exist on its own
private InterfaceAudience() { } // Audience can't exist on its own
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public final class OzoneQuota {
public static final String OZONE_QUOTA_TB = "TB";

/** Quota Units.*/
public enum Units {B, KB, MB, GB, TB}
public enum Units { B, KB, MB, GB, TB }

// Quota to decide how many buckets can be created.
private long quotaInNamespace;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ public class QuotaList {
private ArrayList<OzoneQuota.Units> unitQuota;
private ArrayList<Long> sizeQuota;

public QuotaList(){
public QuotaList() {
ozoneQuota = new ArrayList<String>();
unitQuota = new ArrayList<OzoneQuota.Units>();
sizeQuota = new ArrayList<Long>();
}

public void addQuotaList(String oQuota, OzoneQuota.Units uQuota, Long sQuota){
public void addQuotaList(
String oQuota, OzoneQuota.Units uQuota, Long sQuota) {
ozoneQuota.add(oQuota);
unitQuota.add(uQuota);
sizeQuota.add(sQuota);
Expand All @@ -52,15 +53,15 @@ public ArrayList<OzoneQuota.Units> getUnitQuotaArray() {
return this.unitQuota;
}

public OzoneQuota.Units getUnits(String oQuota){
public OzoneQuota.Units getUnits(String oQuota) {
return unitQuota.get(ozoneQuota.indexOf(oQuota));
}

public Long getQuotaSize(OzoneQuota.Units uQuota){
public Long getQuotaSize(OzoneQuota.Units uQuota) {
return sizeQuota.get(unitQuota.indexOf(uQuota));
}

public OzoneQuota.Units getQuotaUnit(Long sQuota){
public OzoneQuota.Units getQuotaUnit(Long sQuota) {
return unitQuota.get(sizeQuota.indexOf(sQuota));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public enum ReplicationFactor {
* @return ReplicationFactor
*/
public static ReplicationFactor valueOf(int value) {
if(value == 1) {
if (value == 1) {
return ONE;
}
if (value == 3) {
Expand Down
Loading