Skip to content

HDDS-14627. Code cleanup in TestVolumeSet#9769

Open
Russole wants to merge 1 commit intoapache:masterfrom
Russole:HDDS-14627
Open

HDDS-14627. Code cleanup in TestVolumeSet#9769
Russole wants to merge 1 commit intoapache:masterfrom
Russole:HDDS-14627

Conversation

@Russole
Copy link
Contributor

@Russole Russole commented Feb 15, 2026

What changes were proposed in this pull request?

  • Rename dataDirKey, since it's a config value, not key
  • Remove useless messages from assertions
  • Remove comments that repeat code in other words
  • Remove reference to "Add Volume", which no longer exists

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14627

How was this patch tested?

Copy link
Contributor

@Gargi-jais11 Gargi-jais11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Russole for the patch. Overall LGTM!
Just one comment to resolve.

assertEquals(2, volumeSet.getVolumesList().size());

// Add a volume to VolumeSet
String volume3 = baseDir + "disk3";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Let's make this consistent with how other volumes are added.

Suggested change
String volume3 = baseDir + "disk3";
String volume3 = baseDir.resolve("disk3").toString();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants