Skip to content

HDDS-10321. Merge recent commits from master to HDDS-7593 #6191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 148 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
799acbb
HDDS-10135. Bump os-maven-plugin to 1.7.1 (#5998)
dependabot[bot] Jan 16, 2024
8db644c
HDDS-10117. ChunkKeyHandler does not close XceiverClient in case of e…
adoroszlai Jan 16, 2024
0c98e3a
HDDS-10107. Remove the static dbNameToCfHandleMap from RocksDatabase.…
szetszwo Jan 16, 2024
db4e879
HDDS-10119. Assertions on object creationTime fail with Java 17 (#6008)
adoroszlai Jan 17, 2024
9e2b7a3
HDDS-9997. Add static import for assertions and mocks in misc. integr…
raju-balpande Jan 17, 2024
ccaf2df
HDDS-10130. TestSecureOzoneManager.testSecureOmInitFailure fails with…
adoroszlai Jan 17, 2024
1bd950f
HDDS-8492. Intermittent timeout in TestStorageContainerManager#testBl…
devmadhuu Jan 17, 2024
74c2a98
HDDS-10145. Bump hk2 to 2.6.1 (#5997)
dependabot[bot] Jan 17, 2024
68af7db
HDDS-10095. Move SCM tests to org.apache.hadoop.hdds.scm package hier…
adoroszlai Jan 17, 2024
737598c
HDDS-10131. TestTarContainerPacker fails with Java 17 (#6009)
adoroszlai Jan 17, 2024
fa98426
HDDS-9967. Intermittent failure in TestOzoneRpcClientAbstract.testLis…
devmadhuu Jan 17, 2024
50cd193
HDDS-10074. Migrate FS contract tests to JUnit5 (#5981)
adoroszlai Jan 18, 2024
48d547c
HDDS-10157. Download zlib fails with 403 Forbidden in CI (#6029)
adoroszlai Jan 18, 2024
3628aed
HDDS-3849. Add tests for show rule status of scm safemode (#6027)
sadanand48 Jan 18, 2024
7ab9fea
HDDS-10155. Use getOzoneKey when calculating the paths for keys (#6023)
kerneltime Jan 18, 2024
082d759
HDDS-8830. Add admin CLI to list open files (#5920)
smengcl Jan 19, 2024
0fa0671
HDDS-10134. Avoid false positive ManagedObject leak report (#6013)
adoroszlai Jan 19, 2024
04b6aa5
HDDS-10044. [hsync] File recovery support in Client (#5978)
ChenSammi Jan 19, 2024
900c6ff
HDDS-7558. Translate "Topology awareness" doc into Mandarin Chinese (…
david1859168 Jan 19, 2024
10a1dbf
HDDS-9506. Remove JUnit4 dependency (#6028)
adoroszlai Jan 19, 2024
5da02ba
HDDS-10139. Support to get hosts from stdin when DN is decommissionin…
YuanbenWang Jan 19, 2024
abc3e1f
HDDS-10138. NPE for SstFilteringService in OMDBCheckpointServlet.Lock…
ivandika3 Jan 19, 2024
2fa8d6c
HDDS-10159. Add test for putting key with ECReplicationConfig by shel…
YuanbenWang Jan 19, 2024
1c9f105
HDDS-9648. Create API to fetch info about a single datanode (#5856)
Tejaskriya Jan 19, 2024
d813fdf
HDDS-9944. NSSummary commands should close OzoneClient. (#6018)
devmadhuu Jan 19, 2024
1d19a95
HDDS-10126. Remove maxFlushedTransactionsInOneIteration from OzoneMan…
szetszwo Jan 19, 2024
6f6ec58
HDDS-10154. isKeyPresentInTable should use iterator constructor with …
kerneltime Jan 19, 2024
95d9222
HDDS-9968. Avoid using Files.createTempDirectory in AbstractReconSqlD…
devmadhuu Jan 20, 2024
361cd11
HDDS-10162. Fix metric names in OMPerformanceMetrics (#6035)
whbing Jan 20, 2024
32e82df
HDDS-10171. Fix checkstyle:parameternumber in OzoneManagerDoubleBuffe…
szetszwo Jan 20, 2024
d2eb1ed
HDDS-9051. Change level of log in NetworkTopologyImpl when no nodes a…
Tejaskriya Jan 20, 2024
dcdc47e
HDDS-10168. Add Ozone 1.4.0 to compatibility acceptance tests (#6040)
adoroszlai Jan 21, 2024
7d2864c
HDDS-10151. Replace single-use Random objects with RandomUtils in tes…
will-sh Jan 21, 2024
27c1f9c
HDDS-10014. Fixed internal error on generating S3 secret via HTTP (#5…
myskov Jan 21, 2024
4195ef5
HDDS-10080. Let junit.sh fail if no tests were matched in repeated ru…
adoroszlai Jan 22, 2024
9afd1a1
HDDS-9988. Show used storage percent in SCM UI (#5882)
jianghuazhu Jan 22, 2024
37213b7
HDDS-10178. Shaded Jar build failure in case-insensitive filesystem (…
adoroszlai Jan 22, 2024
9489d7e
HDDS-6796. Extract method for building OMRequest in TrashOzoneFileSys…
will-sh Jan 22, 2024
73e6f90
HDDS-9345. Add CapacityPipelineChoosePolicy considering datanode stor…
whbing Jan 22, 2024
2bf7135
Revert "HDDS-9426. Calculate Exclusive size for deep cleaned snapshot…
adoroszlai Jan 22, 2024
1d39089
HDDS-9288. Intermittent failure in TestSnapshotDeletingService#testMu…
hemantk-12 Jan 22, 2024
c24c313
HDDS-9998. Add static import for assertions and mocks in remaining oz…
raju-balpande Jan 22, 2024
8017823
HDDS-9181. Provide documentation for Decommissioning in Ozone in Mand…
david1859168 Jan 23, 2024
4bf33d6
HDDS-7557. Translate "Merge Container RocksDB in DN" doc into Mandari…
david1859168 Jan 23, 2024
4a686c6
HDDS-10186. Add static import for assertions and mocks (#6067)
adoroszlai Jan 23, 2024
ddce906
HDDS-10193. Bump maven-checkstyle-plugin to 3.3.1 (#6066)
dependabot[bot] Jan 23, 2024
305a176
HDDS-9751. [hsync] Make Putblock performance acceptable - DataNode si…
jojochuang Jan 23, 2024
cc293e6
HDDS-8005. Fixed intermittent failure in TestOmSnapshot.testSnapDiffW…
hemantk-12 Jan 23, 2024
422df39
HDDS-8649. Remove duplicate helper methods getDBMultipartOpenKey() (#…
ceekay47 Jan 23, 2024
3b99c03
HDDS-10175. Pre-build Ozone in flaky-test-check (#6043)
adoroszlai Jan 24, 2024
0f5de57
HDDS-10042. Show IDs of under-replicated and unclosed containers for …
Tejaskriya Jan 24, 2024
f39b34d
HDDS-10142. Add hidden command to set bucket encryption key to fix HD…
tanvipenumudy Jan 24, 2024
51a7eae
HDDS-10195. Bump re2j to 1.7 (#6063)
dependabot[bot] Jan 24, 2024
8835ccf
HDDS-10174. Enable Surefire process checker (#6075)
adoroszlai Jan 24, 2024
a9cc197
HDDS-10100. Improve assertTrue assertions in ozone-tools (#6081)
wzhallright Jan 24, 2024
2ed9760
HDDS-10121. GenericTestUtils.getFieldReflection fails with Java 17. (…
devmadhuu Jan 24, 2024
74fea96
HDDS-10079. Remove validation of test method in flaky-test-check (#5936)
adoroszlai Jan 24, 2024
776c01f
HDDS-10180. Update proto.lock from Ozone 1.4.0 (#6080)
adoroszlai Jan 24, 2024
54a75ca
HDDS-9387. [hsync] Reduce updating block length times at OM during hs…
ChenSammi Jan 25, 2024
9018728
HDDS-10184. Fix ManagedStatistics not closed properly (#6055)
whbing Jan 25, 2024
2e2d08e
HDDS-10141. [hsync] Support hard limit and auto recovery for hsync fi…
ashishkumar50 Jan 25, 2024
c302947
HDDS-8941. Intermittent timeout in TestContainerBalancerTask (#6082)
ArafatKhan2198 Jan 25, 2024
cc23ace
HDDS-9981. Improve assertTrue assertions in remaining hdds modules (#…
wzhallright Jan 25, 2024
6a129ac
HDDS-10198. Improve logging in AbstractFindTargetGreedy (#6090)
siddhantsangwan Jan 25, 2024
9238be3
HDDS-10200. OM may terminate due to NPE in `S3SecretValue` proto conv…
adoroszlai Jan 25, 2024
73f0194
HDDS-10202. OmMetadataManagerImpl creates new S3Batcher for each oper…
adoroszlai Jan 25, 2024
ac597ad
HDDS-10191. Fix some mismatches in LICENSE (#6076)
adoroszlai Jan 25, 2024
440cbf4
HDDS-10163. Import methods from Mockito, not ArgumentMatchers (#6095)
raju-balpande Jan 26, 2024
2e89fcf
HDDS-10199. Node.js 16 actions are deprecated (#6087)
adoroszlai Jan 26, 2024
305460d
HDDS-9524. Clean up wait for leader OM in integration tests (#6092)
david1859168 Jan 26, 2024
06362c0
HDDS-10197. Increase timeout for compile check (#6085)
adoroszlai Jan 26, 2024
1b6cad9
HDDS-10096. Improve assertTrue assertions in SCM integration tests (#…
wzhallright Jan 26, 2024
ea4769b
HDDS-10210. Ensure atomic update in StateContext#updateCommandStatus …
ivandika3 Jan 26, 2024
dd54a7a
HDDS-10204. TypedTable.putWithBatch may leak if conversion of value t…
adoroszlai Jan 26, 2024
11bc604
HDDS-10196. Group dependabot PRs for frontend dependencies (#6084)
adoroszlai Jan 26, 2024
21068a3
HDDS-10213. Improve assertTrue assertions in remaining integration-te…
wzhallright Jan 26, 2024
f5f737d
HDDS-10190. [hsync] Handle lease recovery for file without blocks. (#…
ashishkumar50 Jan 26, 2024
36fbe5b
HDDS-10216. Bump maven-jar-plugin to 3.3.0 (#6102)
dependabot[bot] Jan 26, 2024
d50776a
HDDS-10219. Bump frontend-maven-plugin to 1.15.0 (#6104)
dependabot[bot] Jan 26, 2024
2651d4c
HDDS-9930. Remove open keys as well when keys are deleted from KeyTab…
smengcl Jan 26, 2024
5983ccc
HDDS-10101. Set sonar.coverage.jacoco.xmlReportPaths (#5972)
adoroszlai Jan 27, 2024
d200c3c
HDDS-10223. Bump commons-math3 to 3.6.1 (#6105)
dependabot[bot] Jan 27, 2024
c1e9e91
HDDS-9905. Standardize nullability annotations (#6086)
adoroszlai Jan 27, 2024
2c0580d
HDDS-9486. Fix deadlock causing intermittent fork timeout in TestSnap…
hemantk-12 Jan 27, 2024
79d3c87
HDDS-9426. Calculate Exclusive size for deep cleaned snapshot's delet…
aswinshakil Jan 27, 2024
397f62f
HDDS-9645. Recon should exclude out-of-service nodes when checking fo…
xBis7 Jan 27, 2024
06a16e2
HDDS-10066. Consolidate and test the Ratis write path for prefix ACL …
ivandika3 Jan 27, 2024
6f529bc
HDDS-9985. Do not use Guava Optional (#6110)
adoroszlai Jan 27, 2024
f30275c
HDDS-9823. Pipeline failure should trigger heartbeat immediately (#5725)
ivandika3 Jan 29, 2024
9d46a3c
HDDS-10227. Intermittent timeout in TestReconAndAdminContainerCLI.com…
adoroszlai Jan 29, 2024
3a043ff
HDDS-10129. Remove version management of doxia-core and doxia-site-re…
dependabot[bot] Jan 29, 2024
b90d109
HDDS-10059. TestOMRatisSnapshots.testInstallSnapshot should only vali…
GeorgeJahad Jan 29, 2024
fc99132
HDDS-10183. Dynamic reconfiguration of replication server thread pool…
guohao-rosicky Jan 29, 2024
af9a72a
HDDS-10192. Verify container checksum after downloaded (#6078)
DaveTeng0 Jan 30, 2024
b532f81
HDDS-10077. Add hsync metadata to hsync'ed keys in OpenKeyTable as we…
smengcl Jan 30, 2024
86bbdfc
HDDS-10194. Upgrade Bouncy Castle to 1.77 (#6077)
adoroszlai Jan 30, 2024
95666eb
HDDS-10160. Cache sort results in ContainerBalancerSelectionCriteria …
symious Jan 30, 2024
7579bd0
HDDS-10228. Intermittent failure downloading bzip2 from sourceware.or…
adoroszlai Jan 30, 2024
1e6e6d1
HDDS-10225. Speed up TestSCMHAManagerImpl. (#6109)
adoroszlai Jan 30, 2024
4f6d3b8
HDDS-10224. Speed up TestRocksDBCheckpointDiffer (#6108)
adoroszlai Jan 30, 2024
04d6e0b
HDDS-10231. ContainerStateManager should not finalize OPEN containers…
nandakumar131 Jan 30, 2024
8ab0d07
HDDS-10215. Speed up some tests that use OmTestManagers (#6107)
adoroszlai Jan 30, 2024
41ea9fb
HDDS-10029. Improved logs for SCMDeletedBlockTransactionStatusManager…
xichen01 Jan 30, 2024
04d0853
HDDS-10232. Refactor some constructors in SCM to avoid too many param…
adoroszlai Jan 30, 2024
b3e8069
HDDS-10251. Intermittent failure in TestKeyDeletingService (#6129)
adoroszlai Jan 30, 2024
c9847df
HDDS-10241. Improve the response for the Deleted Directories Insight …
ArafatKhan2198 Jan 31, 2024
d2314a5
HDDS-10025. Add more function for Freon OmMetadataGenerator (#6037)
xichen01 Jan 31, 2024
fb2caac
HDDS-10164. Replace GenericTestUtils temp dirs with `@TempDir` in had…
wzhallright Jan 31, 2024
f065781
HDDS-10147. Migrate TestFinalizeBlock to JUnit5. (#6133)
ashishkumar50 Jan 31, 2024
e89fee3
HDDS-9658. NPE while cleanup deleted container data (#5964)
sumitagrawl Jan 31, 2024
5110a03
HDDS-10248. Remove unused, dead code in hdds-client module (#6126)
fapifta Jan 31, 2024
5748d40
HDDS-10260. Fix typos in OM HA documentation (#6134)
sarvekshayr Jan 31, 2024
b02741f
HDDS-8793. Added integration test to confirm prefix Acls work properl…
hemantk-12 Feb 1, 2024
d2b5b5d
HDDS-10263. Intermittent failure in freon/metadata-generate robot tes…
adoroszlai Feb 1, 2024
684d92b
HDDS-9401. Update last known layout version in SCMNodeManager#process…
nandakumar131 Feb 1, 2024
baae750
HDDS-10207. Simplify tests using assertThrows in hadoop-ozone (#6130)
wzhallright Feb 1, 2024
528fc92
HDDS-10246. Remove KeyValueHandler.checkContainerIsHealthy to improve…
whbing Feb 1, 2024
5f0925e
HDDS-10249 Remove unused, dead code in hdds-common module. (#6136)
fapifta Feb 1, 2024
6c7af5c
HDDS-10261. Fix typos in Architecture Documentation (#6141)
sarvekshayr Feb 1, 2024
361ad06
HDDS-9719. Add performance audit log for Datanode (#5660)
xichen01 Feb 1, 2024
ce4903d
HDDS-9288. Remove flaky tag from TestSnapshotDeletingService.testMult…
hemantk-12 Feb 1, 2024
f8d54b3
HDDS-10208. Simplify tests using assertThrows in hadoop-hdds (#6143)
wzhallright Feb 1, 2024
49df646
HDDS-10173. findbugs: Random object used only once in TestBlockOutput…
adoroszlai Feb 1, 2024
d5742ef
HDDS-10165. Replace GenericTestUtils temp dirs with `@TempDir` in ozo…
raju-balpande Feb 1, 2024
6f507c9
HDDS-10269. Remove duplicate addCacheEntry in OMDirectoryCreateReques…
ivandika3 Feb 1, 2024
6732b64
HDDS-10264. Allow running nested test classes in flaky-test-check (#6…
adoroszlai Feb 2, 2024
0fac57a
HDDS-9065. [FSO]ListKeys: Incorrect result when keyPrefix matching mu…
sadanand48 Feb 2, 2024
8936b63
HDDS-10279. Remove unused, dead code in hdds-config module. (#6152)
fapifta Feb 2, 2024
ddf53ca
HDDS-10271. Reduce verbosity of some SCM start-up logs (#6146)
nandakumar131 Feb 2, 2024
4ebbdcf
HDDS-10274. Remove unused code related to AccessPolicy (#6150)
adoroszlai Feb 3, 2024
3496935
HDDS-10217. Speed up TestKeyDeletingService (#6151)
adoroszlai Feb 3, 2024
228b64c
HDDS-10285. Remove unnecessary sleep in TestMiniOzoneCluster (#6156)
smengcl Feb 3, 2024
822c0de
HDDS-10148. TestOmSnapshotFsoWithNativeLib should be tagged as native…
adoroszlai Feb 4, 2024
cb313f6
HDDS-10272. Container Report admin command displays incorrect value i…
sodonnel Feb 4, 2024
80e9fb8
HDDS-10289. Remove unused MiniOzoneCluster.Builder properties (#6161)
adoroszlai Feb 5, 2024
68c6f71
HDDS-10287. Remove unused enableTrace from MiniOzoneCluster (#6159)
adoroszlai Feb 5, 2024
b37a59a
HDDS-10286. Remove unused RatisTestSuite (#6158)
adoroszlai Feb 5, 2024
5dd14ac
HDDS-10294. Actual client configuration ignored in ECReconstructionCo…
adoroszlai Feb 5, 2024
296d571
HDDS-10243. Replace GenericTestUtils temp dir in SCMTestUtils (#6154)
adoroszlai Feb 6, 2024
80cc0c5
HDDS-10302. Bump apache-rat-plugin to 0.16.1 (#6175)
dependabot[bot] Feb 6, 2024
a54d83e
HDDS-10277. Remove unnecessary fail() from tests (#6166)
wzhallright Feb 6, 2024
27f1923
HDDS-10303. Bump jaeger-client to 1.8.1 (#6173)
dependabot[bot] Feb 6, 2024
789c7f0
HDDS-10152. findbugs: Field should be static (#6168)
sarvekshayr Feb 6, 2024
60bcdaf
HDDS-10292. Extract configurator for size settings from MiniOzoneClus…
adoroszlai Feb 6, 2024
76a573a
HDDS-9752. [hsync] Make Putblock performance acceptable - Client side…
jojochuang Feb 7, 2024
c1d7b43
Merge remote-tracking branch 'asf/master' into HEAD
jojochuang Feb 7, 2024
1f028f0
Checkstyle
jojochuang Feb 7, 2024
8aa8a36
Force testIgnoreExpiredRecoverhsyncKeys() to run first so that the as…
jojochuang Feb 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
HDDS-10289. Remove unused MiniOzoneCluster.Builder properties (#6161)
  • Loading branch information
adoroszlai authored Feb 5, 2024
commit 80e9fb8fead07f8502ebc258fb39f4d849545d44
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.apache.hadoop.ozone.client.OzoneVolume;
import org.apache.hadoop.ozone.ha.ConfUtils;
import org.apache.hadoop.ozone.om.OMConfigKeys;
import org.apache.hadoop.ozone.om.OMStorage;
import org.apache.hadoop.ozone.om.OzoneManager;
import org.apache.hadoop.ozone.om.helpers.BucketLayout;
import org.apache.ozone.test.GenericTestUtils;
Expand All @@ -46,12 +45,13 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.api.io.TempDir;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.util.Optional;
import java.util.OptionalInt;
import java.util.UUID;

import static org.apache.hadoop.hdds.HddsUtils.getHostName;
import static org.apache.hadoop.hdds.HddsUtils.getHostPort;
Expand All @@ -73,10 +73,7 @@ public class TestOzoneFsHAURLs {

private OzoneConfiguration conf;
private static MiniOzoneCluster cluster;
private static String omId;
private static String omServiceId;
private static String clusterId;
private static String scmId;
private static OzoneManager om;
private static int numOfOMs;

Expand All @@ -98,33 +95,21 @@ public class TestOzoneFsHAURLs {


@BeforeAll
public static void initClass() throws Exception {
static void initClass(@TempDir File tempDir) throws Exception {
OzoneConfiguration conf = new OzoneConfiguration();
omId = UUID.randomUUID().toString();
omServiceId = "om-service-test1";
numOfOMs = 3;
clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();
final String path = GenericTestUtils.getTempPath(omId);
java.nio.file.Path metaDirPath = java.nio.file.Paths.get(path, "om-meta");
conf.set(HddsConfigKeys.OZONE_METADATA_DIRS, metaDirPath.toString());
conf.set(HddsConfigKeys.OZONE_METADATA_DIRS, tempDir.getAbsolutePath());
conf.setInt(ScmConfigKeys.OZONE_DATANODE_PIPELINE_LIMIT, 3);

conf.set(OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT,
BucketLayout.LEGACY.name());
conf.setBoolean(OMConfigKeys.OZONE_OM_ENABLE_FILESYSTEM_PATHS, true);

OMStorage omStore = new OMStorage(conf);
omStore.setClusterId(clusterId);
// writes the version file properties
omStore.initialize();

// Start the cluster
cluster = MiniOzoneCluster.newOMHABuilder(conf)
.setNumDatanodes(5)
.setTotalPipelineNumLimit(3)
.setClusterId(clusterId)
.setScmId(scmId)
.setOMServiceId(omServiceId)
.setNumOfOzoneManagers(numOfOMs)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.UUID;
import java.util.stream.Stream;

import org.apache.commons.io.FileUtils;
Expand Down Expand Up @@ -88,8 +87,6 @@ static void initClass() throws Exception {

// Start the cluster
cluster = MiniOzoneCluster.newOMHABuilder(conf)
.setClusterId(UUID.randomUUID().toString())
.setScmId(UUID.randomUUID().toString())
.setOMServiceId(OM_SERVICE_ID)
.setNumOfOzoneManagers(1)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

import java.io.IOException;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.TimeoutException;

import static org.apache.hadoop.hdds.protocol.proto.HddsProtos.ContainerBalancerConfigurationProto;
Expand All @@ -65,8 +64,6 @@
public class TestFailoverWithSCMHA {
private MiniOzoneHAClusterImpl cluster = null;
private OzoneConfiguration conf;
private String clusterId;
private String scmId;
private String omServiceId;
private String scmServiceId;
private int numOfOMs = 1;
Expand All @@ -82,15 +79,13 @@ public class TestFailoverWithSCMHA {
@BeforeEach
public void init() throws Exception {
conf = new OzoneConfiguration();
clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();
omServiceId = "om-service-test1";
scmServiceId = "scm-service-test1";
conf.setLong(ScmConfigKeys.OZONE_SCM_HA_RATIS_SNAPSHOT_THRESHOLD,
SNAPSHOT_THRESHOLD);

cluster = (MiniOzoneHAClusterImpl) MiniOzoneCluster.newHABuilder(conf)
.setClusterId(clusterId).setScmId(scmId).setOMServiceId(omServiceId)
.setOMServiceId(omServiceId)
.setSCMServiceId(scmServiceId).setNumOfOzoneManagers(numOfOMs)
.setNumOfStorageContainerManagers(numOfSCMs).setNumOfActiveSCMs(3)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import java.util.stream.Stream;

import org.apache.hadoop.hdds.conf.OzoneConfiguration;
Expand Down Expand Up @@ -81,9 +80,6 @@ public class TestSCMDbCheckpointServlet {
private StorageContainerManager scm;
private SCMMetrics scmMetrics;
private OzoneConfiguration conf;
private String clusterId;
private String scmId;
private String omId;
private HttpServletRequest requestMock;
private HttpServletResponse responseMock;
private String method;
Expand All @@ -100,14 +96,8 @@ public class TestSCMDbCheckpointServlet {
@BeforeEach
public void init() throws Exception {
conf = new OzoneConfiguration();
clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();
omId = UUID.randomUUID().toString();
conf.setBoolean(OZONE_ACL_ENABLED, true);
cluster = MiniOzoneCluster.newBuilder(conf)
.setClusterId(clusterId)
.setScmId(scmId)
.setOmId(omId)
.build();
cluster.waitForClusterToBeReady();
scm = cluster.getStorageContainerManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.TimeoutException;

import org.apache.commons.io.FileUtils;
Expand Down Expand Up @@ -71,8 +70,6 @@ public class TestSCMInstallSnapshotWithHA {

private MiniOzoneHAClusterImpl cluster = null;
private OzoneConfiguration conf;
private String clusterId;
private String scmId;
private String omServiceId;
private String scmServiceId;
private int numOfOMs = 1;
Expand All @@ -89,8 +86,6 @@ public class TestSCMInstallSnapshotWithHA {
@BeforeEach
public void init() throws Exception {
conf = new OzoneConfiguration();
clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();
omServiceId = "om-service-test1";
scmServiceId = "scm-service-test1";

Expand All @@ -100,8 +95,6 @@ public void init() throws Exception {
SNAPSHOT_THRESHOLD);

cluster = (MiniOzoneHAClusterImpl) MiniOzoneCluster.newHABuilder(conf)
.setClusterId(clusterId)
.setScmId(scmId)
.setOMServiceId(omServiceId)
.setSCMServiceId(scmServiceId)
.setNumOfOzoneManagers(numOfOMs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import java.util.UUID;

import static org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor.ONE;
import static org.apache.hadoop.hdds.protocol.proto.HddsProtos.ReplicationFactor.THREE;
import static org.assertj.core.api.Assertions.assertThat;
Expand All @@ -52,7 +50,6 @@ public static void setup() throws Exception {
cluster = MiniOzoneCluster
.newBuilder(conf)
.setNumDatanodes(3)
.setScmId(UUID.randomUUID().toString())
.build();
cluster.waitForClusterToBeReady();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.UUID;
import java.util.concurrent.TimeoutException;

import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION;
Expand Down Expand Up @@ -96,8 +95,6 @@ public final class TestSecretKeySnapshot {
private File ozoneKeytab;
private File spnegoKeytab;
private String host;
private String clusterId;
private String scmId;
private MiniOzoneHAClusterImpl cluster;

@BeforeEach
Expand All @@ -107,9 +104,6 @@ public void init() throws Exception {

ExitUtils.disableSystemExit();

clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();

startMiniKdc();
setSecureConfig();
createCredentialsInKDC();
Expand All @@ -125,9 +119,7 @@ public void init() throws Exception {
conf.set(HDDS_SECRET_KEY_EXPIRY_DURATION, EXPIRY_DURATION_MS + "ms");

MiniOzoneCluster.Builder builder = MiniOzoneCluster.newHABuilder(conf)
.setClusterId(clusterId)
.setSCMServiceId("TestSecretKeySnapshot")
.setScmId(scmId)
.setSCMServiceId("SCMServiceId")
.setNumDatanodes(1)
.setNumOfStorageContainerManagers(3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ public final class TestSecretKeysApi {
private File testUserKeytab;
private String testUserPrincipal;
private String ozonePrincipal;
private String clusterId;
private String scmId;
private MiniOzoneHAClusterImpl cluster;

@BeforeEach
Expand All @@ -111,9 +109,6 @@ public void init() throws Exception {
ExitUtils.disableSystemExit();
ExitUtil.disableSystemExit();

clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();

startMiniKdc();
setSecureConfig();
createCredentialsInKDC();
Expand Down Expand Up @@ -332,9 +327,7 @@ private void startCluster(int numSCMs)
throws IOException, TimeoutException, InterruptedException {
OzoneManager.setTestSecureOmFlag(true);
MiniOzoneCluster.Builder builder = MiniOzoneCluster.newHABuilder(conf)
.setClusterId(clusterId)
.setSCMServiceId("TestSecretKey")
.setScmId(scmId)
.setNumDatanodes(3)
.setNumOfStorageContainerManagers(numSCMs)
.setNumOfOzoneManagers(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public void testOldDNRegistersToReInitialisedSCM() throws Exception {
MiniOzoneCluster cluster =
MiniOzoneCluster.newBuilder(conf).setHbInterval(1000)
.setHbProcessorInterval(3000).setNumDatanodes(1)
.setClusterId(UUID.randomUUID().toString()).build();
.build();
cluster.waitForClusterToBeReady();

try {
Expand Down Expand Up @@ -776,7 +776,6 @@ public void testScmInfo() throws Exception {
@Test
public void testScmProcessDatanodeHeartbeat() throws Exception {
OzoneConfiguration conf = new OzoneConfiguration();
String scmId = UUID.randomUUID().toString();
conf.setClass(NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY,
StaticMapping.class, DNSToSwitchMapping.class);
StaticMapping.addNodeToRack(NetUtils.normalizeHostNames(
Expand All @@ -786,7 +785,6 @@ public void testScmProcessDatanodeHeartbeat() throws Exception {
final int datanodeNum = 3;
MiniOzoneCluster cluster = MiniOzoneCluster.newBuilder(conf)
.setNumDatanodes(datanodeNum)
.setScmId(scmId)
.build();
cluster.waitForClusterToBeReady();
StorageContainerManager scm = cluster.getStorageContainerManager();
Expand Down Expand Up @@ -1062,10 +1060,7 @@ public void testNonRatisToRatis()
throws IOException, AuthenticationException, InterruptedException,
TimeoutException {
final OzoneConfiguration conf = new OzoneConfiguration();
final String clusterID = UUID.randomUUID().toString();
try (MiniOzoneCluster cluster = MiniOzoneCluster.newBuilder(conf)
.setClusterId(clusterID)
.setScmId(UUID.randomUUID().toString())
.setNumDatanodes(3)
.build()) {
final StorageContainerManager nonRatisSCM = cluster
Expand All @@ -1077,7 +1072,7 @@ public void testNonRatisToRatis()

DefaultConfigManager.clearDefaultConfigs();
conf.setBoolean(ScmConfigKeys.OZONE_SCM_HA_ENABLE_KEY, true);
StorageContainerManager.scmInit(conf, clusterID);
StorageContainerManager.scmInit(conf, cluster.getClusterId());
cluster.restartStorageContainerManager(false);

final StorageContainerManager ratisSCM = cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public class TestStorageContainerManagerHA {

private MiniOzoneHAClusterImpl cluster = null;
private OzoneConfiguration conf;
private String clusterId;
private String scmId;
private String omServiceId;
private static int numOfOMs = 3;
private String scmServiceId;
Expand All @@ -95,13 +93,9 @@ public void init() throws Exception {
conf.set(ScmConfigKeys.OZONE_SCM_HA_DBTRANSACTIONBUFFER_FLUSH_INTERVAL,
"5s");
conf.set(ScmConfigKeys.OZONE_SCM_HA_RATIS_SNAPSHOT_GAP, "1");
clusterId = UUID.randomUUID().toString();
scmId = UUID.randomUUID().toString();
omServiceId = "om-service-test1";
scmServiceId = "scm-service-test1";
cluster = (MiniOzoneHAClusterImpl) MiniOzoneCluster.newHABuilder(conf)
.setClusterId(clusterId)
.setScmId(scmId)
.setOMServiceId(omServiceId)
.setSCMServiceId(scmServiceId)
.setNumOfStorageContainerManagers(numOfSCMs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ public class TestContainerCommandsEC {
private static ObjectStore store;
private static StorageContainerLocationProtocolClientSideTranslatorPB
storageContainerLocationClient;
private static final String SCM_ID = UUID.randomUUID().toString();
private static final String CLUSTER_ID = UUID.randomUUID().toString();
private static final int EC_DATA = 3;
private static final int EC_PARITY = 2;
private static final EcCodec EC_CODEC = EcCodec.RS;
Expand Down Expand Up @@ -926,7 +924,6 @@ public static void startCluster(OzoneConfiguration conf) throws Exception {
secretKeyClient = new SecretKeyTestClient();

cluster = MiniOzoneCluster.newBuilder(conf).setNumDatanodes(NUM_DN)
.setScmId(SCM_ID).setClusterId(CLUSTER_ID)
.setCertificateClient(certClient)
.setSecretKeyClient(secretKeyClient)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.util.UUID;
import java.util.concurrent.TimeoutException;
import java.util.function.Supplier;

Expand All @@ -51,12 +50,8 @@ static void setUp() throws IOException, InterruptedException,
TimeoutException {
OzoneConfiguration conf = new OzoneConfiguration();
conf.set(OZONE_METADATA_STORE_ROCKSDB_STATISTICS, "ALL");
String clusterId = UUID.randomUUID().toString();
String scmId = UUID.randomUUID().toString();
String omServiceId = "omServiceId1";
cluster = MiniOzoneCluster.newBuilder(conf)
.setClusterId(clusterId)
.setScmId(scmId)
.setOMServiceId(omServiceId)
.setNumOfOzoneManagers(1)
.build();
Expand Down
Loading