NihalJain commented on code in PR #6347:
URL: https://github.com/apache/hbase/pull/6347#discussion_r1804594690
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/SecureBulkLoadManager.java:
##########
@@ -278,6 +278,19 @@ public Map<byte[], List<Path>> run() {
if (!fs.exists(stageFamily)) {
fs.mkdirs(stageFamily);
fs.setPermission(stageFamily, PERM_ALL_ACCESS);
+ if (
+
conf.getBoolean(HConstants.BULKLOAD_COPYFILE_STORAGE_POLICY_ENABLED_KEY,
+
HConstants.BULKLOAD_COPYFILE_STORAGE_POLICY_ENABLED_DEFAULT)
+ && (!FSUtils.isSameHdfs(conf, new
Path(el.getSecond()).getFileSystem(conf), fs)
Review Comment:
In which scenario request.getCopyFile() will be true while
FSUtils.isSameHdfs will be true? When we are loading within same HDFS?
Does this check handle two case:
- Case 1: cross HDFS bulkload?
- Case 2: Within same HDFS bulkload but copyfile?
Description says we are handling only case 1 right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]