You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by wc...@apache.org on 2022/05/26 13:11:52 UTC
[hbase] branch branch-2.5 updated: HBASE-27061 two phase bulkload is broken when SFT is in use. (#4465)
This is an automated email from the ASF dual-hosted git repository.
wchevreuil pushed a commit to branch branch-2.5
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.5 by this push:
new c9fc396dfa HBASE-27061 two phase bulkload is broken when SFT is in use. (#4465)
c9fc396dfa is described below
commit c9fc396dfac0288829058b04aa9ddffec67caacf
Author: Sergey Soldatov <ss...@apache.org>
AuthorDate: Thu May 26 03:01:21 2022 -0700
HBASE-27061 two phase bulkload is broken when SFT is in use. (#4465)
Signed-off-by: Wellington Chevreuil <wc...@apache.org>
---
.../java/org/apache/hadoop/hbase/regionserver/HRegion.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index d2cdeea7fa..a18680efd5 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -353,7 +353,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
private final int rowLockWaitDuration;
static final int DEFAULT_ROWLOCK_WAIT_DURATION = 30000;
- private Path regionDir;
+ private Path regionWalDir;
private FileSystem walFS;
// set to true if the region is restored from snapshot
@@ -2051,11 +2051,11 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
* @throws IOException if there is an error getting WALRootDir
*/
public Path getWALRegionDir() throws IOException {
- if (regionDir == null) {
- regionDir = CommonFSUtils.getWALRegionDir(conf, getRegionInfo().getTable(),
+ if (regionWalDir == null) {
+ regionWalDir = CommonFSUtils.getWALRegionDir(conf, getRegionInfo().getTable(),
getRegionInfo().getEncodedName());
}
- return regionDir;
+ return regionWalDir;
}
@Override
@@ -6813,7 +6813,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
boolean reqTmp = store.storeEngine.requireWritingToTmpDirFirst();
if (bulkLoadListener != null) {
finalPath = bulkLoadListener.prepareBulkLoad(familyName, path, copyFile,
- reqTmp ? null : regionDir.toString());
+ reqTmp ? null : fs.getRegionDir().toString());
}
Pair<Path, Path> pair = null;
if (reqTmp) {