Skip to content

Conversation

@gvprathyusha6
Copy link
Contributor

…o file creation

@gvprathyusha6 gvprathyusha6 marked this pull request as draft October 22, 2025 14:56
@gvprathyusha6 gvprathyusha6 marked this pull request as ready for review October 25, 2025 03:48
FsPermission perms = CommonFSUtils.getFilePermissions(fs, conf, HConstants.DATA_FILE_UMASK_KEY);
// Write the RegionInfo file content
try (FSDataOutputStream out = FSUtils.create(conf, fs, regionInfoFile, perms, null)) {
try (FSDataOutputStream out = FSUtils.create(conf, fs, regionInfoFile, perms, null, false)) {
Copy link
Contributor

@apurtell apurtell Oct 27, 2025

Choose a reason for hiding this comment

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

Add a comment here why this change, providing the JIRA identifier. The reason not to recursively create directories is important, we don't want someone refactoring this code later to miss that.

@virajjasani
Copy link
Contributor

I know it's difficult but any possibility of creating some tests around this?

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.

3 participants