hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [05/44] hbase-site git commit: Published site at .
Date Tue, 30 Jan 2018 15:18:13 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a3fb6d74/testdevapidocs/src-html/org/apache/hadoop/hbase/regionserver/TestHRegion.IsFlushWALMarker.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/regionserver/TestHRegion.IsFlushWALMarker.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/regionserver/TestHRegion.IsFlushWALMarker.html
index 5099191..d58ee41 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/regionserver/TestHRegion.IsFlushWALMarker.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/regionserver/TestHRegion.IsFlushWALMarker.html
@@ -2214,4374 +2214,4373 @@
 <span class="sourceLineNo">2206</span>      } catch (Exception e) {<a name="line.2206"></a>
 <span class="sourceLineNo">2207</span>        ok = true;<a name="line.2207"></a>
 <span class="sourceLineNo">2208</span>      }<a name="line.2208"></a>
-<span class="sourceLineNo">2209</span>      assertEquals("Family " + new String(family, StandardCharsets.UTF_8) + " does exist",<a name="line.2209"></a>
-<span class="sourceLineNo">2210</span>          true, ok);<a name="line.2210"></a>
-<span class="sourceLineNo">2211</span>    } finally {<a name="line.2211"></a>
-<span class="sourceLineNo">2212</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2212"></a>
-<span class="sourceLineNo">2213</span>      this.region = null;<a name="line.2213"></a>
-<span class="sourceLineNo">2214</span>    }<a name="line.2214"></a>
-<span class="sourceLineNo">2215</span>  }<a name="line.2215"></a>
-<span class="sourceLineNo">2216</span><a name="line.2216"></a>
-<span class="sourceLineNo">2217</span>  @Test<a name="line.2217"></a>
-<span class="sourceLineNo">2218</span>  public void testDelete_mixed() throws IOException, InterruptedException {<a name="line.2218"></a>
-<span class="sourceLineNo">2219</span>    byte[] fam = Bytes.toBytes("info");<a name="line.2219"></a>
-<span class="sourceLineNo">2220</span>    byte[][] families = { fam };<a name="line.2220"></a>
-<span class="sourceLineNo">2221</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2221"></a>
-<span class="sourceLineNo">2222</span>    try {<a name="line.2222"></a>
-<span class="sourceLineNo">2223</span>      EnvironmentEdgeManagerTestHelper.injectEdge(new IncrementingEnvironmentEdge());<a name="line.2223"></a>
-<span class="sourceLineNo">2224</span><a name="line.2224"></a>
-<span class="sourceLineNo">2225</span>      byte[] row = Bytes.toBytes("table_name");<a name="line.2225"></a>
-<span class="sourceLineNo">2226</span>      // column names<a name="line.2226"></a>
-<span class="sourceLineNo">2227</span>      byte[] serverinfo = Bytes.toBytes("serverinfo");<a name="line.2227"></a>
-<span class="sourceLineNo">2228</span>      byte[] splitA = Bytes.toBytes("splitA");<a name="line.2228"></a>
-<span class="sourceLineNo">2229</span>      byte[] splitB = Bytes.toBytes("splitB");<a name="line.2229"></a>
-<span class="sourceLineNo">2230</span><a name="line.2230"></a>
-<span class="sourceLineNo">2231</span>      // add some data:<a name="line.2231"></a>
-<span class="sourceLineNo">2232</span>      Put put = new Put(row);<a name="line.2232"></a>
-<span class="sourceLineNo">2233</span>      put.addColumn(fam, splitA, Bytes.toBytes("reference_A"));<a name="line.2233"></a>
-<span class="sourceLineNo">2234</span>      region.put(put);<a name="line.2234"></a>
-<span class="sourceLineNo">2235</span><a name="line.2235"></a>
-<span class="sourceLineNo">2236</span>      put = new Put(row);<a name="line.2236"></a>
-<span class="sourceLineNo">2237</span>      put.addColumn(fam, splitB, Bytes.toBytes("reference_B"));<a name="line.2237"></a>
-<span class="sourceLineNo">2238</span>      region.put(put);<a name="line.2238"></a>
-<span class="sourceLineNo">2239</span><a name="line.2239"></a>
-<span class="sourceLineNo">2240</span>      put = new Put(row);<a name="line.2240"></a>
-<span class="sourceLineNo">2241</span>      put.addColumn(fam, serverinfo, Bytes.toBytes("ip_address"));<a name="line.2241"></a>
-<span class="sourceLineNo">2242</span>      region.put(put);<a name="line.2242"></a>
-<span class="sourceLineNo">2243</span><a name="line.2243"></a>
-<span class="sourceLineNo">2244</span>      // ok now delete a split:<a name="line.2244"></a>
-<span class="sourceLineNo">2245</span>      Delete delete = new Delete(row);<a name="line.2245"></a>
-<span class="sourceLineNo">2246</span>      delete.addColumns(fam, splitA);<a name="line.2246"></a>
-<span class="sourceLineNo">2247</span>      region.delete(delete);<a name="line.2247"></a>
-<span class="sourceLineNo">2248</span><a name="line.2248"></a>
-<span class="sourceLineNo">2249</span>      // assert some things:<a name="line.2249"></a>
-<span class="sourceLineNo">2250</span>      Get get = new Get(row).addColumn(fam, serverinfo);<a name="line.2250"></a>
-<span class="sourceLineNo">2251</span>      Result result = region.get(get);<a name="line.2251"></a>
-<span class="sourceLineNo">2252</span>      assertEquals(1, result.size());<a name="line.2252"></a>
-<span class="sourceLineNo">2253</span><a name="line.2253"></a>
-<span class="sourceLineNo">2254</span>      get = new Get(row).addColumn(fam, splitA);<a name="line.2254"></a>
-<span class="sourceLineNo">2255</span>      result = region.get(get);<a name="line.2255"></a>
-<span class="sourceLineNo">2256</span>      assertEquals(0, result.size());<a name="line.2256"></a>
-<span class="sourceLineNo">2257</span><a name="line.2257"></a>
-<span class="sourceLineNo">2258</span>      get = new Get(row).addColumn(fam, splitB);<a name="line.2258"></a>
-<span class="sourceLineNo">2259</span>      result = region.get(get);<a name="line.2259"></a>
-<span class="sourceLineNo">2260</span>      assertEquals(1, result.size());<a name="line.2260"></a>
-<span class="sourceLineNo">2261</span><a name="line.2261"></a>
-<span class="sourceLineNo">2262</span>      // Assert that after a delete, I can put.<a name="line.2262"></a>
-<span class="sourceLineNo">2263</span>      put = new Put(row);<a name="line.2263"></a>
-<span class="sourceLineNo">2264</span>      put.addColumn(fam, splitA, Bytes.toBytes("reference_A"));<a name="line.2264"></a>
-<span class="sourceLineNo">2265</span>      region.put(put);<a name="line.2265"></a>
-<span class="sourceLineNo">2266</span>      get = new Get(row);<a name="line.2266"></a>
-<span class="sourceLineNo">2267</span>      result = region.get(get);<a name="line.2267"></a>
-<span class="sourceLineNo">2268</span>      assertEquals(3, result.size());<a name="line.2268"></a>
-<span class="sourceLineNo">2269</span><a name="line.2269"></a>
-<span class="sourceLineNo">2270</span>      // Now delete all... then test I can add stuff back<a name="line.2270"></a>
-<span class="sourceLineNo">2271</span>      delete = new Delete(row);<a name="line.2271"></a>
-<span class="sourceLineNo">2272</span>      region.delete(delete);<a name="line.2272"></a>
-<span class="sourceLineNo">2273</span>      assertEquals(0, region.get(get).size());<a name="line.2273"></a>
-<span class="sourceLineNo">2274</span><a name="line.2274"></a>
-<span class="sourceLineNo">2275</span>      region.put(new Put(row).addColumn(fam, splitA, Bytes.toBytes("reference_A")));<a name="line.2275"></a>
-<span class="sourceLineNo">2276</span>      result = region.get(get);<a name="line.2276"></a>
-<span class="sourceLineNo">2277</span>      assertEquals(1, result.size());<a name="line.2277"></a>
-<span class="sourceLineNo">2278</span>    } finally {<a name="line.2278"></a>
-<span class="sourceLineNo">2279</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2279"></a>
-<span class="sourceLineNo">2280</span>      this.region = null;<a name="line.2280"></a>
-<span class="sourceLineNo">2281</span>    }<a name="line.2281"></a>
-<span class="sourceLineNo">2282</span>  }<a name="line.2282"></a>
-<span class="sourceLineNo">2283</span><a name="line.2283"></a>
-<span class="sourceLineNo">2284</span>  @Test<a name="line.2284"></a>
-<span class="sourceLineNo">2285</span>  public void testDeleteRowWithFutureTs() throws IOException {<a name="line.2285"></a>
-<span class="sourceLineNo">2286</span>    byte[] fam = Bytes.toBytes("info");<a name="line.2286"></a>
-<span class="sourceLineNo">2287</span>    byte[][] families = { fam };<a name="line.2287"></a>
-<span class="sourceLineNo">2288</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2288"></a>
-<span class="sourceLineNo">2289</span>    try {<a name="line.2289"></a>
-<span class="sourceLineNo">2290</span>      byte[] row = Bytes.toBytes("table_name");<a name="line.2290"></a>
-<span class="sourceLineNo">2291</span>      // column names<a name="line.2291"></a>
-<span class="sourceLineNo">2292</span>      byte[] serverinfo = Bytes.toBytes("serverinfo");<a name="line.2292"></a>
-<span class="sourceLineNo">2293</span><a name="line.2293"></a>
-<span class="sourceLineNo">2294</span>      // add data in the far future<a name="line.2294"></a>
-<span class="sourceLineNo">2295</span>      Put put = new Put(row);<a name="line.2295"></a>
-<span class="sourceLineNo">2296</span>      put.addColumn(fam, serverinfo, HConstants.LATEST_TIMESTAMP - 5, Bytes.toBytes("value"));<a name="line.2296"></a>
-<span class="sourceLineNo">2297</span>      region.put(put);<a name="line.2297"></a>
-<span class="sourceLineNo">2298</span><a name="line.2298"></a>
-<span class="sourceLineNo">2299</span>      // now delete something in the present<a name="line.2299"></a>
-<span class="sourceLineNo">2300</span>      Delete delete = new Delete(row);<a name="line.2300"></a>
-<span class="sourceLineNo">2301</span>      region.delete(delete);<a name="line.2301"></a>
-<span class="sourceLineNo">2302</span><a name="line.2302"></a>
-<span class="sourceLineNo">2303</span>      // make sure we still see our data<a name="line.2303"></a>
-<span class="sourceLineNo">2304</span>      Get get = new Get(row).addColumn(fam, serverinfo);<a name="line.2304"></a>
-<span class="sourceLineNo">2305</span>      Result result = region.get(get);<a name="line.2305"></a>
-<span class="sourceLineNo">2306</span>      assertEquals(1, result.size());<a name="line.2306"></a>
-<span class="sourceLineNo">2307</span><a name="line.2307"></a>
-<span class="sourceLineNo">2308</span>      // delete the future row<a name="line.2308"></a>
-<span class="sourceLineNo">2309</span>      delete = new Delete(row, HConstants.LATEST_TIMESTAMP - 3);<a name="line.2309"></a>
-<span class="sourceLineNo">2310</span>      region.delete(delete);<a name="line.2310"></a>
-<span class="sourceLineNo">2311</span><a name="line.2311"></a>
-<span class="sourceLineNo">2312</span>      // make sure it is gone<a name="line.2312"></a>
-<span class="sourceLineNo">2313</span>      get = new Get(row).addColumn(fam, serverinfo);<a name="line.2313"></a>
-<span class="sourceLineNo">2314</span>      result = region.get(get);<a name="line.2314"></a>
-<span class="sourceLineNo">2315</span>      assertEquals(0, result.size());<a name="line.2315"></a>
-<span class="sourceLineNo">2316</span>    } finally {<a name="line.2316"></a>
-<span class="sourceLineNo">2317</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2317"></a>
-<span class="sourceLineNo">2318</span>      this.region = null;<a name="line.2318"></a>
-<span class="sourceLineNo">2319</span>    }<a name="line.2319"></a>
-<span class="sourceLineNo">2320</span>  }<a name="line.2320"></a>
-<span class="sourceLineNo">2321</span><a name="line.2321"></a>
-<span class="sourceLineNo">2322</span>  /**<a name="line.2322"></a>
-<span class="sourceLineNo">2323</span>   * Tests that the special LATEST_TIMESTAMP option for puts gets replaced by<a name="line.2323"></a>
-<span class="sourceLineNo">2324</span>   * the actual timestamp<a name="line.2324"></a>
-<span class="sourceLineNo">2325</span>   */<a name="line.2325"></a>
-<span class="sourceLineNo">2326</span>  @Test<a name="line.2326"></a>
-<span class="sourceLineNo">2327</span>  public void testPutWithLatestTS() throws IOException {<a name="line.2327"></a>
-<span class="sourceLineNo">2328</span>    byte[] fam = Bytes.toBytes("info");<a name="line.2328"></a>
-<span class="sourceLineNo">2329</span>    byte[][] families = { fam };<a name="line.2329"></a>
-<span class="sourceLineNo">2330</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2330"></a>
-<span class="sourceLineNo">2331</span>    try {<a name="line.2331"></a>
-<span class="sourceLineNo">2332</span>      byte[] row = Bytes.toBytes("row1");<a name="line.2332"></a>
-<span class="sourceLineNo">2333</span>      // column names<a name="line.2333"></a>
-<span class="sourceLineNo">2334</span>      byte[] qual = Bytes.toBytes("qual");<a name="line.2334"></a>
-<span class="sourceLineNo">2335</span><a name="line.2335"></a>
-<span class="sourceLineNo">2336</span>      // add data with LATEST_TIMESTAMP, put without WAL<a name="line.2336"></a>
-<span class="sourceLineNo">2337</span>      Put put = new Put(row);<a name="line.2337"></a>
-<span class="sourceLineNo">2338</span>      put.addColumn(fam, qual, HConstants.LATEST_TIMESTAMP, Bytes.toBytes("value"));<a name="line.2338"></a>
-<span class="sourceLineNo">2339</span>      region.put(put);<a name="line.2339"></a>
-<span class="sourceLineNo">2340</span><a name="line.2340"></a>
-<span class="sourceLineNo">2341</span>      // Make sure it shows up with an actual timestamp<a name="line.2341"></a>
-<span class="sourceLineNo">2342</span>      Get get = new Get(row).addColumn(fam, qual);<a name="line.2342"></a>
-<span class="sourceLineNo">2343</span>      Result result = region.get(get);<a name="line.2343"></a>
-<span class="sourceLineNo">2344</span>      assertEquals(1, result.size());<a name="line.2344"></a>
-<span class="sourceLineNo">2345</span>      Cell kv = result.rawCells()[0];<a name="line.2345"></a>
-<span class="sourceLineNo">2346</span>      LOG.info("Got: " + kv);<a name="line.2346"></a>
-<span class="sourceLineNo">2347</span>      assertTrue("LATEST_TIMESTAMP was not replaced with real timestamp",<a name="line.2347"></a>
-<span class="sourceLineNo">2348</span>          kv.getTimestamp() != HConstants.LATEST_TIMESTAMP);<a name="line.2348"></a>
-<span class="sourceLineNo">2349</span><a name="line.2349"></a>
-<span class="sourceLineNo">2350</span>      // Check same with WAL enabled (historically these took different<a name="line.2350"></a>
-<span class="sourceLineNo">2351</span>      // code paths, so check both)<a name="line.2351"></a>
-<span class="sourceLineNo">2352</span>      row = Bytes.toBytes("row2");<a name="line.2352"></a>
-<span class="sourceLineNo">2353</span>      put = new Put(row);<a name="line.2353"></a>
-<span class="sourceLineNo">2354</span>      put.addColumn(fam, qual, HConstants.LATEST_TIMESTAMP, Bytes.toBytes("value"));<a name="line.2354"></a>
-<span class="sourceLineNo">2355</span>      region.put(put);<a name="line.2355"></a>
-<span class="sourceLineNo">2356</span><a name="line.2356"></a>
-<span class="sourceLineNo">2357</span>      // Make sure it shows up with an actual timestamp<a name="line.2357"></a>
-<span class="sourceLineNo">2358</span>      get = new Get(row).addColumn(fam, qual);<a name="line.2358"></a>
-<span class="sourceLineNo">2359</span>      result = region.get(get);<a name="line.2359"></a>
-<span class="sourceLineNo">2360</span>      assertEquals(1, result.size());<a name="line.2360"></a>
-<span class="sourceLineNo">2361</span>      kv = result.rawCells()[0];<a name="line.2361"></a>
-<span class="sourceLineNo">2362</span>      LOG.info("Got: " + kv);<a name="line.2362"></a>
-<span class="sourceLineNo">2363</span>      assertTrue("LATEST_TIMESTAMP was not replaced with real timestamp",<a name="line.2363"></a>
-<span class="sourceLineNo">2364</span>          kv.getTimestamp() != HConstants.LATEST_TIMESTAMP);<a name="line.2364"></a>
-<span class="sourceLineNo">2365</span>    } finally {<a name="line.2365"></a>
-<span class="sourceLineNo">2366</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2366"></a>
-<span class="sourceLineNo">2367</span>      this.region = null;<a name="line.2367"></a>
-<span class="sourceLineNo">2368</span>    }<a name="line.2368"></a>
-<span class="sourceLineNo">2369</span><a name="line.2369"></a>
-<span class="sourceLineNo">2370</span>  }<a name="line.2370"></a>
-<span class="sourceLineNo">2371</span><a name="line.2371"></a>
-<span class="sourceLineNo">2372</span>  /**<a name="line.2372"></a>
-<span class="sourceLineNo">2373</span>   * Tests that there is server-side filtering for invalid timestamp upper<a name="line.2373"></a>
-<span class="sourceLineNo">2374</span>   * bound. Note that the timestamp lower bound is automatically handled for us<a name="line.2374"></a>
-<span class="sourceLineNo">2375</span>   * by the TTL field.<a name="line.2375"></a>
-<span class="sourceLineNo">2376</span>   */<a name="line.2376"></a>
-<span class="sourceLineNo">2377</span>  @Test<a name="line.2377"></a>
-<span class="sourceLineNo">2378</span>  public void testPutWithTsSlop() throws IOException {<a name="line.2378"></a>
-<span class="sourceLineNo">2379</span>    byte[] fam = Bytes.toBytes("info");<a name="line.2379"></a>
-<span class="sourceLineNo">2380</span>    byte[][] families = { fam };<a name="line.2380"></a>
-<span class="sourceLineNo">2381</span><a name="line.2381"></a>
-<span class="sourceLineNo">2382</span>    // add data with a timestamp that is too recent for range. Ensure assert<a name="line.2382"></a>
-<span class="sourceLineNo">2383</span>    CONF.setInt("hbase.hregion.keyvalue.timestamp.slop.millisecs", 1000);<a name="line.2383"></a>
-<span class="sourceLineNo">2384</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2384"></a>
-<span class="sourceLineNo">2385</span>    boolean caughtExcep = false;<a name="line.2385"></a>
-<span class="sourceLineNo">2386</span>    try {<a name="line.2386"></a>
-<span class="sourceLineNo">2387</span>      try {<a name="line.2387"></a>
-<span class="sourceLineNo">2388</span>        // no TS specified == use latest. should not error<a name="line.2388"></a>
-<span class="sourceLineNo">2389</span>        region.put(new Put(row).addColumn(fam, Bytes.toBytes("qual"), Bytes.toBytes("value")));<a name="line.2389"></a>
-<span class="sourceLineNo">2390</span>        // TS out of range. should error<a name="line.2390"></a>
-<span class="sourceLineNo">2391</span>        region.put(new Put(row).addColumn(fam, Bytes.toBytes("qual"),<a name="line.2391"></a>
-<span class="sourceLineNo">2392</span>            System.currentTimeMillis() + 2000, Bytes.toBytes("value")));<a name="line.2392"></a>
-<span class="sourceLineNo">2393</span>        fail("Expected IOE for TS out of configured timerange");<a name="line.2393"></a>
-<span class="sourceLineNo">2394</span>      } catch (FailedSanityCheckException ioe) {<a name="line.2394"></a>
-<span class="sourceLineNo">2395</span>        LOG.debug("Received expected exception", ioe);<a name="line.2395"></a>
-<span class="sourceLineNo">2396</span>        caughtExcep = true;<a name="line.2396"></a>
-<span class="sourceLineNo">2397</span>      }<a name="line.2397"></a>
-<span class="sourceLineNo">2398</span>      assertTrue("Should catch FailedSanityCheckException", caughtExcep);<a name="line.2398"></a>
-<span class="sourceLineNo">2399</span>    } finally {<a name="line.2399"></a>
-<span class="sourceLineNo">2400</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2400"></a>
-<span class="sourceLineNo">2401</span>      this.region = null;<a name="line.2401"></a>
-<span class="sourceLineNo">2402</span>    }<a name="line.2402"></a>
-<span class="sourceLineNo">2403</span>  }<a name="line.2403"></a>
-<span class="sourceLineNo">2404</span><a name="line.2404"></a>
-<span class="sourceLineNo">2405</span>  @Test<a name="line.2405"></a>
-<span class="sourceLineNo">2406</span>  public void testScanner_DeleteOneFamilyNotAnother() throws IOException {<a name="line.2406"></a>
-<span class="sourceLineNo">2407</span>    byte[] fam1 = Bytes.toBytes("columnA");<a name="line.2407"></a>
-<span class="sourceLineNo">2408</span>    byte[] fam2 = Bytes.toBytes("columnB");<a name="line.2408"></a>
-<span class="sourceLineNo">2409</span>    this.region = initHRegion(tableName, method, CONF, fam1, fam2);<a name="line.2409"></a>
-<span class="sourceLineNo">2410</span>    try {<a name="line.2410"></a>
-<span class="sourceLineNo">2411</span>      byte[] rowA = Bytes.toBytes("rowA");<a name="line.2411"></a>
-<span class="sourceLineNo">2412</span>      byte[] rowB = Bytes.toBytes("rowB");<a name="line.2412"></a>
-<span class="sourceLineNo">2413</span><a name="line.2413"></a>
-<span class="sourceLineNo">2414</span>      byte[] value = Bytes.toBytes("value");<a name="line.2414"></a>
-<span class="sourceLineNo">2415</span><a name="line.2415"></a>
-<span class="sourceLineNo">2416</span>      Delete delete = new Delete(rowA);<a name="line.2416"></a>
-<span class="sourceLineNo">2417</span>      delete.addFamily(fam1);<a name="line.2417"></a>
-<span class="sourceLineNo">2418</span><a name="line.2418"></a>
-<span class="sourceLineNo">2419</span>      region.delete(delete);<a name="line.2419"></a>
-<span class="sourceLineNo">2420</span><a name="line.2420"></a>
-<span class="sourceLineNo">2421</span>      // now create data.<a name="line.2421"></a>
-<span class="sourceLineNo">2422</span>      Put put = new Put(rowA);<a name="line.2422"></a>
-<span class="sourceLineNo">2423</span>      put.addColumn(fam2, null, value);<a name="line.2423"></a>
-<span class="sourceLineNo">2424</span>      region.put(put);<a name="line.2424"></a>
-<span class="sourceLineNo">2425</span><a name="line.2425"></a>
-<span class="sourceLineNo">2426</span>      put = new Put(rowB);<a name="line.2426"></a>
-<span class="sourceLineNo">2427</span>      put.addColumn(fam1, null, value);<a name="line.2427"></a>
-<span class="sourceLineNo">2428</span>      put.addColumn(fam2, null, value);<a name="line.2428"></a>
-<span class="sourceLineNo">2429</span>      region.put(put);<a name="line.2429"></a>
-<span class="sourceLineNo">2430</span><a name="line.2430"></a>
-<span class="sourceLineNo">2431</span>      Scan scan = new Scan();<a name="line.2431"></a>
-<span class="sourceLineNo">2432</span>      scan.addFamily(fam1).addFamily(fam2);<a name="line.2432"></a>
-<span class="sourceLineNo">2433</span>      InternalScanner s = region.getScanner(scan);<a name="line.2433"></a>
-<span class="sourceLineNo">2434</span>      List&lt;Cell&gt; results = new ArrayList&lt;&gt;();<a name="line.2434"></a>
-<span class="sourceLineNo">2435</span>      s.next(results);<a name="line.2435"></a>
-<span class="sourceLineNo">2436</span>      assertTrue(CellUtil.matchingRows(results.get(0), rowA));<a name="line.2436"></a>
-<span class="sourceLineNo">2437</span><a name="line.2437"></a>
-<span class="sourceLineNo">2438</span>      results.clear();<a name="line.2438"></a>
-<span class="sourceLineNo">2439</span>      s.next(results);<a name="line.2439"></a>
-<span class="sourceLineNo">2440</span>      assertTrue(CellUtil.matchingRows(results.get(0), rowB));<a name="line.2440"></a>
-<span class="sourceLineNo">2441</span>    } finally {<a name="line.2441"></a>
-<span class="sourceLineNo">2442</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2442"></a>
-<span class="sourceLineNo">2443</span>      this.region = null;<a name="line.2443"></a>
-<span class="sourceLineNo">2444</span>    }<a name="line.2444"></a>
-<span class="sourceLineNo">2445</span>  }<a name="line.2445"></a>
-<span class="sourceLineNo">2446</span><a name="line.2446"></a>
-<span class="sourceLineNo">2447</span>  @Test<a name="line.2447"></a>
-<span class="sourceLineNo">2448</span>  public void testDataInMemoryWithoutWAL() throws IOException {<a name="line.2448"></a>
-<span class="sourceLineNo">2449</span>    FileSystem fs = FileSystem.get(CONF);<a name="line.2449"></a>
-<span class="sourceLineNo">2450</span>    Path rootDir = new Path(dir + "testDataInMemoryWithoutWAL");<a name="line.2450"></a>
-<span class="sourceLineNo">2451</span>    FSHLog hLog = new FSHLog(fs, rootDir, "testDataInMemoryWithoutWAL", CONF);<a name="line.2451"></a>
-<span class="sourceLineNo">2452</span>    // This chunk creation is done throughout the code base. Do we want to move it into core?<a name="line.2452"></a>
-<span class="sourceLineNo">2453</span>    // It is missing from this test. W/o it we NPE.<a name="line.2453"></a>
-<span class="sourceLineNo">2454</span>    ChunkCreator.initialize(MemStoreLABImpl.CHUNK_SIZE_DEFAULT, false, 0, 0, 0, null);<a name="line.2454"></a>
-<span class="sourceLineNo">2455</span>    HRegion region = initHRegion(tableName, null, null, false, Durability.SYNC_WAL, hLog,<a name="line.2455"></a>
-<span class="sourceLineNo">2456</span>        COLUMN_FAMILY_BYTES);<a name="line.2456"></a>
-<span class="sourceLineNo">2457</span><a name="line.2457"></a>
-<span class="sourceLineNo">2458</span>    Cell originalCell = CellUtil.createCell(row, COLUMN_FAMILY_BYTES, qual1,<a name="line.2458"></a>
-<span class="sourceLineNo">2459</span>      System.currentTimeMillis(), KeyValue.Type.Put.getCode(), value1);<a name="line.2459"></a>
-<span class="sourceLineNo">2460</span>    final long originalSize = KeyValueUtil.length(originalCell);<a name="line.2460"></a>
-<span class="sourceLineNo">2461</span><a name="line.2461"></a>
-<span class="sourceLineNo">2462</span>    Cell addCell = CellUtil.createCell(row, COLUMN_FAMILY_BYTES, qual1,<a name="line.2462"></a>
-<span class="sourceLineNo">2463</span>      System.currentTimeMillis(), KeyValue.Type.Put.getCode(), Bytes.toBytes("xxxxxxxxxx"));<a name="line.2463"></a>
-<span class="sourceLineNo">2464</span>    final long addSize = KeyValueUtil.length(addCell);<a name="line.2464"></a>
-<span class="sourceLineNo">2465</span><a name="line.2465"></a>
-<span class="sourceLineNo">2466</span>    LOG.info("originalSize:" + originalSize<a name="line.2466"></a>
-<span class="sourceLineNo">2467</span>      + ", addSize:" + addSize);<a name="line.2467"></a>
-<span class="sourceLineNo">2468</span>    // start test. We expect that the addPut's durability will be replaced<a name="line.2468"></a>
-<span class="sourceLineNo">2469</span>    // by originalPut's durability.<a name="line.2469"></a>
-<span class="sourceLineNo">2470</span><a name="line.2470"></a>
-<span class="sourceLineNo">2471</span>    // case 1:<a name="line.2471"></a>
-<span class="sourceLineNo">2472</span>    testDataInMemoryWithoutWAL(region,<a name="line.2472"></a>
-<span class="sourceLineNo">2473</span>            new Put(row).add(originalCell).setDurability(Durability.SKIP_WAL),<a name="line.2473"></a>
-<span class="sourceLineNo">2474</span>            new Put(row).add(addCell).setDurability(Durability.SKIP_WAL),<a name="line.2474"></a>
-<span class="sourceLineNo">2475</span>            originalSize + addSize);<a name="line.2475"></a>
-<span class="sourceLineNo">2476</span><a name="line.2476"></a>
-<span class="sourceLineNo">2477</span>    // case 2:<a name="line.2477"></a>
-<span class="sourceLineNo">2478</span>    testDataInMemoryWithoutWAL(region,<a name="line.2478"></a>
-<span class="sourceLineNo">2479</span>            new Put(row).add(originalCell).setDurability(Durability.SKIP_WAL),<a name="line.2479"></a>
-<span class="sourceLineNo">2480</span>            new Put(row).add(addCell).setDurability(Durability.SYNC_WAL),<a name="line.2480"></a>
-<span class="sourceLineNo">2481</span>            originalSize + addSize);<a name="line.2481"></a>
-<span class="sourceLineNo">2482</span><a name="line.2482"></a>
-<span class="sourceLineNo">2483</span>    // case 3:<a name="line.2483"></a>
-<span class="sourceLineNo">2484</span>    testDataInMemoryWithoutWAL(region,<a name="line.2484"></a>
-<span class="sourceLineNo">2485</span>            new Put(row).add(originalCell).setDurability(Durability.SYNC_WAL),<a name="line.2485"></a>
-<span class="sourceLineNo">2486</span>            new Put(row).add(addCell).setDurability(Durability.SKIP_WAL),<a name="line.2486"></a>
-<span class="sourceLineNo">2487</span>            0);<a name="line.2487"></a>
-<span class="sourceLineNo">2488</span><a name="line.2488"></a>
-<span class="sourceLineNo">2489</span>    // case 4:<a name="line.2489"></a>
-<span class="sourceLineNo">2490</span>    testDataInMemoryWithoutWAL(region,<a name="line.2490"></a>
-<span class="sourceLineNo">2491</span>            new Put(row).add(originalCell).setDurability(Durability.SYNC_WAL),<a name="line.2491"></a>
-<span class="sourceLineNo">2492</span>            new Put(row).add(addCell).setDurability(Durability.SYNC_WAL),<a name="line.2492"></a>
-<span class="sourceLineNo">2493</span>            0);<a name="line.2493"></a>
-<span class="sourceLineNo">2494</span>  }<a name="line.2494"></a>
-<span class="sourceLineNo">2495</span><a name="line.2495"></a>
-<span class="sourceLineNo">2496</span>  private static void testDataInMemoryWithoutWAL(HRegion region, Put originalPut,<a name="line.2496"></a>
-<span class="sourceLineNo">2497</span>          final Put addPut, long delta) throws IOException {<a name="line.2497"></a>
-<span class="sourceLineNo">2498</span>    final long initSize = region.getDataInMemoryWithoutWAL();<a name="line.2498"></a>
-<span class="sourceLineNo">2499</span>    // save normalCPHost and replaced by mockedCPHost<a name="line.2499"></a>
-<span class="sourceLineNo">2500</span>    RegionCoprocessorHost normalCPHost = region.getCoprocessorHost();<a name="line.2500"></a>
-<span class="sourceLineNo">2501</span>    RegionCoprocessorHost mockedCPHost = Mockito.mock(RegionCoprocessorHost.class);<a name="line.2501"></a>
-<span class="sourceLineNo">2502</span>    // Because the preBatchMutate returns void, we can't do usual Mockito when...then form. Must<a name="line.2502"></a>
-<span class="sourceLineNo">2503</span>    // do below format (from Mockito doc).<a name="line.2503"></a>
-<span class="sourceLineNo">2504</span>    Mockito.doAnswer(new Answer() {<a name="line.2504"></a>
-<span class="sourceLineNo">2505</span>      @Override<a name="line.2505"></a>
-<span class="sourceLineNo">2506</span>      public Object answer(InvocationOnMock invocation) throws Throwable {<a name="line.2506"></a>
-<span class="sourceLineNo">2507</span>        MiniBatchOperationInProgress&lt;Mutation&gt; mb = invocation.getArgument(0);<a name="line.2507"></a>
-<span class="sourceLineNo">2508</span>        mb.addOperationsFromCP(0, new Mutation[]{addPut});<a name="line.2508"></a>
-<span class="sourceLineNo">2509</span>        return null;<a name="line.2509"></a>
-<span class="sourceLineNo">2510</span>      }<a name="line.2510"></a>
-<span class="sourceLineNo">2511</span>    }).when(mockedCPHost).preBatchMutate(Mockito.isA(MiniBatchOperationInProgress.class));<a name="line.2511"></a>
-<span class="sourceLineNo">2512</span>    region.setCoprocessorHost(mockedCPHost);<a name="line.2512"></a>
-<span class="sourceLineNo">2513</span>    region.put(originalPut);<a name="line.2513"></a>
-<span class="sourceLineNo">2514</span>    region.setCoprocessorHost(normalCPHost);<a name="line.2514"></a>
-<span class="sourceLineNo">2515</span>    final long finalSize = region.getDataInMemoryWithoutWAL();<a name="line.2515"></a>
-<span class="sourceLineNo">2516</span>    assertEquals("finalSize:" + finalSize + ", initSize:"<a name="line.2516"></a>
-<span class="sourceLineNo">2517</span>      + initSize + ", delta:" + delta,finalSize, initSize + delta);<a name="line.2517"></a>
-<span class="sourceLineNo">2518</span>  }<a name="line.2518"></a>
-<span class="sourceLineNo">2519</span><a name="line.2519"></a>
-<span class="sourceLineNo">2520</span>  @Test<a name="line.2520"></a>
-<span class="sourceLineNo">2521</span>  public void testDeleteColumns_PostInsert() throws IOException, InterruptedException {<a name="line.2521"></a>
-<span class="sourceLineNo">2522</span>    Delete delete = new Delete(row);<a name="line.2522"></a>
-<span class="sourceLineNo">2523</span>    delete.addColumns(fam1, qual1);<a name="line.2523"></a>
-<span class="sourceLineNo">2524</span>    doTestDelete_AndPostInsert(delete);<a name="line.2524"></a>
-<span class="sourceLineNo">2525</span>  }<a name="line.2525"></a>
-<span class="sourceLineNo">2526</span><a name="line.2526"></a>
-<span class="sourceLineNo">2527</span>  @Test<a name="line.2527"></a>
-<span class="sourceLineNo">2528</span>  public void testaddFamily_PostInsert() throws IOException, InterruptedException {<a name="line.2528"></a>
-<span class="sourceLineNo">2529</span>    Delete delete = new Delete(row);<a name="line.2529"></a>
-<span class="sourceLineNo">2530</span>    delete.addFamily(fam1);<a name="line.2530"></a>
-<span class="sourceLineNo">2531</span>    doTestDelete_AndPostInsert(delete);<a name="line.2531"></a>
-<span class="sourceLineNo">2532</span>  }<a name="line.2532"></a>
-<span class="sourceLineNo">2533</span><a name="line.2533"></a>
-<span class="sourceLineNo">2534</span>  public void doTestDelete_AndPostInsert(Delete delete) throws IOException, InterruptedException {<a name="line.2534"></a>
-<span class="sourceLineNo">2535</span>    this.region = initHRegion(tableName, method, CONF, fam1);<a name="line.2535"></a>
-<span class="sourceLineNo">2536</span>    try {<a name="line.2536"></a>
-<span class="sourceLineNo">2537</span>      EnvironmentEdgeManagerTestHelper.injectEdge(new IncrementingEnvironmentEdge());<a name="line.2537"></a>
-<span class="sourceLineNo">2538</span>      Put put = new Put(row);<a name="line.2538"></a>
-<span class="sourceLineNo">2539</span>      put.addColumn(fam1, qual1, value1);<a name="line.2539"></a>
-<span class="sourceLineNo">2540</span>      region.put(put);<a name="line.2540"></a>
-<span class="sourceLineNo">2541</span><a name="line.2541"></a>
-<span class="sourceLineNo">2542</span>      // now delete the value:<a name="line.2542"></a>
-<span class="sourceLineNo">2543</span>      region.delete(delete);<a name="line.2543"></a>
-<span class="sourceLineNo">2544</span><a name="line.2544"></a>
-<span class="sourceLineNo">2545</span>      // ok put data:<a name="line.2545"></a>
-<span class="sourceLineNo">2546</span>      put = new Put(row);<a name="line.2546"></a>
-<span class="sourceLineNo">2547</span>      put.addColumn(fam1, qual1, value2);<a name="line.2547"></a>
-<span class="sourceLineNo">2548</span>      region.put(put);<a name="line.2548"></a>
-<span class="sourceLineNo">2549</span><a name="line.2549"></a>
-<span class="sourceLineNo">2550</span>      // ok get:<a name="line.2550"></a>
-<span class="sourceLineNo">2551</span>      Get get = new Get(row);<a name="line.2551"></a>
-<span class="sourceLineNo">2552</span>      get.addColumn(fam1, qual1);<a name="line.2552"></a>
-<span class="sourceLineNo">2553</span><a name="line.2553"></a>
-<span class="sourceLineNo">2554</span>      Result r = region.get(get);<a name="line.2554"></a>
-<span class="sourceLineNo">2555</span>      assertEquals(1, r.size());<a name="line.2555"></a>
-<span class="sourceLineNo">2556</span>      assertArrayEquals(value2, r.getValue(fam1, qual1));<a name="line.2556"></a>
-<span class="sourceLineNo">2557</span><a name="line.2557"></a>
-<span class="sourceLineNo">2558</span>      // next:<a name="line.2558"></a>
-<span class="sourceLineNo">2559</span>      Scan scan = new Scan(row);<a name="line.2559"></a>
-<span class="sourceLineNo">2560</span>      scan.addColumn(fam1, qual1);<a name="line.2560"></a>
-<span class="sourceLineNo">2561</span>      InternalScanner s = region.getScanner(scan);<a name="line.2561"></a>
-<span class="sourceLineNo">2562</span><a name="line.2562"></a>
-<span class="sourceLineNo">2563</span>      List&lt;Cell&gt; results = new ArrayList&lt;&gt;();<a name="line.2563"></a>
-<span class="sourceLineNo">2564</span>      assertEquals(false, s.next(results));<a name="line.2564"></a>
-<span class="sourceLineNo">2565</span>      assertEquals(1, results.size());<a name="line.2565"></a>
-<span class="sourceLineNo">2566</span>      Cell kv = results.get(0);<a name="line.2566"></a>
-<span class="sourceLineNo">2567</span><a name="line.2567"></a>
-<span class="sourceLineNo">2568</span>      assertArrayEquals(value2, CellUtil.cloneValue(kv));<a name="line.2568"></a>
-<span class="sourceLineNo">2569</span>      assertArrayEquals(fam1, CellUtil.cloneFamily(kv));<a name="line.2569"></a>
-<span class="sourceLineNo">2570</span>      assertArrayEquals(qual1, CellUtil.cloneQualifier(kv));<a name="line.2570"></a>
-<span class="sourceLineNo">2571</span>      assertArrayEquals(row, CellUtil.cloneRow(kv));<a name="line.2571"></a>
-<span class="sourceLineNo">2572</span>    } finally {<a name="line.2572"></a>
-<span class="sourceLineNo">2573</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2573"></a>
-<span class="sourceLineNo">2574</span>      this.region = null;<a name="line.2574"></a>
-<span class="sourceLineNo">2575</span>    }<a name="line.2575"></a>
-<span class="sourceLineNo">2576</span>  }<a name="line.2576"></a>
-<span class="sourceLineNo">2577</span><a name="line.2577"></a>
-<span class="sourceLineNo">2578</span>  @Test<a name="line.2578"></a>
-<span class="sourceLineNo">2579</span>  public void testDelete_CheckTimestampUpdated() throws IOException {<a name="line.2579"></a>
-<span class="sourceLineNo">2580</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.2580"></a>
-<span class="sourceLineNo">2581</span>    byte[] col1 = Bytes.toBytes("col1");<a name="line.2581"></a>
-<span class="sourceLineNo">2582</span>    byte[] col2 = Bytes.toBytes("col2");<a name="line.2582"></a>
-<span class="sourceLineNo">2583</span>    byte[] col3 = Bytes.toBytes("col3");<a name="line.2583"></a>
-<span class="sourceLineNo">2584</span><a name="line.2584"></a>
-<span class="sourceLineNo">2585</span>    // Setting up region<a name="line.2585"></a>
-<span class="sourceLineNo">2586</span>    this.region = initHRegion(tableName, method, CONF, fam1);<a name="line.2586"></a>
-<span class="sourceLineNo">2587</span>    try {<a name="line.2587"></a>
-<span class="sourceLineNo">2588</span>      // Building checkerList<a name="line.2588"></a>
-<span class="sourceLineNo">2589</span>      List&lt;Cell&gt; kvs = new ArrayList&lt;&gt;();<a name="line.2589"></a>
-<span class="sourceLineNo">2590</span>      kvs.add(new KeyValue(row1, fam1, col1, null));<a name="line.2590"></a>
-<span class="sourceLineNo">2591</span>      kvs.add(new KeyValue(row1, fam1, col2, null));<a name="line.2591"></a>
-<span class="sourceLineNo">2592</span>      kvs.add(new KeyValue(row1, fam1, col3, null));<a name="line.2592"></a>
-<span class="sourceLineNo">2593</span><a name="line.2593"></a>
-<span class="sourceLineNo">2594</span>      NavigableMap&lt;byte[], List&lt;Cell&gt;&gt; deleteMap = new TreeMap&lt;&gt;(Bytes.BYTES_COMPARATOR);<a name="line.2594"></a>
-<span class="sourceLineNo">2595</span>      deleteMap.put(fam1, kvs);<a name="line.2595"></a>
-<span class="sourceLineNo">2596</span>      region.delete(deleteMap, Durability.SYNC_WAL);<a name="line.2596"></a>
-<span class="sourceLineNo">2597</span><a name="line.2597"></a>
-<span class="sourceLineNo">2598</span>      // extract the key values out the memstore:<a name="line.2598"></a>
-<span class="sourceLineNo">2599</span>      // This is kinda hacky, but better than nothing...<a name="line.2599"></a>
-<span class="sourceLineNo">2600</span>      long now = System.currentTimeMillis();<a name="line.2600"></a>
-<span class="sourceLineNo">2601</span>      AbstractMemStore memstore = (AbstractMemStore)region.getStore(fam1).memstore;<a name="line.2601"></a>
-<span class="sourceLineNo">2602</span>      Cell firstCell = memstore.getActive().first();<a name="line.2602"></a>
-<span class="sourceLineNo">2603</span>      assertTrue(firstCell.getTimestamp() &lt;= now);<a name="line.2603"></a>
-<span class="sourceLineNo">2604</span>      now = firstCell.getTimestamp();<a name="line.2604"></a>
-<span class="sourceLineNo">2605</span>      for (Cell cell : memstore.getActive().getCellSet()) {<a name="line.2605"></a>
-<span class="sourceLineNo">2606</span>        assertTrue(cell.getTimestamp() &lt;= now);<a name="line.2606"></a>
-<span class="sourceLineNo">2607</span>        now = cell.getTimestamp();<a name="line.2607"></a>
-<span class="sourceLineNo">2608</span>      }<a name="line.2608"></a>
-<span class="sourceLineNo">2609</span>    } finally {<a name="line.2609"></a>
-<span class="sourceLineNo">2610</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2610"></a>
-<span class="sourceLineNo">2611</span>      this.region = null;<a name="line.2611"></a>
-<span class="sourceLineNo">2612</span>    }<a name="line.2612"></a>
-<span class="sourceLineNo">2613</span>  }<a name="line.2613"></a>
-<span class="sourceLineNo">2614</span><a name="line.2614"></a>
-<span class="sourceLineNo">2615</span>  // ////////////////////////////////////////////////////////////////////////////<a name="line.2615"></a>
-<span class="sourceLineNo">2616</span>  // Get tests<a name="line.2616"></a>
-<span class="sourceLineNo">2617</span>  // ////////////////////////////////////////////////////////////////////////////<a name="line.2617"></a>
-<span class="sourceLineNo">2618</span>  @Test<a name="line.2618"></a>
-<span class="sourceLineNo">2619</span>  public void testGet_FamilyChecker() throws IOException {<a name="line.2619"></a>
-<span class="sourceLineNo">2620</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.2620"></a>
-<span class="sourceLineNo">2621</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2621"></a>
-<span class="sourceLineNo">2622</span>    byte[] fam2 = Bytes.toBytes("False");<a name="line.2622"></a>
-<span class="sourceLineNo">2623</span>    byte[] col1 = Bytes.toBytes("col1");<a name="line.2623"></a>
-<span class="sourceLineNo">2624</span><a name="line.2624"></a>
-<span class="sourceLineNo">2625</span>    // Setting up region<a name="line.2625"></a>
-<span class="sourceLineNo">2626</span>    this.region = initHRegion(tableName, method, CONF, fam1);<a name="line.2626"></a>
-<span class="sourceLineNo">2627</span>    try {<a name="line.2627"></a>
-<span class="sourceLineNo">2628</span>      Get get = new Get(row1);<a name="line.2628"></a>
-<span class="sourceLineNo">2629</span>      get.addColumn(fam2, col1);<a name="line.2629"></a>
-<span class="sourceLineNo">2630</span><a name="line.2630"></a>
-<span class="sourceLineNo">2631</span>      // Test<a name="line.2631"></a>
-<span class="sourceLineNo">2632</span>      try {<a name="line.2632"></a>
-<span class="sourceLineNo">2633</span>        region.get(get);<a name="line.2633"></a>
-<span class="sourceLineNo">2634</span>      } catch (org.apache.hadoop.hbase.DoNotRetryIOException e) {<a name="line.2634"></a>
-<span class="sourceLineNo">2635</span>        assertFalse(false);<a name="line.2635"></a>
-<span class="sourceLineNo">2636</span>        return;<a name="line.2636"></a>
-<span class="sourceLineNo">2637</span>      }<a name="line.2637"></a>
-<span class="sourceLineNo">2638</span>      assertFalse(true);<a name="line.2638"></a>
-<span class="sourceLineNo">2639</span>    } finally {<a name="line.2639"></a>
-<span class="sourceLineNo">2640</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2640"></a>
-<span class="sourceLineNo">2641</span>      this.region = null;<a name="line.2641"></a>
-<span class="sourceLineNo">2642</span>    }<a name="line.2642"></a>
-<span class="sourceLineNo">2643</span>  }<a name="line.2643"></a>
-<span class="sourceLineNo">2644</span><a name="line.2644"></a>
-<span class="sourceLineNo">2645</span>  @Test<a name="line.2645"></a>
-<span class="sourceLineNo">2646</span>  public void testGet_Basic() throws IOException {<a name="line.2646"></a>
-<span class="sourceLineNo">2647</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.2647"></a>
-<span class="sourceLineNo">2648</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2648"></a>
-<span class="sourceLineNo">2649</span>    byte[] col1 = Bytes.toBytes("col1");<a name="line.2649"></a>
-<span class="sourceLineNo">2650</span>    byte[] col2 = Bytes.toBytes("col2");<a name="line.2650"></a>
-<span class="sourceLineNo">2651</span>    byte[] col3 = Bytes.toBytes("col3");<a name="line.2651"></a>
-<span class="sourceLineNo">2652</span>    byte[] col4 = Bytes.toBytes("col4");<a name="line.2652"></a>
-<span class="sourceLineNo">2653</span>    byte[] col5 = Bytes.toBytes("col5");<a name="line.2653"></a>
-<span class="sourceLineNo">2654</span><a name="line.2654"></a>
-<span class="sourceLineNo">2655</span>    // Setting up region<a name="line.2655"></a>
-<span class="sourceLineNo">2656</span>    this.region = initHRegion(tableName, method, CONF, fam1);<a name="line.2656"></a>
-<span class="sourceLineNo">2657</span>    try {<a name="line.2657"></a>
-<span class="sourceLineNo">2658</span>      // Add to memstore<a name="line.2658"></a>
-<span class="sourceLineNo">2659</span>      Put put = new Put(row1);<a name="line.2659"></a>
-<span class="sourceLineNo">2660</span>      put.addColumn(fam1, col1, null);<a name="line.2660"></a>
-<span class="sourceLineNo">2661</span>      put.addColumn(fam1, col2, null);<a name="line.2661"></a>
-<span class="sourceLineNo">2662</span>      put.addColumn(fam1, col3, null);<a name="line.2662"></a>
-<span class="sourceLineNo">2663</span>      put.addColumn(fam1, col4, null);<a name="line.2663"></a>
-<span class="sourceLineNo">2664</span>      put.addColumn(fam1, col5, null);<a name="line.2664"></a>
-<span class="sourceLineNo">2665</span>      region.put(put);<a name="line.2665"></a>
-<span class="sourceLineNo">2666</span><a name="line.2666"></a>
-<span class="sourceLineNo">2667</span>      Get get = new Get(row1);<a name="line.2667"></a>
-<span class="sourceLineNo">2668</span>      get.addColumn(fam1, col2);<a name="line.2668"></a>
-<span class="sourceLineNo">2669</span>      get.addColumn(fam1, col4);<a name="line.2669"></a>
-<span class="sourceLineNo">2670</span>      // Expected result<a name="line.2670"></a>
-<span class="sourceLineNo">2671</span>      KeyValue kv1 = new KeyValue(row1, fam1, col2);<a name="line.2671"></a>
-<span class="sourceLineNo">2672</span>      KeyValue kv2 = new KeyValue(row1, fam1, col4);<a name="line.2672"></a>
-<span class="sourceLineNo">2673</span>      KeyValue[] expected = { kv1, kv2 };<a name="line.2673"></a>
-<span class="sourceLineNo">2674</span><a name="line.2674"></a>
-<span class="sourceLineNo">2675</span>      // Test<a name="line.2675"></a>
-<span class="sourceLineNo">2676</span>      Result res = region.get(get);<a name="line.2676"></a>
-<span class="sourceLineNo">2677</span>      assertEquals(expected.length, res.size());<a name="line.2677"></a>
-<span class="sourceLineNo">2678</span>      for (int i = 0; i &lt; res.size(); i++) {<a name="line.2678"></a>
-<span class="sourceLineNo">2679</span>        assertTrue(CellUtil.matchingRows(expected[i], res.rawCells()[i]));<a name="line.2679"></a>
-<span class="sourceLineNo">2680</span>        assertTrue(CellUtil.matchingFamily(expected[i], res.rawCells()[i]));<a name="line.2680"></a>
-<span class="sourceLineNo">2681</span>        assertTrue(CellUtil.matchingQualifier(expected[i], res.rawCells()[i]));<a name="line.2681"></a>
-<span class="sourceLineNo">2682</span>      }<a name="line.2682"></a>
-<span class="sourceLineNo">2683</span><a name="line.2683"></a>
-<span class="sourceLineNo">2684</span>      // Test using a filter on a Get<a name="line.2684"></a>
-<span class="sourceLineNo">2685</span>      Get g = new Get(row1);<a name="line.2685"></a>
-<span class="sourceLineNo">2686</span>      final int count = 2;<a name="line.2686"></a>
-<span class="sourceLineNo">2687</span>      g.setFilter(new ColumnCountGetFilter(count));<a name="line.2687"></a>
-<span class="sourceLineNo">2688</span>      res = region.get(g);<a name="line.2688"></a>
-<span class="sourceLineNo">2689</span>      assertEquals(count, res.size());<a name="line.2689"></a>
-<span class="sourceLineNo">2690</span>    } finally {<a name="line.2690"></a>
-<span class="sourceLineNo">2691</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2691"></a>
-<span class="sourceLineNo">2692</span>      this.region = null;<a name="line.2692"></a>
-<span class="sourceLineNo">2693</span>    }<a name="line.2693"></a>
-<span class="sourceLineNo">2694</span>  }<a name="line.2694"></a>
-<span class="sourceLineNo">2695</span><a name="line.2695"></a>
-<span class="sourceLineNo">2696</span>  @Test<a name="line.2696"></a>
-<span class="sourceLineNo">2697</span>  public void testGet_Empty() throws IOException {<a name="line.2697"></a>
-<span class="sourceLineNo">2698</span>    byte[] row = Bytes.toBytes("row");<a name="line.2698"></a>
-<span class="sourceLineNo">2699</span>    byte[] fam = Bytes.toBytes("fam");<a name="line.2699"></a>
-<span class="sourceLineNo">2700</span><a name="line.2700"></a>
-<span class="sourceLineNo">2701</span>    this.region = initHRegion(tableName, method, CONF, fam);<a name="line.2701"></a>
-<span class="sourceLineNo">2702</span>    try {<a name="line.2702"></a>
-<span class="sourceLineNo">2703</span>      Get get = new Get(row);<a name="line.2703"></a>
-<span class="sourceLineNo">2704</span>      get.addFamily(fam);<a name="line.2704"></a>
-<span class="sourceLineNo">2705</span>      Result r = region.get(get);<a name="line.2705"></a>
-<span class="sourceLineNo">2706</span><a name="line.2706"></a>
-<span class="sourceLineNo">2707</span>      assertTrue(r.isEmpty());<a name="line.2707"></a>
-<span class="sourceLineNo">2708</span>    } finally {<a name="line.2708"></a>
-<span class="sourceLineNo">2709</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2709"></a>
-<span class="sourceLineNo">2710</span>      this.region = null;<a name="line.2710"></a>
-<span class="sourceLineNo">2711</span>    }<a name="line.2711"></a>
-<span class="sourceLineNo">2712</span>  }<a name="line.2712"></a>
-<span class="sourceLineNo">2713</span><a name="line.2713"></a>
-<span class="sourceLineNo">2714</span>  @Test<a name="line.2714"></a>
-<span class="sourceLineNo">2715</span>  public void testGetWithFilter() throws IOException, InterruptedException {<a name="line.2715"></a>
-<span class="sourceLineNo">2716</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.2716"></a>
-<span class="sourceLineNo">2717</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2717"></a>
-<span class="sourceLineNo">2718</span>    byte[] col1 = Bytes.toBytes("col1");<a name="line.2718"></a>
-<span class="sourceLineNo">2719</span>    byte[] value1 = Bytes.toBytes("value1");<a name="line.2719"></a>
-<span class="sourceLineNo">2720</span>    byte[] value2 = Bytes.toBytes("value2");<a name="line.2720"></a>
-<span class="sourceLineNo">2721</span><a name="line.2721"></a>
-<span class="sourceLineNo">2722</span>    final int maxVersions = 3;<a name="line.2722"></a>
-<span class="sourceLineNo">2723</span>    HColumnDescriptor hcd = new HColumnDescriptor(fam1);<a name="line.2723"></a>
-<span class="sourceLineNo">2724</span>    hcd.setMaxVersions(maxVersions);<a name="line.2724"></a>
-<span class="sourceLineNo">2725</span>    HTableDescriptor htd = new HTableDescriptor(TableName.valueOf("testFilterAndColumnTracker"));<a name="line.2725"></a>
-<span class="sourceLineNo">2726</span>    htd.addFamily(hcd);<a name="line.2726"></a>
-<span class="sourceLineNo">2727</span>    ChunkCreator.initialize(MemStoreLABImpl.CHUNK_SIZE_DEFAULT, false, 0, 0, 0, null);<a name="line.2727"></a>
-<span class="sourceLineNo">2728</span>    HRegionInfo info = new HRegionInfo(htd.getTableName(), null, null, false);<a name="line.2728"></a>
-<span class="sourceLineNo">2729</span>    Path logDir = TEST_UTIL.getDataTestDirOnTestFS(method + ".log");<a name="line.2729"></a>
-<span class="sourceLineNo">2730</span>    final WAL wal = HBaseTestingUtility.createWal(TEST_UTIL.getConfiguration(), logDir, info);<a name="line.2730"></a>
-<span class="sourceLineNo">2731</span>    this.region = TEST_UTIL.createLocalHRegion(info, htd, wal);<a name="line.2731"></a>
-<span class="sourceLineNo">2732</span><a name="line.2732"></a>
-<span class="sourceLineNo">2733</span>    try {<a name="line.2733"></a>
-<span class="sourceLineNo">2734</span>      // Put 4 version to memstore<a name="line.2734"></a>
-<span class="sourceLineNo">2735</span>      long ts = 0;<a name="line.2735"></a>
-<span class="sourceLineNo">2736</span>      Put put = new Put(row1, ts);<a name="line.2736"></a>
-<span class="sourceLineNo">2737</span>      put.addColumn(fam1, col1, value1);<a name="line.2737"></a>
-<span class="sourceLineNo">2738</span>      region.put(put);<a name="line.2738"></a>
-<span class="sourceLineNo">2739</span>      put = new Put(row1, ts + 1);<a name="line.2739"></a>
-<span class="sourceLineNo">2740</span>      put.addColumn(fam1, col1, Bytes.toBytes("filter1"));<a name="line.2740"></a>
-<span class="sourceLineNo">2741</span>      region.put(put);<a name="line.2741"></a>
-<span class="sourceLineNo">2742</span>      put = new Put(row1, ts + 2);<a name="line.2742"></a>
-<span class="sourceLineNo">2743</span>      put.addColumn(fam1, col1, Bytes.toBytes("filter2"));<a name="line.2743"></a>
-<span class="sourceLineNo">2744</span>      region.put(put);<a name="line.2744"></a>
-<span class="sourceLineNo">2745</span>      put = new Put(row1, ts + 3);<a name="line.2745"></a>
-<span class="sourceLineNo">2746</span>      put.addColumn(fam1, col1, value2);<a name="line.2746"></a>
-<span class="sourceLineNo">2747</span>      region.put(put);<a name="line.2747"></a>
-<span class="sourceLineNo">2748</span><a name="line.2748"></a>
-<span class="sourceLineNo">2749</span>      Get get = new Get(row1);<a name="line.2749"></a>
-<span class="sourceLineNo">2750</span>      get.setMaxVersions();<a name="line.2750"></a>
-<span class="sourceLineNo">2751</span>      Result res = region.get(get);<a name="line.2751"></a>
-<span class="sourceLineNo">2752</span>      // Get 3 versions, the oldest version has gone from user view<a name="line.2752"></a>
-<span class="sourceLineNo">2753</span>      assertEquals(maxVersions, res.size());<a name="line.2753"></a>
-<span class="sourceLineNo">2754</span><a name="line.2754"></a>
-<span class="sourceLineNo">2755</span>      get.setFilter(new ValueFilter(CompareOp.EQUAL, new SubstringComparator("value")));<a name="line.2755"></a>
-<span class="sourceLineNo">2756</span>      res = region.get(get);<a name="line.2756"></a>
-<span class="sourceLineNo">2757</span>      // When use value filter, the oldest version should still gone from user view and it<a name="line.2757"></a>
-<span class="sourceLineNo">2758</span>      // should only return one key vaule<a name="line.2758"></a>
-<span class="sourceLineNo">2759</span>      assertEquals(1, res.size());<a name="line.2759"></a>
-<span class="sourceLineNo">2760</span>      assertTrue(CellUtil.matchingValue(new KeyValue(row1, fam1, col1, value2), res.rawCells()[0]));<a name="line.2760"></a>
-<span class="sourceLineNo">2761</span>      assertEquals(ts + 3, res.rawCells()[0].getTimestamp());<a name="line.2761"></a>
-<span class="sourceLineNo">2762</span><a name="line.2762"></a>
-<span class="sourceLineNo">2763</span>      region.flush(true);<a name="line.2763"></a>
-<span class="sourceLineNo">2764</span>      region.compact(true);<a name="line.2764"></a>
-<span class="sourceLineNo">2765</span>      Thread.sleep(1000);<a name="line.2765"></a>
-<span class="sourceLineNo">2766</span>      res = region.get(get);<a name="line.2766"></a>
-<span class="sourceLineNo">2767</span>      // After flush and compact, the result should be consistent with previous result<a name="line.2767"></a>
-<span class="sourceLineNo">2768</span>      assertEquals(1, res.size());<a name="line.2768"></a>
-<span class="sourceLineNo">2769</span>      assertTrue(CellUtil.matchingValue(new KeyValue(row1, fam1, col1, value2), res.rawCells()[0]));<a name="line.2769"></a>
-<span class="sourceLineNo">2770</span>    } finally {<a name="line.2770"></a>
-<span class="sourceLineNo">2771</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2771"></a>
-<span class="sourceLineNo">2772</span>      this.region = null;<a name="line.2772"></a>
-<span class="sourceLineNo">2773</span>    }<a name="line.2773"></a>
-<span class="sourceLineNo">2774</span>  }<a name="line.2774"></a>
-<span class="sourceLineNo">2775</span><a name="line.2775"></a>
-<span class="sourceLineNo">2776</span>  // ////////////////////////////////////////////////////////////////////////////<a name="line.2776"></a>
-<span class="sourceLineNo">2777</span>  // Scanner tests<a name="line.2777"></a>
-<span class="sourceLineNo">2778</span>  // ////////////////////////////////////////////////////////////////////////////<a name="line.2778"></a>
-<span class="sourceLineNo">2779</span>  @Test<a name="line.2779"></a>
-<span class="sourceLineNo">2780</span>  public void testGetScanner_WithOkFamilies() throws IOException {<a name="line.2780"></a>
-<span class="sourceLineNo">2781</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2781"></a>
-<span class="sourceLineNo">2782</span>    byte[] fam2 = Bytes.toBytes("fam2");<a name="line.2782"></a>
-<span class="sourceLineNo">2783</span><a name="line.2783"></a>
-<span class="sourceLineNo">2784</span>    byte[][] families = { fam1, fam2 };<a name="line.2784"></a>
-<span class="sourceLineNo">2785</span><a name="line.2785"></a>
-<span class="sourceLineNo">2786</span>    // Setting up region<a name="line.2786"></a>
-<span class="sourceLineNo">2787</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2787"></a>
-<span class="sourceLineNo">2788</span>    try {<a name="line.2788"></a>
-<span class="sourceLineNo">2789</span>      Scan scan = new Scan();<a name="line.2789"></a>
-<span class="sourceLineNo">2790</span>      scan.addFamily(fam1);<a name="line.2790"></a>
-<span class="sourceLineNo">2791</span>      scan.addFamily(fam2);<a name="line.2791"></a>
-<span class="sourceLineNo">2792</span>      try {<a name="line.2792"></a>
-<span class="sourceLineNo">2793</span>        region.getScanner(scan);<a name="line.2793"></a>
-<span class="sourceLineNo">2794</span>      } catch (Exception e) {<a name="line.2794"></a>
-<span class="sourceLineNo">2795</span>        assertTrue("Families could not be found in Region", false);<a name="line.2795"></a>
-<span class="sourceLineNo">2796</span>      }<a name="line.2796"></a>
-<span class="sourceLineNo">2797</span>    } finally {<a name="line.2797"></a>
-<span class="sourceLineNo">2798</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2798"></a>
-<span class="sourceLineNo">2799</span>      this.region = null;<a name="line.2799"></a>
-<span class="sourceLineNo">2800</span>    }<a name="line.2800"></a>
-<span class="sourceLineNo">2801</span>  }<a name="line.2801"></a>
-<span class="sourceLineNo">2802</span><a name="line.2802"></a>
-<span class="sourceLineNo">2803</span>  @Test<a name="line.2803"></a>
-<span class="sourceLineNo">2804</span>  public void testGetScanner_WithNotOkFamilies() throws IOException {<a name="line.2804"></a>
-<span class="sourceLineNo">2805</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2805"></a>
-<span class="sourceLineNo">2806</span>    byte[] fam2 = Bytes.toBytes("fam2");<a name="line.2806"></a>
-<span class="sourceLineNo">2807</span><a name="line.2807"></a>
-<span class="sourceLineNo">2808</span>    byte[][] families = { fam1 };<a name="line.2808"></a>
-<span class="sourceLineNo">2809</span><a name="line.2809"></a>
-<span class="sourceLineNo">2810</span>    // Setting up region<a name="line.2810"></a>
-<span class="sourceLineNo">2811</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2811"></a>
-<span class="sourceLineNo">2812</span>    try {<a name="line.2812"></a>
-<span class="sourceLineNo">2813</span>      Scan scan = new Scan();<a name="line.2813"></a>
-<span class="sourceLineNo">2814</span>      scan.addFamily(fam2);<a name="line.2814"></a>
-<span class="sourceLineNo">2815</span>      boolean ok = false;<a name="line.2815"></a>
-<span class="sourceLineNo">2816</span>      try {<a name="line.2816"></a>
-<span class="sourceLineNo">2817</span>        region.getScanner(scan);<a name="line.2817"></a>
-<span class="sourceLineNo">2818</span>      } catch (Exception e) {<a name="line.2818"></a>
-<span class="sourceLineNo">2819</span>        ok = true;<a name="line.2819"></a>
-<span class="sourceLineNo">2820</span>      }<a name="line.2820"></a>
-<span class="sourceLineNo">2821</span>      assertTrue("Families could not be found in Region", ok);<a name="line.2821"></a>
-<span class="sourceLineNo">2822</span>    } finally {<a name="line.2822"></a>
-<span class="sourceLineNo">2823</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2823"></a>
-<span class="sourceLineNo">2824</span>      this.region = null;<a name="line.2824"></a>
-<span class="sourceLineNo">2825</span>    }<a name="line.2825"></a>
-<span class="sourceLineNo">2826</span>  }<a name="line.2826"></a>
-<span class="sourceLineNo">2827</span><a name="line.2827"></a>
-<span class="sourceLineNo">2828</span>  @Test<a name="line.2828"></a>
-<span class="sourceLineNo">2829</span>  public void testGetScanner_WithNoFamilies() throws IOException {<a name="line.2829"></a>
-<span class="sourceLineNo">2830</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.2830"></a>
-<span class="sourceLineNo">2831</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2831"></a>
-<span class="sourceLineNo">2832</span>    byte[] fam2 = Bytes.toBytes("fam2");<a name="line.2832"></a>
-<span class="sourceLineNo">2833</span>    byte[] fam3 = Bytes.toBytes("fam3");<a name="line.2833"></a>
-<span class="sourceLineNo">2834</span>    byte[] fam4 = Bytes.toBytes("fam4");<a name="line.2834"></a>
-<span class="sourceLineNo">2835</span><a name="line.2835"></a>
-<span class="sourceLineNo">2836</span>    byte[][] families = { fam1, fam2, fam3, fam4 };<a name="line.2836"></a>
-<span class="sourceLineNo">2837</span><a name="line.2837"></a>
-<span class="sourceLineNo">2838</span>    // Setting up region<a name="line.2838"></a>
-<span class="sourceLineNo">2839</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2839"></a>
-<span class="sourceLineNo">2840</span>    try {<a name="line.2840"></a>
-<span class="sourceLineNo">2841</span><a name="line.2841"></a>
-<span class="sourceLineNo">2842</span>      // Putting data in Region<a name="line.2842"></a>
-<span class="sourceLineNo">2843</span>      Put put = new Put(row1);<a name="line.2843"></a>
-<span class="sourceLineNo">2844</span>      put.addColumn(fam1, null, null);<a name="line.2844"></a>
-<span class="sourceLineNo">2845</span>      put.addColumn(fam2, null, null);<a name="line.2845"></a>
-<span class="sourceLineNo">2846</span>      put.addColumn(fam3, null, null);<a name="line.2846"></a>
-<span class="sourceLineNo">2847</span>      put.addColumn(fam4, null, null);<a name="line.2847"></a>
-<span class="sourceLineNo">2848</span>      region.put(put);<a name="line.2848"></a>
-<span class="sourceLineNo">2849</span><a name="line.2849"></a>
-<span class="sourceLineNo">2850</span>      Scan scan = null;<a name="line.2850"></a>
-<span class="sourceLineNo">2851</span>      HRegion.RegionScannerImpl is = null;<a name="line.2851"></a>
-<span class="sourceLineNo">2852</span><a name="line.2852"></a>
-<span class="sourceLineNo">2853</span>      // Testing to see how many scanners that is produced by getScanner,<a name="line.2853"></a>
-<span class="sourceLineNo">2854</span>      // starting<a name="line.2854"></a>
-<span class="sourceLineNo">2855</span>      // with known number, 2 - current = 1<a name="line.2855"></a>
-<span class="sourceLineNo">2856</span>      scan = new Scan();<a name="line.2856"></a>
-<span class="sourceLineNo">2857</span>      scan.addFamily(fam2);<a name="line.2857"></a>
-<span class="sourceLineNo">2858</span>      scan.addFamily(fam4);<a name="line.2858"></a>
-<span class="sourceLineNo">2859</span>      is = region.getScanner(scan);<a name="line.2859"></a>
-<span class="sourceLineNo">2860</span>      assertEquals(1, is.storeHeap.getHeap().size());<a name="line.2860"></a>
-<span class="sourceLineNo">2861</span><a name="line.2861"></a>
-<span class="sourceLineNo">2862</span>      scan = new Scan();<a name="line.2862"></a>
-<span class="sourceLineNo">2863</span>      is = region.getScanner(scan);<a name="line.2863"></a>
-<span class="sourceLineNo">2864</span>      assertEquals(families.length - 1, is.storeHeap.getHeap().size());<a name="line.2864"></a>
-<span class="sourceLineNo">2865</span>    } finally {<a name="line.2865"></a>
-<span class="sourceLineNo">2866</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2866"></a>
-<span class="sourceLineNo">2867</span>      this.region = null;<a name="line.2867"></a>
-<span class="sourceLineNo">2868</span>    }<a name="line.2868"></a>
-<span class="sourceLineNo">2869</span>  }<a name="line.2869"></a>
-<span class="sourceLineNo">2870</span><a name="line.2870"></a>
-<span class="sourceLineNo">2871</span>  /**<a name="line.2871"></a>
-<span class="sourceLineNo">2872</span>   * This method tests https://issues.apache.org/jira/browse/HBASE-2516.<a name="line.2872"></a>
-<span class="sourceLineNo">2873</span>   *<a name="line.2873"></a>
-<span class="sourceLineNo">2874</span>   * @throws IOException<a name="line.2874"></a>
-<span class="sourceLineNo">2875</span>   */<a name="line.2875"></a>
-<span class="sourceLineNo">2876</span>  @Test<a name="line.2876"></a>
-<span class="sourceLineNo">2877</span>  public void testGetScanner_WithRegionClosed() throws IOException {<a name="line.2877"></a>
-<span class="sourceLineNo">2878</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2878"></a>
-<span class="sourceLineNo">2879</span>    byte[] fam2 = Bytes.toBytes("fam2");<a name="line.2879"></a>
-<span class="sourceLineNo">2880</span><a name="line.2880"></a>
-<span class="sourceLineNo">2881</span>    byte[][] families = { fam1, fam2 };<a name="line.2881"></a>
-<span class="sourceLineNo">2882</span><a name="line.2882"></a>
-<span class="sourceLineNo">2883</span>    // Setting up region<a name="line.2883"></a>
-<span class="sourceLineNo">2884</span>    try {<a name="line.2884"></a>
-<span class="sourceLineNo">2885</span>      this.region = initHRegion(tableName, method, CONF, families);<a name="line.2885"></a>
-<span class="sourceLineNo">2886</span>    } catch (IOException e) {<a name="line.2886"></a>
-<span class="sourceLineNo">2887</span>      e.printStackTrace();<a name="line.2887"></a>
-<span class="sourceLineNo">2888</span>      fail("Got IOException during initHRegion, " + e.getMessage());<a name="line.2888"></a>
-<span class="sourceLineNo">2889</span>    }<a name="line.2889"></a>
-<span class="sourceLineNo">2890</span>    try {<a name="line.2890"></a>
-<span class="sourceLineNo">2891</span>      region.closed.set(true);<a name="line.2891"></a>
-<span class="sourceLineNo">2892</span>      try {<a name="line.2892"></a>
-<span class="sourceLineNo">2893</span>        region.getScanner(null);<a name="line.2893"></a>
-<span class="sourceLineNo">2894</span>        fail("Expected to get an exception during getScanner on a region that is closed");<a name="line.2894"></a>
-<span class="sourceLineNo">2895</span>      } catch (NotServingRegionException e) {<a name="line.2895"></a>
-<span class="sourceLineNo">2896</span>        // this is the correct exception that is expected<a name="line.2896"></a>
-<span class="sourceLineNo">2897</span>      } catch (IOException e) {<a name="line.2897"></a>
-<span class="sourceLineNo">2898</span>        fail("Got wrong type of exception - should be a NotServingRegionException, " +<a name="line.2898"></a>
-<span class="sourceLineNo">2899</span>            "but was an IOException: "<a name="line.2899"></a>
-<span class="sourceLineNo">2900</span>            + e.getMessage());<a name="line.2900"></a>
-<span class="sourceLineNo">2901</span>      }<a name="line.2901"></a>
-<span class="sourceLineNo">2902</span>    } finally {<a name="line.2902"></a>
-<span class="sourceLineNo">2903</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2903"></a>
-<span class="sourceLineNo">2904</span>      this.region = null;<a name="line.2904"></a>
-<span class="sourceLineNo">2905</span>    }<a name="line.2905"></a>
-<span class="sourceLineNo">2906</span>  }<a name="line.2906"></a>
-<span class="sourceLineNo">2907</span><a name="line.2907"></a>
-<span class="sourceLineNo">2908</span>  @Test<a name="line.2908"></a>
-<span class="sourceLineNo">2909</span>  public void testRegionScanner_Next() throws IOException {<a name="line.2909"></a>
-<span class="sourceLineNo">2910</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.2910"></a>
-<span class="sourceLineNo">2911</span>    byte[] row2 = Bytes.toBytes("row2");<a name="line.2911"></a>
-<span class="sourceLineNo">2912</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2912"></a>
-<span class="sourceLineNo">2913</span>    byte[] fam2 = Bytes.toBytes("fam2");<a name="line.2913"></a>
-<span class="sourceLineNo">2914</span>    byte[] fam3 = Bytes.toBytes("fam3");<a name="line.2914"></a>
-<span class="sourceLineNo">2915</span>    byte[] fam4 = Bytes.toBytes("fam4");<a name="line.2915"></a>
-<span class="sourceLineNo">2916</span><a name="line.2916"></a>
-<span class="sourceLineNo">2917</span>    byte[][] families = { fam1, fam2, fam3, fam4 };<a name="line.2917"></a>
-<span class="sourceLineNo">2918</span>    long ts = System.currentTimeMillis();<a name="line.2918"></a>
-<span class="sourceLineNo">2919</span><a name="line.2919"></a>
-<span class="sourceLineNo">2920</span>    // Setting up region<a name="line.2920"></a>
-<span class="sourceLineNo">2921</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2921"></a>
-<span class="sourceLineNo">2922</span>    try {<a name="line.2922"></a>
-<span class="sourceLineNo">2923</span>      // Putting data in Region<a name="line.2923"></a>
-<span class="sourceLineNo">2924</span>      Put put = null;<a name="line.2924"></a>
-<span class="sourceLineNo">2925</span>      put = new Put(row1);<a name="line.2925"></a>
-<span class="sourceLineNo">2926</span>      put.addColumn(fam1, (byte[]) null, ts, null);<a name="line.2926"></a>
-<span class="sourceLineNo">2927</span>      put.addColumn(fam2, (byte[]) null, ts, null);<a name="line.2927"></a>
-<span class="sourceLineNo">2928</span>      put.addColumn(fam3, (byte[]) null, ts, null);<a name="line.2928"></a>
-<span class="sourceLineNo">2929</span>      put.addColumn(fam4, (byte[]) null, ts, null);<a name="line.2929"></a>
-<span class="sourceLineNo">2930</span>      region.put(put);<a name="line.2930"></a>
-<span class="sourceLineNo">2931</span><a name="line.2931"></a>
-<span class="sourceLineNo">2932</span>      put = new Put(row2);<a name="line.2932"></a>
-<span class="sourceLineNo">2933</span>      put.addColumn(fam1, (byte[]) null, ts, null);<a name="line.2933"></a>
-<span class="sourceLineNo">2934</span>      put.addColumn(fam2, (byte[]) null, ts, null);<a name="line.2934"></a>
-<span class="sourceLineNo">2935</span>      put.addColumn(fam3, (byte[]) null, ts, null);<a name="line.2935"></a>
-<span class="sourceLineNo">2936</span>      put.addColumn(fam4, (byte[]) null, ts, null);<a name="line.2936"></a>
-<span class="sourceLineNo">2937</span>      region.put(put);<a name="line.2937"></a>
-<span class="sourceLineNo">2938</span><a name="line.2938"></a>
-<span class="sourceLineNo">2939</span>      Scan scan = new Scan();<a name="line.2939"></a>
-<span class="sourceLineNo">2940</span>      scan.addFamily(fam2);<a name="line.2940"></a>
-<span class="sourceLineNo">2941</span>      scan.addFamily(fam4);<a name="line.2941"></a>
-<span class="sourceLineNo">2942</span>      InternalScanner is = region.getScanner(scan);<a name="line.2942"></a>
-<span class="sourceLineNo">2943</span><a name="line.2943"></a>
-<span class="sourceLineNo">2944</span>      List&lt;Cell&gt; res = null;<a name="line.2944"></a>
-<span class="sourceLineNo">2945</span><a name="line.2945"></a>
-<span class="sourceLineNo">2946</span>      // Result 1<a name="line.2946"></a>
-<span class="sourceLineNo">2947</span>      List&lt;Cell&gt; expected1 = new ArrayList&lt;&gt;();<a name="line.2947"></a>
-<span class="sourceLineNo">2948</span>      expected1.add(new KeyValue(row1, fam2, null, ts, KeyValue.Type.Put, null));<a name="line.2948"></a>
-<span class="sourceLineNo">2949</span>      expected1.add(new KeyValue(row1, fam4, null, ts, KeyValue.Type.Put, null));<a name="line.2949"></a>
-<span class="sourceLineNo">2950</span><a name="line.2950"></a>
-<span class="sourceLineNo">2951</span>      res = new ArrayList&lt;&gt;();<a name="line.2951"></a>
-<span class="sourceLineNo">2952</span>      is.next(res);<a name="line.2952"></a>
-<span class="sourceLineNo">2953</span>      for (int i = 0; i &lt; res.size(); i++) {<a name="line.2953"></a>
-<span class="sourceLineNo">2954</span>        assertTrue(PrivateCellUtil.equalsIgnoreMvccVersion(expected1.get(i), res.get(i)));<a name="line.2954"></a>
-<span class="sourceLineNo">2955</span>      }<a name="line.2955"></a>
-<span class="sourceLineNo">2956</span><a name="line.2956"></a>
-<span class="sourceLineNo">2957</span>      // Result 2<a name="line.2957"></a>
-<span class="sourceLineNo">2958</span>      List&lt;Cell&gt; expected2 = new ArrayList&lt;&gt;();<a name="line.2958"></a>
-<span class="sourceLineNo">2959</span>      expected2.add(new KeyValue(row2, fam2, null, ts, KeyValue.Type.Put, null));<a name="line.2959"></a>
-<span class="sourceLineNo">2960</span>      expected2.add(new KeyValue(row2, fam4, null, ts, KeyValue.Type.Put, null));<a name="line.2960"></a>
-<span class="sourceLineNo">2961</span><a name="line.2961"></a>
-<span class="sourceLineNo">2962</span>      res = new ArrayList&lt;&gt;();<a name="line.2962"></a>
-<span class="sourceLineNo">2963</span>      is.next(res);<a name="line.2963"></a>
-<span class="sourceLineNo">2964</span>      for (int i = 0; i &lt; res.size(); i++) {<a name="line.2964"></a>
-<span class="sourceLineNo">2965</span>        assertTrue(PrivateCellUtil.equalsIgnoreMvccVersion(expected2.get(i), res.get(i)));<a name="line.2965"></a>
-<span class="sourceLineNo">2966</span>      }<a name="line.2966"></a>
-<span class="sourceLineNo">2967</span>    } finally {<a name="line.2967"></a>
-<span class="sourceLineNo">2968</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.2968"></a>
-<span class="sourceLineNo">2969</span>      this.region = null;<a name="line.2969"></a>
-<span class="sourceLineNo">2970</span>    }<a name="line.2970"></a>
-<span class="sourceLineNo">2971</span>  }<a name="line.2971"></a>
-<span class="sourceLineNo">2972</span><a name="line.2972"></a>
-<span class="sourceLineNo">2973</span>  @Test<a name="line.2973"></a>
-<span class="sourceLineNo">2974</span>  public void testScanner_ExplicitColumns_FromMemStore_EnforceVersions() throws IOException {<a name="line.2974"></a>
-<span class="sourceLineNo">2975</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.2975"></a>
-<span class="sourceLineNo">2976</span>    byte[] qf1 = Bytes.toBytes("qualifier1");<a name="line.2976"></a>
-<span class="sourceLineNo">2977</span>    byte[] qf2 = Bytes.toBytes("qualifier2");<a name="line.2977"></a>
-<span class="sourceLineNo">2978</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.2978"></a>
-<span class="sourceLineNo">2979</span>    byte[][] families = { fam1 };<a name="line.2979"></a>
-<span class="sourceLineNo">2980</span><a name="line.2980"></a>
-<span class="sourceLineNo">2981</span>    long ts1 = System.currentTimeMillis();<a name="line.2981"></a>
-<span class="sourceLineNo">2982</span>    long ts2 = ts1 + 1;<a name="line.2982"></a>
-<span class="sourceLineNo">2983</span>    long ts3 = ts1 + 2;<a name="line.2983"></a>
-<span class="sourceLineNo">2984</span><a name="line.2984"></a>
-<span class="sourceLineNo">2985</span>    // Setting up region<a name="line.2985"></a>
-<span class="sourceLineNo">2986</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.2986"></a>
-<span class="sourceLineNo">2987</span>    try {<a name="line.2987"></a>
-<span class="sourceLineNo">2988</span>      // Putting data in Region<a name="line.2988"></a>
-<span class="sourceLineNo">2989</span>      Put put = null;<a name="line.2989"></a>
-<span class="sourceLineNo">2990</span>      KeyValue kv13 = new KeyValue(row1, fam1, qf1, ts3, KeyValue.Type.Put, null);<a name="line.2990"></a>
-<span class="sourceLineNo">2991</span>      KeyValue kv12 = new KeyValue(row1, fam1, qf1, ts2, KeyValue.Type.Put, null);<a name="line.2991"></a>
-<span class="sourceLineNo">2992</span>      KeyValue kv11 = new KeyValue(row1, fam1, qf1, ts1, KeyValue.Type.Put, null);<a name="line.2992"></a>
-<span class="sourceLineNo">2993</span><a name="line.2993"></a>
-<span class="sourceLineNo">2994</span>      KeyValue kv23 = new KeyValue(row1, fam1, qf2, ts3, KeyValue.Type.Put, null);<a name="line.2994"></a>
-<span class="sourceLineNo">2995</span>      KeyValue kv22 = new KeyValue(row1, fam1, qf2, ts2, KeyValue.Type.Put, null);<a name="line.2995"></a>
-<span class="sourceLineNo">2996</span>      KeyValue kv21 = new KeyValue(row1, fam1, qf2, ts1, KeyValue.Type.Put, null);<a name="line.2996"></a>
-<span class="sourceLineNo">2997</span><a name="line.2997"></a>
-<span class="sourceLineNo">2998</span>      put = new Put(row1);<a name="line.2998"></a>
-<span class="sourceLineNo">2999</span>      put.add(kv13);<a name="line.2999"></a>
-<span class="sourceLineNo">3000</span>      put.add(kv12);<a name="line.3000"></a>
-<span class="sourceLineNo">3001</span>      put.add(kv11);<a name="line.3001"></a>
-<span class="sourceLineNo">3002</span>      put.add(kv23);<a name="line.3002"></a>
-<span class="sourceLineNo">3003</span>      put.add(kv22);<a name="line.3003"></a>
-<span class="sourceLineNo">3004</span>      put.add(kv21);<a name="line.3004"></a>
-<span class="sourceLineNo">3005</span>      region.put(put);<a name="line.3005"></a>
-<span class="sourceLineNo">3006</span><a name="line.3006"></a>
-<span class="sourceLineNo">3007</span>      // Expected<a name="line.3007"></a>
-<span class="sourceLineNo">3008</span>      List&lt;Cell&gt; expected = new ArrayList&lt;&gt;();<a name="line.3008"></a>
-<span class="sourceLineNo">3009</span>      expected.add(kv13);<a name="line.3009"></a>
-<span class="sourceLineNo">3010</span>      expected.add(kv12);<a name="line.3010"></a>
-<span class="sourceLineNo">3011</span><a name="line.3011"></a>
-<span class="sourceLineNo">3012</span>      Scan scan = new Scan(row1);<a name="line.3012"></a>
-<span class="sourceLineNo">3013</span>      scan.addColumn(fam1, qf1);<a name="line.3013"></a>
-<span class="sourceLineNo">3014</span>      scan.setMaxVersions(MAX_VERSIONS);<a name="line.3014"></a>
-<span class="sourceLineNo">3015</span>      List&lt;Cell&gt; actual = new ArrayList&lt;&gt;();<a name="line.3015"></a>
-<span class="sourceLineNo">3016</span>      InternalScanner scanner = region.getScanner(scan);<a name="line.3016"></a>
-<span class="sourceLineNo">3017</span><a name="line.3017"></a>
-<span class="sourceLineNo">3018</span>      boolean hasNext = scanner.next(actual);<a name="line.3018"></a>
-<span class="sourceLineNo">3019</span>      assertEquals(false, hasNext);<a name="line.3019"></a>
-<span class="sourceLineNo">3020</span><a name="line.3020"></a>
-<span class="sourceLineNo">3021</span>      // Verify result<a name="line.3021"></a>
-<span class="sourceLineNo">3022</span>      for (int i = 0; i &lt; expected.size(); i++) {<a name="line.3022"></a>
-<span class="sourceLineNo">3023</span>        assertEquals(expected.get(i), actual.get(i));<a name="line.3023"></a>
-<span class="sourceLineNo">3024</span>      }<a name="line.3024"></a>
-<span class="sourceLineNo">3025</span>    } finally {<a name="line.3025"></a>
-<span class="sourceLineNo">3026</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.3026"></a>
-<span class="sourceLineNo">3027</span>      this.region = null;<a name="line.3027"></a>
-<span class="sourceLineNo">3028</span>    }<a name="line.3028"></a>
-<span class="sourceLineNo">3029</span>  }<a name="line.3029"></a>
-<span class="sourceLineNo">3030</span><a name="line.3030"></a>
-<span class="sourceLineNo">3031</span>  @Test<a name="line.3031"></a>
-<span class="sourceLineNo">3032</span>  public void testScanner_ExplicitColumns_FromFilesOnly_EnforceVersions() throws IOException {<a name="line.3032"></a>
-<span class="sourceLineNo">3033</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.3033"></a>
-<span class="sourceLineNo">3034</span>    byte[] qf1 = Bytes.toBytes("qualifier1");<a name="line.3034"></a>
-<span class="sourceLineNo">3035</span>    byte[] qf2 = Bytes.toBytes("qualifier2");<a name="line.3035"></a>
-<span class="sourceLineNo">3036</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.3036"></a>
-<span class="sourceLineNo">3037</span>    byte[][] families = { fam1 };<a name="line.3037"></a>
-<span class="sourceLineNo">3038</span><a name="line.3038"></a>
-<span class="sourceLineNo">3039</span>    long ts1 = 1; // System.currentTimeMillis();<a name="line.3039"></a>
-<span class="sourceLineNo">3040</span>    long ts2 = ts1 + 1;<a name="line.3040"></a>
-<span class="sourceLineNo">3041</span>    long ts3 = ts1 + 2;<a name="line.3041"></a>
-<span class="sourceLineNo">3042</span><a name="line.3042"></a>
-<span class="sourceLineNo">3043</span>    // Setting up region<a name="line.3043"></a>
-<span class="sourceLineNo">3044</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.3044"></a>
-<span class="sourceLineNo">3045</span>    try {<a name="line.3045"></a>
-<span class="sourceLineNo">3046</span>      // Putting data in Region<a name="line.3046"></a>
-<span class="sourceLineNo">3047</span>      Put put = null;<a name="line.3047"></a>
-<span class="sourceLineNo">3048</span>      KeyValue kv13 = new KeyValue(row1, fam1, qf1, ts3, KeyValue.Type.Put, null);<a name="line.3048"></a>
-<span class="sourceLineNo">3049</span>      KeyValue kv12 = new KeyValue(row1, fam1, qf1, ts2, KeyValue.Type.Put, null);<a name="line.3049"></a>
-<span class="sourceLineNo">3050</span>      KeyValue kv11 = new KeyValue(row1, fam1, qf1, ts1, KeyValue.Type.Put, null);<a name="line.3050"></a>
-<span class="sourceLineNo">3051</span><a name="line.3051"></a>
-<span class="sourceLineNo">3052</span>      KeyValue kv23 = new KeyValue(row1, fam1, qf2, ts3, KeyValue.Type.Put, null);<a name="line.3052"></a>
-<span class="sourceLineNo">3053</span>      KeyValue kv22 = new KeyValue(row1, fam1, qf2, ts2, KeyValue.Type.Put, null);<a name="line.3053"></a>
-<span class="sourceLineNo">3054</span>      KeyValue kv21 = new KeyValue(row1, fam1, qf2, ts1, KeyValue.Type.Put, null);<a name="line.3054"></a>
-<span class="sourceLineNo">3055</span><a name="line.3055"></a>
-<span class="sourceLineNo">3056</span>      put = new Put(row1);<a name="line.3056"></a>
-<span class="sourceLineNo">3057</span>      put.add(kv13);<a name="line.3057"></a>
-<span class="sourceLineNo">3058</span>      put.add(kv12);<a name="line.3058"></a>
-<span class="sourceLineNo">3059</span>      put.add(kv11);<a name="line.3059"></a>
-<span class="sourceLineNo">3060</span>      put.add(kv23);<a name="line.3060"></a>
-<span class="sourceLineNo">3061</span>      put.add(kv22);<a name="line.3061"></a>
-<span class="sourceLineNo">3062</span>      put.add(kv21);<a name="line.3062"></a>
-<span class="sourceLineNo">3063</span>      region.put(put);<a name="line.3063"></a>
-<span class="sourceLineNo">3064</span>      region.flush(true);<a name="line.3064"></a>
-<span class="sourceLineNo">3065</span><a name="line.3065"></a>
-<span class="sourceLineNo">3066</span>      // Expected<a name="line.3066"></a>
-<span class="sourceLineNo">3067</span>      List&lt;Cell&gt; expected = new ArrayList&lt;&gt;();<a name="line.3067"></a>
-<span class="sourceLineNo">3068</span>      expected.add(kv13);<a name="line.3068"></a>
-<span class="sourceLineNo">3069</span>      expected.add(kv12);<a name="line.3069"></a>
-<span class="sourceLineNo">3070</span>      expected.add(kv23);<a name="line.3070"></a>
-<span class="sourceLineNo">3071</span>      expected.add(kv22);<a name="line.3071"></a>
-<span class="sourceLineNo">3072</span><a name="line.3072"></a>
-<span class="sourceLineNo">3073</span>      Scan scan = new Scan(row1);<a name="line.3073"></a>
-<span class="sourceLineNo">3074</span>      scan.addColumn(fam1, qf1);<a name="line.3074"></a>
-<span class="sourceLineNo">3075</span>      scan.addColumn(fam1, qf2);<a name="line.3075"></a>
-<span class="sourceLineNo">3076</span>      scan.setMaxVersions(MAX_VERSIONS);<a name="line.3076"></a>
-<span class="sourceLineNo">3077</span>      List&lt;Cell&gt; actual = new ArrayList&lt;&gt;();<a name="line.3077"></a>
-<span class="sourceLineNo">3078</span>      InternalScanner scanner = region.getScanner(scan);<a name="line.3078"></a>
-<span class="sourceLineNo">3079</span><a name="line.3079"></a>
-<span class="sourceLineNo">3080</span>      boolean hasNext = scanner.next(actual);<a name="line.3080"></a>
-<span class="sourceLineNo">3081</span>      assertEquals(false, hasNext);<a name="line.3081"></a>
-<span class="sourceLineNo">3082</span><a name="line.3082"></a>
-<span class="sourceLineNo">3083</span>      // Verify result<a name="line.3083"></a>
-<span class="sourceLineNo">3084</span>      for (int i = 0; i &lt; expected.size(); i++) {<a name="line.3084"></a>
-<span class="sourceLineNo">3085</span>        assertTrue(PrivateCellUtil.equalsIgnoreMvccVersion(expected.get(i), actual.get(i)));<a name="line.3085"></a>
-<span class="sourceLineNo">3086</span>      }<a name="line.3086"></a>
-<span class="sourceLineNo">3087</span>    } finally {<a name="line.3087"></a>
-<span class="sourceLineNo">3088</span>      HBaseTestingUtility.closeRegionAndWAL(this.region);<a name="line.3088"></a>
-<span class="sourceLineNo">3089</span>      this.region = null;<a name="line.3089"></a>
-<span class="sourceLineNo">3090</span>    }<a name="line.3090"></a>
-<span class="sourceLineNo">3091</span>  }<a name="line.3091"></a>
-<span class="sourceLineNo">3092</span><a name="line.3092"></a>
-<span class="sourceLineNo">3093</span>  @Test<a name="line.3093"></a>
-<span class="sourceLineNo">3094</span>  public void testScanner_ExplicitColumns_FromMemStoreAndFiles_EnforceVersions() throws<a name="line.3094"></a>
-<span class="sourceLineNo">3095</span>      IOException {<a name="line.3095"></a>
-<span class="sourceLineNo">3096</span>    byte[] row1 = Bytes.toBytes("row1");<a name="line.3096"></a>
-<span class="sourceLineNo">3097</span>    byte[] fam1 = Bytes.toBytes("fam1");<a name="line.3097"></a>
-<span class="sourceLineNo">3098</span>    byte[][] families = { fam1 };<a name="line.3098"></a>
-<span class="sourceLineNo">3099</span>    byte[] qf1 = Bytes.toBytes("qualifier1");<a name="line.3099"></a>
-<span class="sourceLineNo">3100</span>    byte[] qf2 = Bytes.toBytes("qualifier2");<a name="line.3100"></a>
-<span class="sourceLineNo">3101</span><a name="line.3101"></a>
-<span class="sourceLineNo">3102</span>    long ts1 = 1;<a name="line.3102"></a>
-<span class="sourceLineNo">3103</span>    long ts2 = ts1 + 1;<a name="line.3103"></a>
-<span class="sourceLineNo">3104</span>    long ts3 = ts1 + 2;<a name="line.3104"></a>
-<span class="sourceLineNo">3105</span>    long ts4 = ts1 + 3;<a name="line.3105"></a>
-<span class="sourceLineNo">3106</span><a name="line.3106"></a>
-<span class="sourceLineNo">3107</span>    // Setting up region<a name="line.3107"></a>
-<span class="sourceLineNo">3108</span>    this.region = initHRegion(tableName, method, CONF, families);<a name="line.3108"></a>
-<span class="sourceLineNo">3109</span>    try {<a name="line.3109"></a>
-<span class="sourceLineNo">3110</span>      // Putting data in Region<a name="line.3110"></a>
-<span class="sourceLineNo">3111</span>      KeyValue kv14 = new KeyValue(row1, fam1, qf1, ts4, KeyValue.Type.Put, null);<a name="line.3111"></a>
-<span class="sourceLineNo">3112</span>      KeyValue kv13 = new KeyValue(row1, fam1, qf1, ts3, KeyValue.Type.Put, null);<a name="line.3112"></a>
-<span class="sourceLineNo">3113</span>      KeyValue kv12 = new KeyValue(row1, fam1, qf1, ts2, KeyValue.Type.Put, null);<a name="line.3113"></a>
-<span class="sourceLineNo">3114</span>      KeyValue kv11 = new KeyValue(row1, fam1, qf1, ts1, KeyValue.Type.Put, null);<a name="line.3114"></a>
-<span class="sourceLineNo">3115</span><a name="line.3115"></a>
-<span class="sourceLineNo">3116</span>      KeyValue kv24 = new KeyValue(row1, fam1, qf2, ts4, KeyValue.Type.Put, null);<a name="line.3116"></a>
-<span class="sourceLineNo">3117</span>      KeyVa

<TRUNCATED>

Mime
View raw message