Skip to content

Commit

Permalink
reposition clusterMap initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvipenumudy committed Oct 11, 2023
1 parent 862dcd5 commit d42242a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,6 @@ private OzoneManager(OzoneConfiguration conf, StartupOption startupOption)
configuration);
this.ozoneLockProvider = new OzoneLockProvider(getKeyPathLockEnabled(),
getEnableFileSystemPaths());
clusterMap = new NetworkTopologyImpl(
scmBlockLocationClient.getTopologyInformation());

// For testing purpose only, not hit scm from om as Hadoop UGI can't login
// two principals in the same JVM.
Expand Down Expand Up @@ -1716,6 +1714,9 @@ public void start() throws IOException {
throw new UncheckedIOException(ex);
}

clusterMap = new NetworkTopologyImpl(
scmBlockLocationClient.getTopologyInformation());

try {
httpServer = new OzoneManagerHttpServer(configuration, this);
httpServer.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public void cleanup() throws Exception {
@Test
public void listMultipartUploadPartsWithZeroUpload() throws IOException {
//GIVEN
System.out.println(writeClient.refetchTopologyInformation());
createBucket(metadataManager, "vol1", "bucket1");

OmMultipartInfo omMultipartInfo =
Expand Down

0 comments on commit d42242a

Please sign in to comment.