[
https://issues.apache.org/jira/browse/HBASE-23838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17038716#comment-17038716
]
Michael Stack commented on HBASE-23838:
---------------------------------------
Added another logging addendum to see if can catch where hdfs comes into the
mix (though no hdfs clusters in test). Attached what I pushed.... as
0001-HBASE-23838-Adding-debug-logging-to-a-few-ExportSnap.patch.
Here are changes applied to master and branch-2:
{code}
>From 0c18fa983be70db49541c27e95896eba874ff0fe Mon Sep 17 00:00:00 2001
From: stack <[email protected]>
Date: Mon, 17 Feb 2020 17:17:40 -0800
Subject: [PATCH] HBASE-23838 Adding debug logging to a few ExportSnapshot
tests ADDENDUM 2: More logging to debug.
---
.../org/apache/hadoop/hbase/snapshot/ExportSnapshot.java | 4 ++--
.../apache/hadoop/hbase/snapshot/TestExportSnapshot.java | 9 ++++++---
.../hbase/snapshot/TestExportSnapshotV1NoCluster.java | 2 +-
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git
a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
index 36b75c43df..198ae97f9b 100644
---
a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
+++
b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java
@@ -978,8 +978,8 @@ public class ExportSnapshot extends AbstractHBaseTool
implements Tool {
Path outputSnapshotDir =
SnapshotDescriptionUtils.getCompletedSnapshotDir(targetName, outputRoot);
Path initialOutputSnapshotDir = skipTmp ? outputSnapshotDir :
snapshotTmpDir;
LOG.debug("inputFs={}, inputRoot={}", inputFs.getUri().toString(),
inputRoot);
- LOG.debug("outputFs={}, outputRoot={}, outputFs.getUri().toString(), " +
- "initialOutputSnapshotDir={}", outputRoot.toString(), skipTmp,
initialOutputSnapshotDir);
+ LOG.debug("outputFs={}, outputRoot={}, skipTmp={},
initialOutputSnapshotDir={}",
+ outputFs, outputRoot.toString(), skipTmp, initialOutputSnapshotDir);
// Find the necessary directory which need to change owner and group
Path needSetOwnerDir =
SnapshotDescriptionUtils.getSnapshotRootDir(outputRoot);
diff --git
a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java
b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java
index cfdca30f49..973e182133 100644
---
a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java
+++
b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java
@@ -87,13 +87,15 @@ public class TestExportSnapshot {
public static void setUpBaseConf(Configuration conf) {
conf.setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);
conf.setInt("hbase.regionserver.msginterval", 100);
+ // If a single node has enough failures (default 3), resource manager will
blacklist it.
+ // With only 2 nodes and tests injecting faults, we don't want that.
+ conf.setInt("mapreduce.job.maxtaskfailures.per.tracker", 100);
+ /*
conf.setInt("hbase.client.pause", 250);
conf.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);
conf.setBoolean("hbase.master.enabletable.roundrobin", true);
conf.setInt("mapreduce.map.maxattempts", 10);
- // If a single node has enough failures (default 3), resource manager will
blacklist it.
- // With only 2 nodes and tests injecting faults, we don't want that.
- conf.setInt("mapreduce.job.maxtaskfailures.per.tracker", 100);
+ */
}
@BeforeClass
@@ -213,6 +215,7 @@ public class TestExportSnapshot {
final RegionPredicate bypassregionPredicate, boolean success) throws
Exception {
URI hdfsUri = FileSystem.get(conf).getUri();
FileSystem fs = FileSystem.get(copyDir.toUri(), conf);
+ LOG.info("DEBUG FS {} {} {}, hdfsUri={}", fs, copyDir, copyDir.toUri(),
hdfsUri);
copyDir = copyDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());
List<String> opts = new ArrayList<>();
opts.add("--snapshot");
{code}
> Adding debug logging to a few ExportSnapshot tests
> --------------------------------------------------
>
> Key: HBASE-23838
> URL: https://issues.apache.org/jira/browse/HBASE-23838
> Project: HBase
> Issue Type: Bug
> Reporter: Michael Stack
> Assignee: Michael Stack
> Priority: Trivial
> Fix For: 3.0.0, 2.3.0
>
> Attachments:
> 0001-HBASE-23838-Adding-debug-logging-to-a-few-ExportSnap.patch,
> 0001-HBASE-23838-Adding-debug-logging-to-a-few-ExportSnap.patch
>
>
> Bit of extra logging in tests to help me diagnose where they are going wrong.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)