hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [02/41] hbase-site git commit: Published site at 82d554e3783372cc6b05489452c815b57c06f6cd.
Date Sat, 29 Apr 2017 14:58:39 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6fbeb554/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
index 52d93ac..093bcdb 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
@@ -28,8 +28,8 @@
 <span class="sourceLineNo">020</span><a name="line.20"></a>
 <span class="sourceLineNo">021</span>import static org.apache.hadoop.util.ToolRunner.run;<a name="line.21"></a>
 <span class="sourceLineNo">022</span>import static org.junit.Assert.assertEquals;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import static org.junit.Assert.assertTrue;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import static org.junit.Assert.assertFalse;<a name="line.24"></a>
+<span class="sourceLineNo">023</span>import static org.junit.Assert.assertFalse;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import static org.junit.Assert.assertTrue;<a name="line.24"></a>
 <span class="sourceLineNo">025</span><a name="line.25"></a>
 <span class="sourceLineNo">026</span>import java.io.IOException;<a name="line.26"></a>
 <span class="sourceLineNo">027</span>import java.net.URI;<a name="line.27"></a>
@@ -51,9 +51,9 @@
 <span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.TableName;<a name="line.43"></a>
 <span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.client.Admin;<a name="line.44"></a>
 <span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.master.snapshot.SnapshotManager;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.SnapshotDescription;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest;<a name="line.48"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.SnapshotDescription;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotRegionManifest;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.48"></a>
 <span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.testclassification.VerySlowMapReduceTests;<a name="line.49"></a>
 <span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.50"></a>
 <span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.util.FSUtils;<a name="line.51"></a>
@@ -104,292 +104,287 @@
 <span class="sourceLineNo">096</span>  @BeforeClass<a name="line.96"></a>
 <span class="sourceLineNo">097</span>  public static void setUpBeforeClass() throws Exception {<a name="line.97"></a>
 <span class="sourceLineNo">098</span>    setUpBaseConf(TEST_UTIL.getConfiguration());<a name="line.98"></a>
-<span class="sourceLineNo">099</span>    // Setup separate test-data directory for MR cluster and set corresponding configurations.<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    // Otherwise, different test classes running MR cluster can step on each other.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    TEST_UTIL.getDataTestDir();<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    TEST_UTIL.startMiniZKCluster();<a name="line.102"></a>
-<span class="sourceLineNo">103</span>    TEST_UTIL.startMiniMapReduceCluster();<a name="line.103"></a>
-<span class="sourceLineNo">104</span>    TEST_UTIL.startMiniHBaseCluster(1, 3);<a name="line.104"></a>
-<span class="sourceLineNo">105</span>  }<a name="line.105"></a>
-<span class="sourceLineNo">106</span><a name="line.106"></a>
-<span class="sourceLineNo">107</span>  @AfterClass<a name="line.107"></a>
-<span class="sourceLineNo">108</span>  public static void tearDownAfterClass() throws Exception {<a name="line.108"></a>
-<span class="sourceLineNo">109</span>    TEST_UTIL.shutdownMiniHBaseCluster();<a name="line.109"></a>
-<span class="sourceLineNo">110</span>    TEST_UTIL.shutdownMiniMapReduceCluster();<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    TEST_UTIL.shutdownMiniZKCluster();<a name="line.111"></a>
-<span class="sourceLineNo">112</span>  }<a name="line.112"></a>
-<span class="sourceLineNo">113</span><a name="line.113"></a>
-<span class="sourceLineNo">114</span>  /**<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   * Create a table and take a snapshot of the table used by the export test.<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   */<a name="line.116"></a>
-<span class="sourceLineNo">117</span>  @Before<a name="line.117"></a>
-<span class="sourceLineNo">118</span>  public void setUp() throws Exception {<a name="line.118"></a>
-<span class="sourceLineNo">119</span>    this.admin = TEST_UTIL.getAdmin();<a name="line.119"></a>
-<span class="sourceLineNo">120</span><a name="line.120"></a>
-<span class="sourceLineNo">121</span>    tableName = TableName.valueOf("testtb-" + testName.getMethodName());<a name="line.121"></a>
-<span class="sourceLineNo">122</span>    snapshotName = Bytes.toBytes("snaptb0-" + testName.getMethodName());<a name="line.122"></a>
-<span class="sourceLineNo">123</span>    emptySnapshotName = Bytes.toBytes("emptySnaptb0-" + testName.getMethodName());<a name="line.123"></a>
-<span class="sourceLineNo">124</span><a name="line.124"></a>
-<span class="sourceLineNo">125</span>    // create Table<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    createTable();<a name="line.126"></a>
-<span class="sourceLineNo">127</span><a name="line.127"></a>
-<span class="sourceLineNo">128</span>    // Take an empty snapshot<a name="line.128"></a>
-<span class="sourceLineNo">129</span>    admin.snapshot(emptySnapshotName, tableName);<a name="line.129"></a>
-<span class="sourceLineNo">130</span><a name="line.130"></a>
-<span class="sourceLineNo">131</span>    // Add some rows<a name="line.131"></a>
-<span class="sourceLineNo">132</span>    SnapshotTestingUtils.loadData(TEST_UTIL, tableName, 50, FAMILY);<a name="line.132"></a>
-<span class="sourceLineNo">133</span>    tableNumFiles = admin.getTableRegions(tableName).size();<a name="line.133"></a>
-<span class="sourceLineNo">134</span><a name="line.134"></a>
-<span class="sourceLineNo">135</span>    // take a snapshot<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    admin.snapshot(snapshotName, tableName);<a name="line.136"></a>
-<span class="sourceLineNo">137</span>  }<a name="line.137"></a>
-<span class="sourceLineNo">138</span><a name="line.138"></a>
-<span class="sourceLineNo">139</span>  protected void createTable() throws Exception {<a name="line.139"></a>
-<span class="sourceLineNo">140</span>    SnapshotTestingUtils.createPreSplitTable(TEST_UTIL, tableName, 2, FAMILY);<a name="line.140"></a>
-<span class="sourceLineNo">141</span>  }<a name="line.141"></a>
-<span class="sourceLineNo">142</span><a name="line.142"></a>
-<span class="sourceLineNo">143</span>  protected interface RegionPredicate {<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    boolean evaluate(final HRegionInfo regionInfo);<a name="line.144"></a>
-<span class="sourceLineNo">145</span>  }<a name="line.145"></a>
-<span class="sourceLineNo">146</span><a name="line.146"></a>
-<span class="sourceLineNo">147</span>  protected RegionPredicate getBypassRegionPredicate() {<a name="line.147"></a>
-<span class="sourceLineNo">148</span>    return null;<a name="line.148"></a>
-<span class="sourceLineNo">149</span>  }<a name="line.149"></a>
-<span class="sourceLineNo">150</span><a name="line.150"></a>
-<span class="sourceLineNo">151</span>  @After<a name="line.151"></a>
-<span class="sourceLineNo">152</span>  public void tearDown() throws Exception {<a name="line.152"></a>
-<span class="sourceLineNo">153</span>    TEST_UTIL.deleteTable(tableName);<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    SnapshotTestingUtils.deleteAllSnapshots(TEST_UTIL.getAdmin());<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    SnapshotTestingUtils.deleteArchiveDirectory(TEST_UTIL);<a name="line.155"></a>
-<span class="sourceLineNo">156</span>  }<a name="line.156"></a>
-<span class="sourceLineNo">157</span><a name="line.157"></a>
-<span class="sourceLineNo">158</span>  /**<a name="line.158"></a>
-<span class="sourceLineNo">159</span>   * Verify if exported snapshot and copied files matches the original one.<a name="line.159"></a>
-<span class="sourceLineNo">160</span>   */<a name="line.160"></a>
+<span class="sourceLineNo">099</span>    TEST_UTIL.startMiniCluster(1, 3);<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    TEST_UTIL.startMiniMapReduceCluster();<a name="line.100"></a>
+<span class="sourceLineNo">101</span>  }<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>  @AfterClass<a name="line.103"></a>
+<span class="sourceLineNo">104</span>  public static void tearDownAfterClass() throws Exception {<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    TEST_UTIL.shutdownMiniMapReduceCluster();<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    TEST_UTIL.shutdownMiniCluster();<a name="line.106"></a>
+<span class="sourceLineNo">107</span>  }<a name="line.107"></a>
+<span class="sourceLineNo">108</span><a name="line.108"></a>
+<span class="sourceLineNo">109</span>  /**<a name="line.109"></a>
+<span class="sourceLineNo">110</span>   * Create a table and take a snapshot of the table used by the export test.<a name="line.110"></a>
+<span class="sourceLineNo">111</span>   */<a name="line.111"></a>
+<span class="sourceLineNo">112</span>  @Before<a name="line.112"></a>
+<span class="sourceLineNo">113</span>  public void setUp() throws Exception {<a name="line.113"></a>
+<span class="sourceLineNo">114</span>    this.admin = TEST_UTIL.getAdmin();<a name="line.114"></a>
+<span class="sourceLineNo">115</span><a name="line.115"></a>
+<span class="sourceLineNo">116</span>    tableName = TableName.valueOf("testtb-" + testName.getMethodName());<a name="line.116"></a>
+<span class="sourceLineNo">117</span>    snapshotName = Bytes.toBytes("snaptb0-" + testName.getMethodName());<a name="line.117"></a>
+<span class="sourceLineNo">118</span>    emptySnapshotName = Bytes.toBytes("emptySnaptb0-" + testName.getMethodName());<a name="line.118"></a>
+<span class="sourceLineNo">119</span><a name="line.119"></a>
+<span class="sourceLineNo">120</span>    // create Table<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    createTable();<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span>    // Take an empty snapshot<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    admin.snapshot(emptySnapshotName, tableName);<a name="line.124"></a>
+<span class="sourceLineNo">125</span><a name="line.125"></a>
+<span class="sourceLineNo">126</span>    // Add some rows<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    SnapshotTestingUtils.loadData(TEST_UTIL, tableName, 50, FAMILY);<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    tableNumFiles = admin.getTableRegions(tableName).size();<a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span>    // take a snapshot<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    admin.snapshot(snapshotName, tableName);<a name="line.131"></a>
+<span class="sourceLineNo">132</span>  }<a name="line.132"></a>
+<span class="sourceLineNo">133</span><a name="line.133"></a>
+<span class="sourceLineNo">134</span>  protected void createTable() throws Exception {<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    SnapshotTestingUtils.createPreSplitTable(TEST_UTIL, tableName, 2, FAMILY);<a name="line.135"></a>
+<span class="sourceLineNo">136</span>  }<a name="line.136"></a>
+<span class="sourceLineNo">137</span><a name="line.137"></a>
+<span class="sourceLineNo">138</span>  protected interface RegionPredicate {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    boolean evaluate(final HRegionInfo regionInfo);<a name="line.139"></a>
+<span class="sourceLineNo">140</span>  }<a name="line.140"></a>
+<span class="sourceLineNo">141</span><a name="line.141"></a>
+<span class="sourceLineNo">142</span>  protected RegionPredicate getBypassRegionPredicate() {<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    return null;<a name="line.143"></a>
+<span class="sourceLineNo">144</span>  }<a name="line.144"></a>
+<span class="sourceLineNo">145</span><a name="line.145"></a>
+<span class="sourceLineNo">146</span>  @After<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  public void tearDown() throws Exception {<a name="line.147"></a>
+<span class="sourceLineNo">148</span>    TEST_UTIL.deleteTable(tableName);<a name="line.148"></a>
+<span class="sourceLineNo">149</span>    SnapshotTestingUtils.deleteAllSnapshots(TEST_UTIL.getAdmin());<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    SnapshotTestingUtils.deleteArchiveDirectory(TEST_UTIL);<a name="line.150"></a>
+<span class="sourceLineNo">151</span>  }<a name="line.151"></a>
+<span class="sourceLineNo">152</span><a name="line.152"></a>
+<span class="sourceLineNo">153</span>  /**<a name="line.153"></a>
+<span class="sourceLineNo">154</span>   * Verify if exported snapshot and copied files matches the original one.<a name="line.154"></a>
+<span class="sourceLineNo">155</span>   */<a name="line.155"></a>
+<span class="sourceLineNo">156</span>  @Test<a name="line.156"></a>
+<span class="sourceLineNo">157</span>  public void testExportFileSystemState() throws Exception {<a name="line.157"></a>
+<span class="sourceLineNo">158</span>    testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles);<a name="line.158"></a>
+<span class="sourceLineNo">159</span>  }<a name="line.159"></a>
+<span class="sourceLineNo">160</span><a name="line.160"></a>
 <span class="sourceLineNo">161</span>  @Test<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  public void testExportFileSystemState() throws Exception {<a name="line.162"></a>
-<span class="sourceLineNo">163</span>    testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles);<a name="line.163"></a>
-<span class="sourceLineNo">164</span>  }<a name="line.164"></a>
-<span class="sourceLineNo">165</span><a name="line.165"></a>
-<span class="sourceLineNo">166</span>  @Test<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  public void testExportFileSystemStateWithSkipTmp() throws Exception {<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    TEST_UTIL.getConfiguration().setBoolean(ExportSnapshot.CONF_SKIP_TMP, true);<a name="line.168"></a>
-<span class="sourceLineNo">169</span>    try {<a name="line.169"></a>
-<span class="sourceLineNo">170</span>      testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles);<a name="line.170"></a>
-<span class="sourceLineNo">171</span>    } finally {<a name="line.171"></a>
-<span class="sourceLineNo">172</span>      TEST_UTIL.getConfiguration().setBoolean(ExportSnapshot.CONF_SKIP_TMP, false);<a name="line.172"></a>
-<span class="sourceLineNo">173</span>    }<a name="line.173"></a>
+<span class="sourceLineNo">162</span>  public void testExportFileSystemStateWithSkipTmp() throws Exception {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>    TEST_UTIL.getConfiguration().setBoolean(ExportSnapshot.CONF_SKIP_TMP, true);<a name="line.163"></a>
+<span class="sourceLineNo">164</span>    try {<a name="line.164"></a>
+<span class="sourceLineNo">165</span>      testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles);<a name="line.165"></a>
+<span class="sourceLineNo">166</span>    } finally {<a name="line.166"></a>
+<span class="sourceLineNo">167</span>      TEST_UTIL.getConfiguration().setBoolean(ExportSnapshot.CONF_SKIP_TMP, false);<a name="line.167"></a>
+<span class="sourceLineNo">168</span>    }<a name="line.168"></a>
+<span class="sourceLineNo">169</span>  }<a name="line.169"></a>
+<span class="sourceLineNo">170</span><a name="line.170"></a>
+<span class="sourceLineNo">171</span>  @Test<a name="line.171"></a>
+<span class="sourceLineNo">172</span>  public void testEmptyExportFileSystemState() throws Exception {<a name="line.172"></a>
+<span class="sourceLineNo">173</span>    testExportFileSystemState(tableName, emptySnapshotName, emptySnapshotName, 0);<a name="line.173"></a>
 <span class="sourceLineNo">174</span>  }<a name="line.174"></a>
 <span class="sourceLineNo">175</span><a name="line.175"></a>
 <span class="sourceLineNo">176</span>  @Test<a name="line.176"></a>
-<span class="sourceLineNo">177</span>  public void testEmptyExportFileSystemState() throws Exception {<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    testExportFileSystemState(tableName, emptySnapshotName, emptySnapshotName, 0);<a name="line.178"></a>
-<span class="sourceLineNo">179</span>  }<a name="line.179"></a>
-<span class="sourceLineNo">180</span><a name="line.180"></a>
-<span class="sourceLineNo">181</span>  @Test<a name="line.181"></a>
-<span class="sourceLineNo">182</span>  public void testConsecutiveExports() throws Exception {<a name="line.182"></a>
-<span class="sourceLineNo">183</span>    Path copyDir = getLocalDestinationDir();<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles, copyDir, false);<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles, copyDir, true);<a name="line.185"></a>
-<span class="sourceLineNo">186</span>    removeExportDir(copyDir);<a name="line.186"></a>
-<span class="sourceLineNo">187</span>  }<a name="line.187"></a>
-<span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span>  @Test<a name="line.189"></a>
-<span class="sourceLineNo">190</span>  public void testExportWithTargetName() throws Exception {<a name="line.190"></a>
-<span class="sourceLineNo">191</span>    final byte[] targetName = Bytes.toBytes("testExportWithTargetName");<a name="line.191"></a>
-<span class="sourceLineNo">192</span>    testExportFileSystemState(tableName, snapshotName, targetName, tableNumFiles);<a name="line.192"></a>
-<span class="sourceLineNo">193</span>  }<a name="line.193"></a>
-<span class="sourceLineNo">194</span><a name="line.194"></a>
-<span class="sourceLineNo">195</span>  private void testExportFileSystemState(final TableName tableName, final byte[] snapshotName,<a name="line.195"></a>
-<span class="sourceLineNo">196</span>      final byte[] targetName, int filesExpected) throws Exception {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    testExportFileSystemState(tableName, snapshotName, targetName,<a name="line.197"></a>
-<span class="sourceLineNo">198</span>      filesExpected, getHdfsDestinationDir(), false);<a name="line.198"></a>
-<span class="sourceLineNo">199</span>  }<a name="line.199"></a>
-<span class="sourceLineNo">200</span><a name="line.200"></a>
-<span class="sourceLineNo">201</span>  protected void testExportFileSystemState(final TableName tableName,<a name="line.201"></a>
-<span class="sourceLineNo">202</span>      final byte[] snapshotName, final byte[] targetName, int filesExpected,<a name="line.202"></a>
-<span class="sourceLineNo">203</span>      Path copyDir, boolean overwrite) throws Exception {<a name="line.203"></a>
-<span class="sourceLineNo">204</span>    testExportFileSystemState(TEST_UTIL.getConfiguration(), tableName, snapshotName, targetName,<a name="line.204"></a>
-<span class="sourceLineNo">205</span>      filesExpected, TEST_UTIL.getDefaultRootDirPath(), copyDir,<a name="line.205"></a>
-<span class="sourceLineNo">206</span>      overwrite, getBypassRegionPredicate(), true);<a name="line.206"></a>
-<span class="sourceLineNo">207</span>  }<a name="line.207"></a>
-<span class="sourceLineNo">208</span><a name="line.208"></a>
-<span class="sourceLineNo">209</span>  /**<a name="line.209"></a>
-<span class="sourceLineNo">210</span>   * Creates destination directory, runs ExportSnapshot() tool, and runs some verifications.<a name="line.210"></a>
-<span class="sourceLineNo">211</span>   */<a name="line.211"></a>
-<span class="sourceLineNo">212</span>  protected static void testExportFileSystemState(final Configuration conf, final TableName tableName,<a name="line.212"></a>
-<span class="sourceLineNo">213</span>      final byte[] snapshotName, final byte[] targetName, final int filesExpected,<a name="line.213"></a>
-<span class="sourceLineNo">214</span>      final Path sourceDir, Path copyDir, final boolean overwrite,<a name="line.214"></a>
-<span class="sourceLineNo">215</span>      final RegionPredicate bypassregionPredicate, boolean success) throws Exception {<a name="line.215"></a>
-<span class="sourceLineNo">216</span>    URI hdfsUri = FileSystem.get(conf).getUri();<a name="line.216"></a>
-<span class="sourceLineNo">217</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.217"></a>
-<span class="sourceLineNo">218</span>    copyDir = copyDir.makeQualified(fs);<a name="line.218"></a>
-<span class="sourceLineNo">219</span><a name="line.219"></a>
-<span class="sourceLineNo">220</span>    List&lt;String&gt; opts = new ArrayList&lt;&gt;();<a name="line.220"></a>
-<span class="sourceLineNo">221</span>    opts.add("--snapshot");<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    opts.add(Bytes.toString(snapshotName));<a name="line.222"></a>
-<span class="sourceLineNo">223</span>    opts.add("--copy-to");<a name="line.223"></a>
-<span class="sourceLineNo">224</span>    opts.add(copyDir.toString());<a name="line.224"></a>
-<span class="sourceLineNo">225</span>    if (targetName != snapshotName) {<a name="line.225"></a>
-<span class="sourceLineNo">226</span>      opts.add("--target");<a name="line.226"></a>
-<span class="sourceLineNo">227</span>      opts.add(Bytes.toString(targetName));<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    }<a name="line.228"></a>
-<span class="sourceLineNo">229</span>    if (overwrite) opts.add("--overwrite");<a name="line.229"></a>
-<span class="sourceLineNo">230</span><a name="line.230"></a>
-<span class="sourceLineNo">231</span>    // Export Snapshot<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    int res = run(conf, new ExportSnapshot(), opts.toArray(new String[opts.size()]));<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    assertEquals(success ? 0 : 1, res);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    if (!success) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, Bytes.toString(targetName));<a name="line.235"></a>
-<span class="sourceLineNo">236</span>      assertFalse(fs.exists(new Path(copyDir, targetDir)));<a name="line.236"></a>
-<span class="sourceLineNo">237</span>      return;<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    }<a name="line.238"></a>
-<span class="sourceLineNo">239</span><a name="line.239"></a>
-<span class="sourceLineNo">240</span>    // Verify File-System state<a name="line.240"></a>
-<span class="sourceLineNo">241</span>    FileStatus[] rootFiles = fs.listStatus(copyDir);<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    assertEquals(filesExpected &gt; 0 ? 2 : 1, rootFiles.length);<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    for (FileStatus fileStatus: rootFiles) {<a name="line.243"></a>
-<span class="sourceLineNo">244</span>      String name = fileStatus.getPath().getName();<a name="line.244"></a>
-<span class="sourceLineNo">245</span>      assertTrue(fileStatus.isDirectory());<a name="line.245"></a>
-<span class="sourceLineNo">246</span>      assertTrue(name.equals(HConstants.SNAPSHOT_DIR_NAME) ||<a name="line.246"></a>
-<span class="sourceLineNo">247</span>                 name.equals(HConstants.HFILE_ARCHIVE_DIRECTORY));<a name="line.247"></a>
-<span class="sourceLineNo">248</span>    }<a name="line.248"></a>
-<span class="sourceLineNo">249</span><a name="line.249"></a>
-<span class="sourceLineNo">250</span>    // compare the snapshot metadata and verify the hfiles<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    final FileSystem hdfs = FileSystem.get(hdfsUri, conf);<a name="line.251"></a>
-<span class="sourceLineNo">252</span>    final Path snapshotDir = new Path(HConstants.SNAPSHOT_DIR_NAME, Bytes.toString(snapshotName));<a name="line.252"></a>
-<span class="sourceLineNo">253</span>    final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, Bytes.toString(targetName));<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    verifySnapshotDir(hdfs, new Path(sourceDir, snapshotDir),<a name="line.254"></a>
-<span class="sourceLineNo">255</span>        fs, new Path(copyDir, targetDir));<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    Set&lt;String&gt; snapshotFiles = verifySnapshot(conf, fs, copyDir, tableName,<a name="line.256"></a>
-<span class="sourceLineNo">257</span>      Bytes.toString(targetName), bypassregionPredicate);<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    assertEquals(filesExpected, snapshotFiles.size());<a name="line.258"></a>
-<span class="sourceLineNo">259</span>  }<a name="line.259"></a>
-<span class="sourceLineNo">260</span><a name="line.260"></a>
-<span class="sourceLineNo">261</span>  /**<a name="line.261"></a>
-<span class="sourceLineNo">262</span>   * Check that ExportSnapshot will succeed if something fails but the retry succeed.<a name="line.262"></a>
-<span class="sourceLineNo">263</span>   */<a name="line.263"></a>
-<span class="sourceLineNo">264</span>  @Test<a name="line.264"></a>
-<span class="sourceLineNo">265</span>  public void testExportRetry() throws Exception {<a name="line.265"></a>
-<span class="sourceLineNo">266</span>    Path copyDir = getLocalDestinationDir();<a name="line.266"></a>
-<span class="sourceLineNo">267</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.267"></a>
-<span class="sourceLineNo">268</span>    copyDir = copyDir.makeQualified(fs);<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.269"></a>
-<span class="sourceLineNo">270</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.270"></a>
-<span class="sourceLineNo">271</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 2);<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.272"></a>
-<span class="sourceLineNo">273</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.273"></a>
-<span class="sourceLineNo">274</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), true);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>  }<a name="line.275"></a>
-<span class="sourceLineNo">276</span><a name="line.276"></a>
-<span class="sourceLineNo">277</span>  /**<a name="line.277"></a>
-<span class="sourceLineNo">278</span>   * Check that ExportSnapshot will fail if we inject failure more times than MR will retry.<a name="line.278"></a>
-<span class="sourceLineNo">279</span>   */<a name="line.279"></a>
-<span class="sourceLineNo">280</span>  @Test<a name="line.280"></a>
-<span class="sourceLineNo">281</span>  public void testExportFailure() throws Exception {<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    Path copyDir = getLocalDestinationDir();<a name="line.282"></a>
-<span class="sourceLineNo">283</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    copyDir = copyDir.makeQualified(fs);<a name="line.284"></a>
-<span class="sourceLineNo">285</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.285"></a>
-<span class="sourceLineNo">286</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 4);<a name="line.287"></a>
-<span class="sourceLineNo">288</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.288"></a>
-<span class="sourceLineNo">289</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.289"></a>
-<span class="sourceLineNo">290</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), false);<a name="line.290"></a>
-<span class="sourceLineNo">291</span>  }<a name="line.291"></a>
-<span class="sourceLineNo">292</span><a name="line.292"></a>
-<span class="sourceLineNo">293</span>  /*<a name="line.293"></a>
-<span class="sourceLineNo">294</span>   * verify if the snapshot folder on file-system 1 match the one on file-system 2<a name="line.294"></a>
-<span class="sourceLineNo">295</span>   */<a name="line.295"></a>
-<span class="sourceLineNo">296</span>  protected static void verifySnapshotDir(final FileSystem fs1, final Path root1,<a name="line.296"></a>
-<span class="sourceLineNo">297</span>      final FileSystem fs2, final Path root2) throws IOException {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    assertEquals(listFiles(fs1, root1, root1), listFiles(fs2, root2, root2));<a name="line.298"></a>
-<span class="sourceLineNo">299</span>  }<a name="line.299"></a>
-<span class="sourceLineNo">300</span><a name="line.300"></a>
-<span class="sourceLineNo">301</span>  protected Set&lt;String&gt; verifySnapshot(final FileSystem fs, final Path rootDir,<a name="line.301"></a>
-<span class="sourceLineNo">302</span>      final TableName tableName, final String snapshotName) throws IOException {<a name="line.302"></a>
-<span class="sourceLineNo">303</span>    return verifySnapshot(TEST_UTIL.getConfiguration(), fs, rootDir, tableName,<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      snapshotName, getBypassRegionPredicate());<a name="line.304"></a>
-<span class="sourceLineNo">305</span>  }<a name="line.305"></a>
-<span class="sourceLineNo">306</span><a name="line.306"></a>
-<span class="sourceLineNo">307</span>  /*<a name="line.307"></a>
-<span class="sourceLineNo">308</span>   * Verify if the files exists<a name="line.308"></a>
-<span class="sourceLineNo">309</span>   */<a name="line.309"></a>
-<span class="sourceLineNo">310</span>  protected static Set&lt;String&gt; verifySnapshot(final Configuration conf, final FileSystem fs,<a name="line.310"></a>
-<span class="sourceLineNo">311</span>      final Path rootDir, final TableName tableName, final String snapshotName,<a name="line.311"></a>
-<span class="sourceLineNo">312</span>      final RegionPredicate bypassregionPredicate) throws IOException {<a name="line.312"></a>
-<span class="sourceLineNo">313</span>    final Path exportedSnapshot = new Path(rootDir,<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName));<a name="line.314"></a>
-<span class="sourceLineNo">315</span>    final Set&lt;String&gt; snapshotFiles = new HashSet&lt;&gt;();<a name="line.315"></a>
-<span class="sourceLineNo">316</span>    final Path exportedArchive = new Path(rootDir, HConstants.HFILE_ARCHIVE_DIRECTORY);<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    SnapshotReferenceUtil.visitReferencedFiles(conf, fs, exportedSnapshot,<a name="line.317"></a>
-<span class="sourceLineNo">318</span>          new SnapshotReferenceUtil.SnapshotVisitor() {<a name="line.318"></a>
-<span class="sourceLineNo">319</span>        @Override<a name="line.319"></a>
-<span class="sourceLineNo">320</span>        public void storeFile(final HRegionInfo regionInfo, final String family,<a name="line.320"></a>
-<span class="sourceLineNo">321</span>            final SnapshotRegionManifest.StoreFile storeFile) throws IOException {<a name="line.321"></a>
-<span class="sourceLineNo">322</span>          if (bypassregionPredicate != null &amp;&amp; bypassregionPredicate.evaluate(regionInfo))<a name="line.322"></a>
-<span class="sourceLineNo">323</span>            return;<a name="line.323"></a>
-<span class="sourceLineNo">324</span><a name="line.324"></a>
-<span class="sourceLineNo">325</span>          String hfile = storeFile.getName();<a name="line.325"></a>
-<span class="sourceLineNo">326</span>          snapshotFiles.add(hfile);<a name="line.326"></a>
-<span class="sourceLineNo">327</span>          if (storeFile.hasReference()) {<a name="line.327"></a>
-<span class="sourceLineNo">328</span>            // Nothing to do here, we have already the reference embedded<a name="line.328"></a>
-<span class="sourceLineNo">329</span>          } else {<a name="line.329"></a>
-<span class="sourceLineNo">330</span>            verifyNonEmptyFile(new Path(exportedArchive,<a name="line.330"></a>
-<span class="sourceLineNo">331</span>              new Path(FSUtils.getTableDir(new Path("./"), tableName),<a name="line.331"></a>
-<span class="sourceLineNo">332</span>                  new Path(regionInfo.getEncodedName(), new Path(family, hfile)))));<a name="line.332"></a>
-<span class="sourceLineNo">333</span>          }<a name="line.333"></a>
+<span class="sourceLineNo">177</span>  public void testConsecutiveExports() throws Exception {<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    Path copyDir = getLocalDestinationDir();<a name="line.178"></a>
+<span class="sourceLineNo">179</span>    testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles, copyDir, false);<a name="line.179"></a>
+<span class="sourceLineNo">180</span>    testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles, copyDir, true);<a name="line.180"></a>
+<span class="sourceLineNo">181</span>    removeExportDir(copyDir);<a name="line.181"></a>
+<span class="sourceLineNo">182</span>  }<a name="line.182"></a>
+<span class="sourceLineNo">183</span><a name="line.183"></a>
+<span class="sourceLineNo">184</span>  @Test<a name="line.184"></a>
+<span class="sourceLineNo">185</span>  public void testExportWithTargetName() throws Exception {<a name="line.185"></a>
+<span class="sourceLineNo">186</span>    final byte[] targetName = Bytes.toBytes("testExportWithTargetName");<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    testExportFileSystemState(tableName, snapshotName, targetName, tableNumFiles);<a name="line.187"></a>
+<span class="sourceLineNo">188</span>  }<a name="line.188"></a>
+<span class="sourceLineNo">189</span><a name="line.189"></a>
+<span class="sourceLineNo">190</span>  private void testExportFileSystemState(final TableName tableName, final byte[] snapshotName,<a name="line.190"></a>
+<span class="sourceLineNo">191</span>      final byte[] targetName, int filesExpected) throws Exception {<a name="line.191"></a>
+<span class="sourceLineNo">192</span>    testExportFileSystemState(tableName, snapshotName, targetName,<a name="line.192"></a>
+<span class="sourceLineNo">193</span>      filesExpected, getHdfsDestinationDir(), false);<a name="line.193"></a>
+<span class="sourceLineNo">194</span>  }<a name="line.194"></a>
+<span class="sourceLineNo">195</span><a name="line.195"></a>
+<span class="sourceLineNo">196</span>  protected void testExportFileSystemState(final TableName tableName,<a name="line.196"></a>
+<span class="sourceLineNo">197</span>      final byte[] snapshotName, final byte[] targetName, int filesExpected,<a name="line.197"></a>
+<span class="sourceLineNo">198</span>      Path copyDir, boolean overwrite) throws Exception {<a name="line.198"></a>
+<span class="sourceLineNo">199</span>    testExportFileSystemState(TEST_UTIL.getConfiguration(), tableName, snapshotName, targetName,<a name="line.199"></a>
+<span class="sourceLineNo">200</span>      filesExpected, TEST_UTIL.getDefaultRootDirPath(), copyDir,<a name="line.200"></a>
+<span class="sourceLineNo">201</span>      overwrite, getBypassRegionPredicate(), true);<a name="line.201"></a>
+<span class="sourceLineNo">202</span>  }<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>  /**<a name="line.204"></a>
+<span class="sourceLineNo">205</span>   * Creates destination directory, runs ExportSnapshot() tool, and runs some verifications.<a name="line.205"></a>
+<span class="sourceLineNo">206</span>   */<a name="line.206"></a>
+<span class="sourceLineNo">207</span>  protected static void testExportFileSystemState(final Configuration conf, final TableName tableName,<a name="line.207"></a>
+<span class="sourceLineNo">208</span>      final byte[] snapshotName, final byte[] targetName, final int filesExpected,<a name="line.208"></a>
+<span class="sourceLineNo">209</span>      final Path sourceDir, Path copyDir, final boolean overwrite,<a name="line.209"></a>
+<span class="sourceLineNo">210</span>      final RegionPredicate bypassregionPredicate, boolean success) throws Exception {<a name="line.210"></a>
+<span class="sourceLineNo">211</span>    URI hdfsUri = FileSystem.get(conf).getUri();<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.212"></a>
+<span class="sourceLineNo">213</span>    copyDir = copyDir.makeQualified(fs);<a name="line.213"></a>
+<span class="sourceLineNo">214</span><a name="line.214"></a>
+<span class="sourceLineNo">215</span>    List&lt;String&gt; opts = new ArrayList&lt;&gt;();<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    opts.add("--snapshot");<a name="line.216"></a>
+<span class="sourceLineNo">217</span>    opts.add(Bytes.toString(snapshotName));<a name="line.217"></a>
+<span class="sourceLineNo">218</span>    opts.add("--copy-to");<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    opts.add(copyDir.toString());<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    if (targetName != snapshotName) {<a name="line.220"></a>
+<span class="sourceLineNo">221</span>      opts.add("--target");<a name="line.221"></a>
+<span class="sourceLineNo">222</span>      opts.add(Bytes.toString(targetName));<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    }<a name="line.223"></a>
+<span class="sourceLineNo">224</span>    if (overwrite) opts.add("--overwrite");<a name="line.224"></a>
+<span class="sourceLineNo">225</span><a name="line.225"></a>
+<span class="sourceLineNo">226</span>    // Export Snapshot<a name="line.226"></a>
+<span class="sourceLineNo">227</span>    int res = run(conf, new ExportSnapshot(), opts.toArray(new String[opts.size()]));<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    assertEquals(success ? 0 : 1, res);<a name="line.228"></a>
+<span class="sourceLineNo">229</span>    if (!success) {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>      final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, Bytes.toString(targetName));<a name="line.230"></a>
+<span class="sourceLineNo">231</span>      assertFalse(fs.exists(new Path(copyDir, targetDir)));<a name="line.231"></a>
+<span class="sourceLineNo">232</span>      return;<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    }<a name="line.233"></a>
+<span class="sourceLineNo">234</span><a name="line.234"></a>
+<span class="sourceLineNo">235</span>    // Verify File-System state<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    FileStatus[] rootFiles = fs.listStatus(copyDir);<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    assertEquals(filesExpected &gt; 0 ? 2 : 1, rootFiles.length);<a name="line.237"></a>
+<span class="sourceLineNo">238</span>    for (FileStatus fileStatus: rootFiles) {<a name="line.238"></a>
+<span class="sourceLineNo">239</span>      String name = fileStatus.getPath().getName();<a name="line.239"></a>
+<span class="sourceLineNo">240</span>      assertTrue(fileStatus.isDirectory());<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      assertTrue(name.equals(HConstants.SNAPSHOT_DIR_NAME) ||<a name="line.241"></a>
+<span class="sourceLineNo">242</span>                 name.equals(HConstants.HFILE_ARCHIVE_DIRECTORY));<a name="line.242"></a>
+<span class="sourceLineNo">243</span>    }<a name="line.243"></a>
+<span class="sourceLineNo">244</span><a name="line.244"></a>
+<span class="sourceLineNo">245</span>    // compare the snapshot metadata and verify the hfiles<a name="line.245"></a>
+<span class="sourceLineNo">246</span>    final FileSystem hdfs = FileSystem.get(hdfsUri, conf);<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    final Path snapshotDir = new Path(HConstants.SNAPSHOT_DIR_NAME, Bytes.toString(snapshotName));<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, Bytes.toString(targetName));<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    verifySnapshotDir(hdfs, new Path(sourceDir, snapshotDir),<a name="line.249"></a>
+<span class="sourceLineNo">250</span>        fs, new Path(copyDir, targetDir));<a name="line.250"></a>
+<span class="sourceLineNo">251</span>    Set&lt;String&gt; snapshotFiles = verifySnapshot(conf, fs, copyDir, tableName,<a name="line.251"></a>
+<span class="sourceLineNo">252</span>      Bytes.toString(targetName), bypassregionPredicate);<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    assertEquals(filesExpected, snapshotFiles.size());<a name="line.253"></a>
+<span class="sourceLineNo">254</span>  }<a name="line.254"></a>
+<span class="sourceLineNo">255</span><a name="line.255"></a>
+<span class="sourceLineNo">256</span>  /**<a name="line.256"></a>
+<span class="sourceLineNo">257</span>   * Check that ExportSnapshot will succeed if something fails but the retry succeed.<a name="line.257"></a>
+<span class="sourceLineNo">258</span>   */<a name="line.258"></a>
+<span class="sourceLineNo">259</span>  @Test<a name="line.259"></a>
+<span class="sourceLineNo">260</span>  public void testExportRetry() throws Exception {<a name="line.260"></a>
+<span class="sourceLineNo">261</span>    Path copyDir = getLocalDestinationDir();<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    copyDir = copyDir.makeQualified(fs);<a name="line.263"></a>
+<span class="sourceLineNo">264</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.264"></a>
+<span class="sourceLineNo">265</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.265"></a>
+<span class="sourceLineNo">266</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 2);<a name="line.266"></a>
+<span class="sourceLineNo">267</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.267"></a>
+<span class="sourceLineNo">268</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.268"></a>
+<span class="sourceLineNo">269</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), true);<a name="line.269"></a>
+<span class="sourceLineNo">270</span>  }<a name="line.270"></a>
+<span class="sourceLineNo">271</span><a name="line.271"></a>
+<span class="sourceLineNo">272</span>  /**<a name="line.272"></a>
+<span class="sourceLineNo">273</span>   * Check that ExportSnapshot will fail if we inject failure more times than MR will retry.<a name="line.273"></a>
+<span class="sourceLineNo">274</span>   */<a name="line.274"></a>
+<span class="sourceLineNo">275</span>  @Test<a name="line.275"></a>
+<span class="sourceLineNo">276</span>  public void testExportFailure() throws Exception {<a name="line.276"></a>
+<span class="sourceLineNo">277</span>    Path copyDir = getLocalDestinationDir();<a name="line.277"></a>
+<span class="sourceLineNo">278</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.278"></a>
+<span class="sourceLineNo">279</span>    copyDir = copyDir.makeQualified(fs);<a name="line.279"></a>
+<span class="sourceLineNo">280</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.280"></a>
+<span class="sourceLineNo">281</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 4);<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.283"></a>
+<span class="sourceLineNo">284</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.284"></a>
+<span class="sourceLineNo">285</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), false);<a name="line.285"></a>
+<span class="sourceLineNo">286</span>  }<a name="line.286"></a>
+<span class="sourceLineNo">287</span><a name="line.287"></a>
+<span class="sourceLineNo">288</span>  /*<a name="line.288"></a>
+<span class="sourceLineNo">289</span>   * verify if the snapshot folder on file-system 1 match the one on file-system 2<a name="line.289"></a>
+<span class="sourceLineNo">290</span>   */<a name="line.290"></a>
+<span class="sourceLineNo">291</span>  protected static void verifySnapshotDir(final FileSystem fs1, final Path root1,<a name="line.291"></a>
+<span class="sourceLineNo">292</span>      final FileSystem fs2, final Path root2) throws IOException {<a name="line.292"></a>
+<span class="sourceLineNo">293</span>    assertEquals(listFiles(fs1, root1, root1), listFiles(fs2, root2, root2));<a name="line.293"></a>
+<span class="sourceLineNo">294</span>  }<a name="line.294"></a>
+<span class="sourceLineNo">295</span><a name="line.295"></a>
+<span class="sourceLineNo">296</span>  protected Set&lt;String&gt; verifySnapshot(final FileSystem fs, final Path rootDir,<a name="line.296"></a>
+<span class="sourceLineNo">297</span>      final TableName tableName, final String snapshotName) throws IOException {<a name="line.297"></a>
+<span class="sourceLineNo">298</span>    return verifySnapshot(TEST_UTIL.getConfiguration(), fs, rootDir, tableName,<a name="line.298"></a>
+<span class="sourceLineNo">299</span>      snapshotName, getBypassRegionPredicate());<a name="line.299"></a>
+<span class="sourceLineNo">300</span>  }<a name="line.300"></a>
+<span class="sourceLineNo">301</span><a name="line.301"></a>
+<span class="sourceLineNo">302</span>  /*<a name="line.302"></a>
+<span class="sourceLineNo">303</span>   * Verify if the files exists<a name="line.303"></a>
+<span class="sourceLineNo">304</span>   */<a name="line.304"></a>
+<span class="sourceLineNo">305</span>  protected static Set&lt;String&gt; verifySnapshot(final Configuration conf, final FileSystem fs,<a name="line.305"></a>
+<span class="sourceLineNo">306</span>      final Path rootDir, final TableName tableName, final String snapshotName,<a name="line.306"></a>
+<span class="sourceLineNo">307</span>      final RegionPredicate bypassregionPredicate) throws IOException {<a name="line.307"></a>
+<span class="sourceLineNo">308</span>    final Path exportedSnapshot = new Path(rootDir,<a name="line.308"></a>
+<span class="sourceLineNo">309</span>      new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName));<a name="line.309"></a>
+<span class="sourceLineNo">310</span>    final Set&lt;String&gt; snapshotFiles = new HashSet&lt;&gt;();<a name="line.310"></a>
+<span class="sourceLineNo">311</span>    final Path exportedArchive = new Path(rootDir, HConstants.HFILE_ARCHIVE_DIRECTORY);<a name="line.311"></a>
+<span class="sourceLineNo">312</span>    SnapshotReferenceUtil.visitReferencedFiles(conf, fs, exportedSnapshot,<a name="line.312"></a>
+<span class="sourceLineNo">313</span>          new SnapshotReferenceUtil.SnapshotVisitor() {<a name="line.313"></a>
+<span class="sourceLineNo">314</span>        @Override<a name="line.314"></a>
+<span class="sourceLineNo">315</span>        public void storeFile(final HRegionInfo regionInfo, final String family,<a name="line.315"></a>
+<span class="sourceLineNo">316</span>            final SnapshotRegionManifest.StoreFile storeFile) throws IOException {<a name="line.316"></a>
+<span class="sourceLineNo">317</span>          if (bypassregionPredicate != null &amp;&amp; bypassregionPredicate.evaluate(regionInfo))<a name="line.317"></a>
+<span class="sourceLineNo">318</span>            return;<a name="line.318"></a>
+<span class="sourceLineNo">319</span><a name="line.319"></a>
+<span class="sourceLineNo">320</span>          String hfile = storeFile.getName();<a name="line.320"></a>
+<span class="sourceLineNo">321</span>          snapshotFiles.add(hfile);<a name="line.321"></a>
+<span class="sourceLineNo">322</span>          if (storeFile.hasReference()) {<a name="line.322"></a>
+<span class="sourceLineNo">323</span>            // Nothing to do here, we have already the reference embedded<a name="line.323"></a>
+<span class="sourceLineNo">324</span>          } else {<a name="line.324"></a>
+<span class="sourceLineNo">325</span>            verifyNonEmptyFile(new Path(exportedArchive,<a name="line.325"></a>
+<span class="sourceLineNo">326</span>              new Path(FSUtils.getTableDir(new Path("./"), tableName),<a name="line.326"></a>
+<span class="sourceLineNo">327</span>                  new Path(regionInfo.getEncodedName(), new Path(family, hfile)))));<a name="line.327"></a>
+<span class="sourceLineNo">328</span>          }<a name="line.328"></a>
+<span class="sourceLineNo">329</span>        }<a name="line.329"></a>
+<span class="sourceLineNo">330</span><a name="line.330"></a>
+<span class="sourceLineNo">331</span>        private void verifyNonEmptyFile(final Path path) throws IOException {<a name="line.331"></a>
+<span class="sourceLineNo">332</span>          assertTrue(path + " should exists", fs.exists(path));<a name="line.332"></a>
+<span class="sourceLineNo">333</span>          assertTrue(path + " should not be empty", fs.getFileStatus(path).getLen() &gt; 0);<a name="line.333"></a>
 <span class="sourceLineNo">334</span>        }<a name="line.334"></a>
-<span class="sourceLineNo">335</span><a name="line.335"></a>
-<span class="sourceLineNo">336</span>        private void verifyNonEmptyFile(final Path path) throws IOException {<a name="line.336"></a>
-<span class="sourceLineNo">337</span>          assertTrue(path + " should exists", fs.exists(path));<a name="line.337"></a>
-<span class="sourceLineNo">338</span>          assertTrue(path + " should not be empty", fs.getFileStatus(path).getLen() &gt; 0);<a name="line.338"></a>
-<span class="sourceLineNo">339</span>        }<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    });<a name="line.340"></a>
-<span class="sourceLineNo">341</span><a name="line.341"></a>
-<span class="sourceLineNo">342</span>    // Verify Snapshot description<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    SnapshotDescription desc = SnapshotDescriptionUtils.readSnapshotInfo(fs, exportedSnapshot);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    assertTrue(desc.getName().equals(snapshotName));<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    assertTrue(desc.getTable().equals(tableName.getNameAsString()));<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    return snapshotFiles;<a name="line.346"></a>
-<span class="sourceLineNo">347</span>  }<a name="line.347"></a>
-<span class="sourceLineNo">348</span><a name="line.348"></a>
-<span class="sourceLineNo">349</span>  private static Set&lt;String&gt; listFiles(final FileSystem fs, final Path root, final Path dir)<a name="line.349"></a>
-<span class="sourceLineNo">350</span>      throws IOException {<a name="line.350"></a>
-<span class="sourceLineNo">351</span>    Set&lt;String&gt; files = new HashSet&lt;&gt;();<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    int rootPrefix = root.makeQualified(fs).toString().length();<a name="line.352"></a>
-<span class="sourceLineNo">353</span>    FileStatus[] list = FSUtils.listStatus(fs, dir);<a name="line.353"></a>
-<span class="sourceLineNo">354</span>    if (list != null) {<a name="line.354"></a>
-<span class="sourceLineNo">355</span>      for (FileStatus fstat: list) {<a name="line.355"></a>
-<span class="sourceLineNo">356</span>        LOG.debug(fstat.getPath());<a name="line.356"></a>
-<span class="sourceLineNo">357</span>        if (fstat.isDirectory()) {<a name="line.357"></a>
-<span class="sourceLineNo">358</span>          files.addAll(listFiles(fs, root, fstat.getPath()));<a name="line.358"></a>
-<span class="sourceLineNo">359</span>        } else {<a name="line.359"></a>
-<span class="sourceLineNo">360</span>          files.add(fstat.getPath().makeQualified(fs).toString().substring(rootPrefix));<a name="line.360"></a>
-<span class="sourceLineNo">361</span>        }<a name="line.361"></a>
-<span class="sourceLineNo">362</span>      }<a name="line.362"></a>
-<span class="sourceLineNo">363</span>    }<a name="line.363"></a>
-<span class="sourceLineNo">364</span>    return files;<a name="line.364"></a>
-<span class="sourceLineNo">365</span>  }<a name="line.365"></a>
-<span class="sourceLineNo">366</span><a name="line.366"></a>
-<span class="sourceLineNo">367</span>  private Path getHdfsDestinationDir() {<a name="line.367"></a>
-<span class="sourceLineNo">368</span>    Path rootDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir();<a name="line.368"></a>
-<span class="sourceLineNo">369</span>    Path path = new Path(new Path(rootDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    LOG.info("HDFS export destination path: " + path);<a name="line.370"></a>
-<span class="sourceLineNo">371</span>    return path;<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  }<a name="line.372"></a>
-<span class="sourceLineNo">373</span><a name="line.373"></a>
-<span class="sourceLineNo">374</span>  private Path getLocalDestinationDir() {<a name="line.374"></a>
-<span class="sourceLineNo">375</span>    Path path = TEST_UTIL.getDataTestDir("local-export-" + System.currentTimeMillis());<a name="line.375"></a>
-<span class="sourceLineNo">376</span>    LOG.info("Local export destination path: " + path);<a name="line.376"></a>
-<span class="sourceLineNo">377</span>    return path;<a name="line.377"></a>
+<span class="sourceLineNo">335</span>    });<a name="line.335"></a>
+<span class="sourceLineNo">336</span><a name="line.336"></a>
+<span class="sourceLineNo">337</span>    // Verify Snapshot description<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    SnapshotDescription desc = SnapshotDescriptionUtils.readSnapshotInfo(fs, exportedSnapshot);<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    assertTrue(desc.getName().equals(snapshotName));<a name="line.339"></a>
+<span class="sourceLineNo">340</span>    assertTrue(desc.getTable().equals(tableName.getNameAsString()));<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    return snapshotFiles;<a name="line.341"></a>
+<span class="sourceLineNo">342</span>  }<a name="line.342"></a>
+<span class="sourceLineNo">343</span><a name="line.343"></a>
+<span class="sourceLineNo">344</span>  private static Set&lt;String&gt; listFiles(final FileSystem fs, final Path root, final Path dir)<a name="line.344"></a>
+<span class="sourceLineNo">345</span>      throws IOException {<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    Set&lt;String&gt; files = new HashSet&lt;&gt;();<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    int rootPrefix = root.makeQualified(fs).toString().length();<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    FileStatus[] list = FSUtils.listStatus(fs, dir);<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    if (list != null) {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>      for (FileStatus fstat: list) {<a name="line.350"></a>
+<span class="sourceLineNo">351</span>        LOG.debug(fstat.getPath());<a name="line.351"></a>
+<span class="sourceLineNo">352</span>        if (fstat.isDirectory()) {<a name="line.352"></a>
+<span class="sourceLineNo">353</span>          files.addAll(listFiles(fs, root, fstat.getPath()));<a name="line.353"></a>
+<span class="sourceLineNo">354</span>        } else {<a name="line.354"></a>
+<span class="sourceLineNo">355</span>          files.add(fstat.getPath().makeQualified(fs).toString().substring(rootPrefix));<a name="line.355"></a>
+<span class="sourceLineNo">356</span>        }<a name="line.356"></a>
+<span class="sourceLineNo">357</span>      }<a name="line.357"></a>
+<span class="sourceLineNo">358</span>    }<a name="line.358"></a>
+<span class="sourceLineNo">359</span>    return files;<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  }<a name="line.360"></a>
+<span class="sourceLineNo">361</span><a name="line.361"></a>
+<span class="sourceLineNo">362</span>  private Path getHdfsDestinationDir() {<a name="line.362"></a>
+<span class="sourceLineNo">363</span>    Path rootDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir();<a name="line.363"></a>
+<span class="sourceLineNo">364</span>    Path path = new Path(new Path(rootDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.364"></a>
+<span class="sourceLineNo">365</span>    LOG.info("HDFS export destination path: " + path);<a name="line.365"></a>
+<span class="sourceLineNo">366</span>    return path;<a name="line.366"></a>
+<span class="sourceLineNo">367</span>  }<a name="line.367"></a>
+<span class="sourceLineNo">368</span><a name="line.368"></a>
+<span class="sourceLineNo">369</span>  private Path getLocalDestinationDir() {<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    Path path = TEST_UTIL.getDataTestDir("local-export-" + System.currentTimeMillis());<a name="line.370"></a>
+<span class="sourceLineNo">371</span>    LOG.info("Local export destination path: " + path);<a name="line.371"></a>
+<span class="sourceLineNo">372</span>    return path;<a name="line.372"></a>
+<span class="sourceLineNo">373</span>  }<a name="line.373"></a>
+<span class="sourceLineNo">374</span><a name="line.374"></a>
+<span class="sourceLineNo">375</span>  private static void removeExportDir(final Path path) throws IOException {<a name="line.375"></a>
+<span class="sourceLineNo">376</span>    FileSystem fs = FileSystem.get(path.toUri(), new Configuration());<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    fs.delete(path, true);<a name="line.377"></a>
 <span class="sourceLineNo">378</span>  }<a name="line.378"></a>
-<span class="sourceLineNo">379</span><a name="line.379"></a>
-<span class="sourceLineNo">380</span>  private static void removeExportDir(final Path path) throws IOException {<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    FileSystem fs = FileSystem.get(path.toUri(), new Configuration());<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    fs.delete(path, true);<a name="line.382"></a>
-<span class="sourceLineNo">383</span>  }<a name="line.383"></a>
-<span class="sourceLineNo">384</span>}<a name="line.384"></a>
+<span class="sourceLineNo">379</span>}<a name="line.379"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6fbeb554/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshotNoCluster.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshotNoCluster.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshotNoCluster.html
index 9472257..11cd828 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshotNoCluster.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshotNoCluster.html
@@ -26,101 +26,98 @@
 <span class="sourceLineNo">018</span><a name="line.18"></a>
 <span class="sourceLineNo">019</span>package org.apache.hadoop.hbase.snapshot;<a name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
-<span class="sourceLineNo">021</span>import static org.junit.Assert.assertEquals;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import static org.junit.Assert.assertTrue;<a name="line.22"></a>
-<span class="sourceLineNo">023</span><a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.commons.logging.Log;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.commons.logging.LogFactory;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hadoop.conf.Configuration;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.hadoop.fs.FileSystem;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.fs.Path;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.CategoryBasedTimeout;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.HBaseCommonTestingUtility;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.HConstants;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.TableName;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.master.snapshot.SnapshotManager;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.testclassification.MapReduceTests;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.junit.BeforeClass;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.junit.Rule;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.junit.Test;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.junit.experimental.categories.Category;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.junit.rules.TestRule;<a name="line.42"></a>
-<span class="sourceLineNo">043</span><a name="line.43"></a>
-<span class="sourceLineNo">044</span>/**<a name="line.44"></a>
-<span class="sourceLineNo">045</span> * Test Export Snapshot Tool<a name="line.45"></a>
-<span class="sourceLineNo">046</span> */<a name="line.46"></a>
-<span class="sourceLineNo">047</span>@Category({MapReduceTests.class, MediumTests.class})<a name="line.47"></a>
-<span class="sourceLineNo">048</span>public class TestExportSnapshotNoCluster {<a name="line.48"></a>
-<span class="sourceLineNo">049</span>  @Rule public final TestRule timeout = CategoryBasedTimeout.builder().<a name="line.49"></a>
-<span class="sourceLineNo">050</span>      withTimeout(this.getClass()).withLookingForStuckThread(true).build();<a name="line.50"></a>
-<span class="sourceLineNo">051</span>  private static final Log LOG = LogFactory.getLog(TestExportSnapshotNoCluster.class);<a name="line.51"></a>
-<span class="sourceLineNo">052</span><a name="line.52"></a>
-<span class="sourceLineNo">053</span>  protected final static HBaseCommonTestingUtility TEST_UTIL = new HBaseCommonTestingUtility();<a name="line.53"></a>
+<span class="sourceLineNo">021</span>import org.apache.commons.logging.Log;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.commons.logging.LogFactory;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.conf.Configuration;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.fs.FileSystem;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.fs.Path;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.CategoryBasedTimeout;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.HBaseCommonTestingUtility;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.HConstants;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.TableName;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.master.snapshot.SnapshotManager;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.testclassification.MapReduceTests;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.junit.BeforeClass;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.junit.Rule;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.junit.Test;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.junit.experimental.categories.Category;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.junit.rules.TestRule;<a name="line.39"></a>
+<span class="sourceLineNo">040</span><a name="line.40"></a>
+<span class="sourceLineNo">041</span>/**<a name="line.41"></a>
+<span class="sourceLineNo">042</span> * Test Export Snapshot Tool<a name="line.42"></a>
+<span class="sourceLineNo">043</span> */<a name="line.43"></a>
+<span class="sourceLineNo">044</span>@Category({MapReduceTests.class, MediumTests.class})<a name="line.44"></a>
+<span class="sourceLineNo">045</span>public class TestExportSnapshotNoCluster {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>  @Rule public final TestRule timeout = CategoryBasedTimeout.builder().<a name="line.46"></a>
+<span class="sourceLineNo">047</span>      withTimeout(this.getClass()).withLookingForStuckThread(true).build();<a name="line.47"></a>
+<span class="sourceLineNo">048</span>  private static final Log LOG = LogFactory.getLog(TestExportSnapshotNoCluster.class);<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>  protected final static HBaseCommonTestingUtility TEST_UTIL = new HBaseCommonTestingUtility();<a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span>  private static FileSystem fs;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>  private static Path testDir;<a name="line.53"></a>
 <span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span>  private static FileSystem fs;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>  private static Path testDir;<a name="line.56"></a>
-<span class="sourceLineNo">057</span><a name="line.57"></a>
-<span class="sourceLineNo">058</span>  public static void setUpBaseConf(Configuration conf) {<a name="line.58"></a>
-<span class="sourceLineNo">059</span>    conf.setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);<a name="line.59"></a>
-<span class="sourceLineNo">060</span>    conf.setInt("hbase.regionserver.msginterval", 100);<a name="line.60"></a>
-<span class="sourceLineNo">061</span>    conf.setInt("hbase.client.pause", 250);<a name="line.61"></a>
-<span class="sourceLineNo">062</span>    conf.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);<a name="line.62"></a>
-<span class="sourceLineNo">063</span>    conf.setBoolean("hbase.master.enabletable.roundrobin", true);<a name="line.63"></a>
-<span class="sourceLineNo">064</span>    conf.setInt("mapreduce.map.maxattempts", 10);<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    conf.set(HConstants.HBASE_DIR, testDir.toString());<a name="line.65"></a>
-<span class="sourceLineNo">066</span>  }<a name="line.66"></a>
-<span class="sourceLineNo">067</span><a name="line.67"></a>
-<span class="sourceLineNo">068</span>  @BeforeClass<a name="line.68"></a>
-<span class="sourceLineNo">069</span>  public static void setUpBeforeClass() throws Exception {<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    testDir = TEST_UTIL.getDataTestDir();<a name="line.70"></a>
-<span class="sourceLineNo">071</span>    fs = testDir.getFileSystem(TEST_UTIL.getConfiguration());<a name="line.71"></a>
+<span class="sourceLineNo">055</span>  public static void setUpBaseConf(Configuration conf) {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    conf.setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);<a name="line.56"></a>
+<span class="sourceLineNo">057</span>    conf.setInt("hbase.regionserver.msginterval", 100);<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    conf.setInt("hbase.client.pause", 250);<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    conf.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    conf.setBoolean("hbase.master.enabletable.roundrobin", true);<a name="line.60"></a>
+<span class="sourceLineNo">061</span>    conf.setInt("mapreduce.map.maxattempts", 10);<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    conf.set(HConstants.HBASE_DIR, testDir.toString());<a name="line.62"></a>
+<span class="sourceLineNo">063</span>  }<a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span>  @BeforeClass<a name="line.65"></a>
+<span class="sourceLineNo">066</span>  public static void setUpBeforeClass() throws Exception {<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    testDir = TEST_UTIL.getDataTestDir();<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    fs = testDir.getFileSystem(TEST_UTIL.getConfiguration());<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span>    setUpBaseConf(TEST_UTIL.getConfiguration());<a name="line.70"></a>
+<span class="sourceLineNo">071</span>  }<a name="line.71"></a>
 <span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>    setUpBaseConf(TEST_UTIL.getConfiguration());<a name="line.73"></a>
-<span class="sourceLineNo">074</span>  }<a name="line.74"></a>
-<span class="sourceLineNo">075</span><a name="line.75"></a>
-<span class="sourceLineNo">076</span>  /**<a name="line.76"></a>
-<span class="sourceLineNo">077</span>   * Mock a snapshot with files in the archive dir,<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   * two regions, and one reference file.<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   */<a name="line.79"></a>
-<span class="sourceLineNo">080</span>  @Test<a name="line.80"></a>
-<span class="sourceLineNo">081</span>  public void testSnapshotWithRefsExportFileSystemState() throws Exception {<a name="line.81"></a>
-<span class="sourceLineNo">082</span>    SnapshotMock snapshotMock = new SnapshotMock(TEST_UTIL.getConfiguration(), fs, testDir);<a name="line.82"></a>
-<span class="sourceLineNo">083</span>    SnapshotMock.SnapshotBuilder builder = snapshotMock.createSnapshotV2("tableWithRefsV1",<a name="line.83"></a>
-<span class="sourceLineNo">084</span>      "tableWithRefsV1");<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    testSnapshotWithRefsExportFileSystemState(builder);<a name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span>    snapshotMock = new SnapshotMock(TEST_UTIL.getConfiguration(), fs, testDir);<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    builder = snapshotMock.createSnapshotV2("tableWithRefsV2", "tableWithRefsV2");<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    testSnapshotWithRefsExportFileSystemState(builder);<a name="line.89"></a>
-<span class="sourceLineNo">090</span>  }<a name="line.90"></a>
-<span class="sourceLineNo">091</span><a name="line.91"></a>
-<span class="sourceLineNo">092</span>  /**<a name="line.92"></a>
-<span class="sourceLineNo">093</span>   * Generates a couple of regions for the specified SnapshotMock,<a name="line.93"></a>
-<span class="sourceLineNo">094</span>   * and then it will run the export and verification.<a name="line.94"></a>
-<span class="sourceLineNo">095</span>   */<a name="line.95"></a>
-<span class="sourceLineNo">096</span>  private void testSnapshotWithRefsExportFileSystemState(SnapshotMock.SnapshotBuilder builder)<a name="line.96"></a>
-<span class="sourceLineNo">097</span>      throws Exception {<a name="line.97"></a>
-<span class="sourceLineNo">098</span>    Path[] r1Files = builder.addRegion();<a name="line.98"></a>
-<span class="sourceLineNo">099</span>    Path[] r2Files = builder.addRegion();<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    builder.commit();<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    int snapshotFilesCount = r1Files.length + r2Files.length;<a name="line.101"></a>
-<span class="sourceLineNo">102</span><a name="line.102"></a>
-<span class="sourceLineNo">103</span>    byte[] snapshotName = Bytes.toBytes(builder.getSnapshotDescription().getName());<a name="line.103"></a>
-<span class="sourceLineNo">104</span>    TableName tableName = builder.getTableDescriptor().getTableName();<a name="line.104"></a>
-<span class="sourceLineNo">105</span>    TestExportSnapshot.testExportFileSystemState(TEST_UTIL.getConfiguration(),<a name="line.105"></a>
-<span class="sourceLineNo">106</span>      tableName, snapshotName, snapshotName, snapshotFilesCount,<a name="line.106"></a>
-<span class="sourceLineNo">107</span>      testDir, getDestinationDir(), false, null, true);<a name="line.107"></a>
-<span class="sourceLineNo">108</span>  }<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span>  private Path getDestinationDir() {<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    Path path = new Path(new Path(testDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.111"></a>
-<span class="sourceLineNo">112</span>    LOG.info("HDFS export destination path: " + path);<a name="line.112"></a>
-<span class="sourceLineNo">113</span>    return path;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>  }<a name="line.114"></a>
-<span class="sourceLineNo">115</span>}<a name="line.115"></a>
+<span class="sourceLineNo">073</span>  /**<a name="line.73"></a>
+<span class="sourceLineNo">074</span>   * Mock a snapshot with files in the archive dir,<a name="line.74"></a>
+<span class="sourceLineNo">075</span>   * two regions, and one reference file.<a name="line.75"></a>
+<span class="sourceLineNo">076</span>   */<a name="line.76"></a>
+<span class="sourceLineNo">077</span>  @Test<a name="line.77"></a>
+<span class="sourceLineNo">078</span>  public void testSnapshotWithRefsExportFileSystemState() throws Exception {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    SnapshotMock snapshotMock = new SnapshotMock(TEST_UTIL.getConfiguration(), fs, testDir);<a name="line.79"></a>
+<span class="sourceLineNo">080</span>    SnapshotMock.SnapshotBuilder builder = snapshotMock.createSnapshotV2("tableWithRefsV1",<a name="line.80"></a>
+<span class="sourceLineNo">081</span>      "tableWithRefsV1");<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    testSnapshotWithRefsExportFileSystemState(builder);<a name="line.82"></a>
+<span class="sourceLineNo">083</span><a name="line.83"></a>
+<span class="sourceLineNo">084</span>    snapshotMock = new SnapshotMock(TEST_UTIL.getConfiguration(), fs, testDir);<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    builder = snapshotMock.createSnapshotV2("tableWithRefsV2", "tableWithRefsV2");<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    testSnapshotWithRefsExportFileSystemState(builder);<a name="line.86"></a>
+<span class="sourceLineNo">087</span>  }<a name="line.87"></a>
+<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">089</span>  /**<a name="line.89"></a>
+<span class="sourceLineNo">090</span>   * Generates a couple of regions for the specified SnapshotMock,<a name="line.90"></a>
+<span class="sourceLineNo">091</span>   * and then it will run the export and verification.<a name="line.91"></a>
+<span class="sourceLineNo">092</span>   */<a name="line.92"></a>
+<span class="sourceLineNo">093</span>  private void testSnapshotWithRefsExportFileSystemState(SnapshotMock.SnapshotBuilder builder)<a name="line.93"></a>
+<span class="sourceLineNo">094</span>      throws Exception {<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    Path[] r1Files = builder.addRegion();<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    Path[] r2Files = builder.addRegion();<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    builder.commit();<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    int snapshotFilesCount = r1Files.length + r2Files.length;<a name="line.98"></a>
+<span class="sourceLineNo">099</span><a name="line.99"></a>
+<span class="sourceLineNo">100</span>    byte[] snapshotName = Bytes.toBytes(builder.getSnapshotDescription().getName());<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    TableName tableName = builder.getTableDescriptor().getTableName();<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    TestExportSnapshot.testExportFileSystemState(TEST_UTIL.getConfiguration(),<a name="line.102"></a>
+<span class="sourceLineNo">103</span>      tableName, snapshotName, snapshotName, snapshotFilesCount,<a name="line.103"></a>
+<span class="sourceLineNo">104</span>      testDir, getDestinationDir(), false, null, true);<a name="line.104"></a>
+<span class="sourceLineNo">105</span>  }<a name="line.105"></a>
+<span class="sourceLineNo">106</span><a name="line.106"></a>
+<span class="sourceLineNo">107</span>  private Path getDestinationDir() {<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    Path path = new Path(new Path(testDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    LOG.info("HDFS export destination path: " + path);<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    return path;<a name="line.110"></a>
+<span class="sourceLineNo">111</span>  }<a name="line.111"></a>
+<span class="sourceLineNo">112</span>}<a name="line.112"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/6fbeb554/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestMobExportSnapshot.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestMobExportSnapshot.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestMobExportSnapshot.html
index 748a914..ed6b9e0 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestMobExportSnapshot.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestMobExportSnapshot.html
@@ -27,55 +27,48 @@
 <span class="sourceLineNo">019</span>package org.apache.hadoop.hbase.snapshot;<a name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
 <span class="sourceLineNo">021</span><a name="line.21"></a>
-<span class="sourceLineNo">022</span>import org.apache.commons.logging.Log;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.commons.logging.LogFactory;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.hadoop.conf.Configuration;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.HRegionInfo;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.mob.MobConstants;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.mob.MobUtils;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.testclassification.VerySlowRegionServerTests;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.junit.BeforeClass;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.junit.experimental.categories.Category;<a name="line.31"></a>
-<span class="sourceLineNo">032</span><a name="line.32"></a>
-<span class="sourceLineNo">033</span>/**<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * Test Export Snapshot Tool<a name="line.34"></a>
-<span class="sourceLineNo">035</span> */<a name="line.35"></a>
-<span class="sourceLineNo">036</span>@Category({VerySlowRegionServerTests.class, LargeTests.class})<a name="line.36"></a>
-<span class="sourceLineNo">037</span>public class TestMobExportSnapshot extends TestExportSnapshot {<a name="line.37"></a>
-<span class="sourceLineNo">038</span>  private final Log LOG = LogFactory.getLog(getClass());<a name="line.38"></a>
-<span class="sourceLineNo">039</span><a name="line.39"></a>
-<span class="sourceLineNo">040</span>  public static void setUpBaseConf(Configuration conf) {<a name="line.40"></a>
-<span class="sourceLineNo">041</span>    TestExportSnapshot.setUpBaseConf(conf);<a name="line.41"></a>
-<span class="sourceLineNo">042</span>    conf.setInt(MobConstants.MOB_FILE_CACHE_SIZE_KEY, 0);<a name="line.42"></a>
-<span class="sourceLineNo">043</span>  }<a name="line.43"></a>
-<span class="sourceLineNo">044</span><a name="line.44"></a>
-<span class="sourceLineNo">045</span>  @BeforeClass<a name="line.45"></a>
-<span class="sourceLineNo">046</span>  public static void setUpBeforeClass() throws Exception {<a name="line.46"></a>
-<span class="sourceLineNo">047</span>    setUpBaseConf(TEST_UTIL.getConfiguration());<a name="line.47"></a>
-<span class="sourceLineNo">048</span>    // Setup separate test-data directory for MR cluster and set corresponding configurations.<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    // Otherwise, different test classes running MR cluster can step on each other.<a name="line.49"></a>
-<span class="sourceLineNo">050</span>    TEST_UTIL.getDataTestDir();<a name="line.50"></a>
-<span class="sourceLineNo">051</span>    TEST_UTIL.startMiniZKCluster();<a name="line.51"></a>
-<span class="sourceLineNo">052</span>    TEST_UTIL.startMiniMapReduceCluster();<a name="line.52"></a>
-<span class="sourceLineNo">053</span>    TEST_UTIL.startMiniHBaseCluster(1, 3);<a name="line.53"></a>
-<span class="sourceLineNo">054</span>  }<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span>  @Override<a name="line.56"></a>
-<span class="sourceLineNo">057</span>  protected void createTable() throws Exception {<a name="line.57"></a>
-<span class="sourceLineNo">058</span>    MobSnapshotTestingUtils.createPreSplitMobTable(TEST_UTIL, tableName, 2, FAMILY);<a name="line.58"></a>
-<span class="sourceLineNo">059</span>  }<a name="line.59"></a>
-<span class="sourceLineNo">060</span><a name="line.60"></a>
-<span class="sourceLineNo">061</span>  @Override<a name="line.61"></a>
-<span class="sourceLineNo">062</span>  protected RegionPredicate getBypassRegionPredicate() {<a name="line.62"></a>
-<span class="sourceLineNo">063</span>    return new RegionPredicate() {<a name="line.63"></a>
-<span class="sourceLineNo">064</span>      @Override<a name="line.64"></a>
-<span class="sourceLineNo">065</span>      public boolean evaluate(final HRegionInfo regionInfo) {<a name="line.65"></a>
-<span class="sourceLineNo">066</span>        return MobUtils.isMobRegionInfo(regionInfo);<a name="line.66"></a>
-<span class="sourceLineNo">067</span>      }<a name="line.67"></a>
-<span class="sourceLineNo">068</span>    };<a name="line.68"></a>
-<span class="sourceLineNo">069</span>  }<a name="line.69"></a>
-<span class="sourceLineNo">070</span>}<a name="line.70"></a>
+<span class="sourceLineNo">022</span>import org.apache.hadoop.conf.Configuration;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.HRegionInfo;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.mob.MobConstants;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.mob.MobUtils;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.testclassification.VerySlowRegionServerTests;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.junit.BeforeClass;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.junit.experimental.categories.Category;<a name="line.29"></a>
+<span class="sourceLineNo">030</span><a name="line.30"></a>
+<span class="sourceLineNo">031</span>/**<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * Test Export Snapshot Tool<a name="line.32"></a>
+<span class="sourceLineNo">033</span> */<a name="line.33"></a>
+<span class="sourceLineNo">034</span>@Category({VerySlowRegionServerTests.class, LargeTests.class})<a name="line.34"></a>
+<span class="sourceLineNo">035</span>public class TestMobExportSnapshot extends TestExportSnapshot {<a name="line.35"></a>
+<span class="sourceLineNo">036</span><a name="line.36"></a>
+<span class="sourceLineNo">037</span>  public static void setUpBaseConf(Configuration conf) {<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    TestExportSnapshot.setUpBaseConf(conf);<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    conf.setInt(MobConstants.MOB_FILE_CACHE_SIZE_KEY, 0);<a name="line.39"></a>
+<span class="sourceLineNo">040</span>  }<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>  @BeforeClass<a name="line.42"></a>
+<span class="sourceLineNo">043</span>  public static void setUpBeforeClass() throws Exception {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    setUpBaseConf(TEST_UTIL.getConfiguration());<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    TEST_UTIL.startMiniCluster(1, 3);<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    TEST_UTIL.startMiniMapReduceCluster();<a name="line.46"></a>
+<span class="sourceLineNo">047</span>  }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>  @Override<a name="line.49"></a>
+<span class="sourceLineNo">050</span>  protected void createTable() throws Exception {<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    MobSnapshotTestingUtils.createPreSplitMobTable(TEST_UTIL, tableName, 2, FAMILY);<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  }<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>  @Override<a name="line.54"></a>
+<span class="sourceLineNo">055</span>  protected RegionPredicate getBypassRegionPredicate() {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    return new RegionPredicate() {<a name="line.56"></a>
+<span class="sourceLineNo">057</span>      @Override<a name="line.57"></a>
+<span class="sourceLineNo">058</span>      public boolean evaluate(final HRegionInfo regionInfo) {<a name="line.58"></a>
+<span class="sourceLineNo">059</span>        return MobUtils.isMobRegionInfo(regionInfo);<a name="line.59"></a>
+<span class="sourceLineNo">060</span>      }<a name="line.60"></a>
+<span class="sourceLineNo">061</span>    };<a name="line.61"></a>
+<span class="sourceLineNo">062</span>  }<a name="line.62"></a>
+<span class="sourceLineNo">063</span>}<a name="line.63"></a>
 
 
 


Mime
View raw message