http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/devapidocs/src-html/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.html ---------------------------------------------------------------------- diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.html b/devapidocs/src-html/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.html index 5e9a441..65fbeeb 100644 --- a/devapidocs/src-html/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.html +++ b/devapidocs/src-html/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.html @@ -163,275 +163,278 @@ <span class="sourceLineNo">155</span> /**<a name="line.155"></a> <span class="sourceLineNo">156</span> * Should be called if the stream is to be reused (i.e. used again after hasNext() has returned<a name="line.156"></a> <span class="sourceLineNo">157</span> * false)<a name="line.157"></a> -<span class="sourceLineNo">158</span> * @throws IOException<a name="line.158"></a> -<span class="sourceLineNo">159</span> */<a name="line.159"></a> -<span class="sourceLineNo">160</span> public void reset() throws IOException {<a name="line.160"></a> -<span class="sourceLineNo">161</span> if (reader != null && currentPath != null) {<a name="line.161"></a> -<span class="sourceLineNo">162</span> resetReader();<a name="line.162"></a> -<span class="sourceLineNo">163</span> }<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> private void setPosition(long position) {<a name="line.166"></a> -<span class="sourceLineNo">167</span> currentPositionOfEntry = position;<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> private void setCurrentPath(Path path) {<a name="line.170"></a> -<span class="sourceLineNo">171</span> this.currentPath = path;<a name="line.171"></a> -<span class="sourceLineNo">172</span> }<a name="line.172"></a> -<span class="sourceLineNo">173</span><a name="line.173"></a> -<span class="sourceLineNo">174</span> private void tryAdvanceEntry() throws IOException {<a name="line.174"></a> -<span class="sourceLineNo">175</span> if (checkReader()) {<a name="line.175"></a> -<span class="sourceLineNo">176</span> boolean beingWritten = readNextEntryAndRecordReaderPosition();<a name="line.176"></a> -<span class="sourceLineNo">177</span> if (currentEntry == null && !beingWritten) {<a name="line.177"></a> -<span class="sourceLineNo">178</span> // no more entries in this log file, and the file is already closed, i.e, rolled<a name="line.178"></a> -<span class="sourceLineNo">179</span> // Before dequeueing, we should always get one more attempt at reading.<a name="line.179"></a> -<span class="sourceLineNo">180</span> // This is in case more entries came in after we opened the reader, and the log is rolled<a name="line.180"></a> -<span class="sourceLineNo">181</span> // while we were reading. See HBASE-6758<a name="line.181"></a> -<span class="sourceLineNo">182</span> resetReader();<a name="line.182"></a> -<span class="sourceLineNo">183</span> readNextEntryAndRecordReaderPosition();<a name="line.183"></a> -<span class="sourceLineNo">184</span> if (currentEntry == null) {<a name="line.184"></a> -<span class="sourceLineNo">185</span> if (checkAllBytesParsed()) { // now we're certain we're done with this log file<a name="line.185"></a> -<span class="sourceLineNo">186</span> dequeueCurrentLog();<a name="line.186"></a> -<span class="sourceLineNo">187</span> if (openNextLog()) {<a name="line.187"></a> -<span class="sourceLineNo">188</span> readNextEntryAndRecordReaderPosition();<a name="line.188"></a> -<span class="sourceLineNo">189</span> }<a name="line.189"></a> -<span class="sourceLineNo">190</span> }<a name="line.190"></a> -<span class="sourceLineNo">191</span> }<a name="line.191"></a> -<span class="sourceLineNo">192</span> }<a name="line.192"></a> -<span class="sourceLineNo">193</span> // if currentEntry != null then just return<a name="line.193"></a> -<span class="sourceLineNo">194</span> // if currentEntry == null but the file is still being written, then we should not switch to<a name="line.194"></a> -<span class="sourceLineNo">195</span> // the next log either, just return here and try next time to see if there are more entries in<a name="line.195"></a> -<span class="sourceLineNo">196</span> // the current file<a name="line.196"></a> -<span class="sourceLineNo">197</span> }<a name="line.197"></a> -<span class="sourceLineNo">198</span> // do nothing if we don't have a WAL Reader (e.g. if there's no logs in queue)<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> // HBASE-15984 check to see we have in fact parsed all data in a cleanly closed file<a name="line.201"></a> -<span class="sourceLineNo">202</span> private boolean checkAllBytesParsed() throws IOException {<a name="line.202"></a> -<span class="sourceLineNo">203</span> // -1 means the wal wasn't closed cleanly.<a name="line.203"></a> -<span class="sourceLineNo">204</span> final long trailerSize = currentTrailerSize();<a name="line.204"></a> -<span class="sourceLineNo">205</span> FileStatus stat = null;<a name="line.205"></a> -<span class="sourceLineNo">206</span> try {<a name="line.206"></a> -<span class="sourceLineNo">207</span> stat = fs.getFileStatus(this.currentPath);<a name="line.207"></a> -<span class="sourceLineNo">208</span> } catch (IOException exception) {<a name="line.208"></a> -<span class="sourceLineNo">209</span> LOG.warn("Couldn't get file length information about log {}, it {} closed cleanly {}",<a name="line.209"></a> -<span class="sourceLineNo">210</span> currentPath, trailerSize < 0 ? "was not" : "was", getCurrentPathStat());<a name="line.210"></a> -<span class="sourceLineNo">211</span> metrics.incrUnknownFileLengthForClosedWAL();<a name="line.211"></a> -<span class="sourceLineNo">212</span> }<a name="line.212"></a> -<span class="sourceLineNo">213</span> // Here we use currentPositionOfReader instead of currentPositionOfEntry.<a name="line.213"></a> -<span class="sourceLineNo">214</span> // We only call this method when currentEntry is null so usually they are the same, but there<a name="line.214"></a> -<span class="sourceLineNo">215</span> // are two exceptions. One is we have nothing in the file but only a header, in this way<a name="line.215"></a> -<span class="sourceLineNo">216</span> // the currentPositionOfEntry will always be 0 since we have no change to update it. The other<a name="line.216"></a> -<span class="sourceLineNo">217</span> // is that we reach the end of file, then currentPositionOfEntry will point to the tail of the<a name="line.217"></a> -<span class="sourceLineNo">218</span> // last valid entry, and the currentPositionOfReader will usually point to the end of the file.<a name="line.218"></a> -<span class="sourceLineNo">219</span> if (stat != null) {<a name="line.219"></a> -<span class="sourceLineNo">220</span> if (trailerSize < 0) {<a name="line.220"></a> -<span class="sourceLineNo">221</span> if (currentPositionOfReader < stat.getLen()) {<a name="line.221"></a> -<span class="sourceLineNo">222</span> final long skippedBytes = stat.getLen() - currentPositionOfReader;<a name="line.222"></a> -<span class="sourceLineNo">223</span> LOG.debug(<a name="line.223"></a> -<span class="sourceLineNo">224</span> "Reached the end of WAL file '{}'. It was not closed cleanly," +<a name="line.224"></a> -<span class="sourceLineNo">225</span> " so we did not parse {} bytes of data. This is normally ok.",<a name="line.225"></a> -<span class="sourceLineNo">226</span> currentPath, skippedBytes);<a name="line.226"></a> -<span class="sourceLineNo">227</span> metrics.incrUncleanlyClosedWALs();<a name="line.227"></a> -<span class="sourceLineNo">228</span> metrics.incrBytesSkippedInUncleanlyClosedWALs(skippedBytes);<a name="line.228"></a> -<span class="sourceLineNo">229</span> }<a name="line.229"></a> -<span class="sourceLineNo">230</span> } else if (currentPositionOfReader + trailerSize < stat.getLen()) {<a name="line.230"></a> -<span class="sourceLineNo">231</span> LOG.warn(<a name="line.231"></a> -<span class="sourceLineNo">232</span> "Processing end of WAL file '{}'. At position {}, which is too far away from" +<a name="line.232"></a> -<span class="sourceLineNo">233</span> " reported file length {}. Restarting WAL reading (see HBASE-15983 for details). {}",<a name="line.233"></a> -<span class="sourceLineNo">234</span> currentPath, currentPositionOfReader, stat.getLen(), getCurrentPathStat());<a name="line.234"></a> -<span class="sourceLineNo">235</span> setPosition(0);<a name="line.235"></a> -<span class="sourceLineNo">236</span> resetReader();<a name="line.236"></a> -<span class="sourceLineNo">237</span> metrics.incrRestartedWALReading();<a name="line.237"></a> -<span class="sourceLineNo">238</span> metrics.incrRepeatedFileBytes(currentPositionOfReader);<a name="line.238"></a> -<span class="sourceLineNo">239</span> return false;<a name="line.239"></a> -<span class="sourceLineNo">240</span> }<a name="line.240"></a> -<span class="sourceLineNo">241</span> }<a name="line.241"></a> -<span class="sourceLineNo">242</span> if (LOG.isTraceEnabled()) {<a name="line.242"></a> -<span class="sourceLineNo">243</span> LOG.trace("Reached the end of log " + this.currentPath + ", and the length of the file is " +<a name="line.243"></a> -<span class="sourceLineNo">244</span> (stat == null ? "N/A" : stat.getLen()));<a name="line.244"></a> -<span class="sourceLineNo">245</span> }<a name="line.245"></a> -<span class="sourceLineNo">246</span> metrics.incrCompletedWAL();<a name="line.246"></a> -<span class="sourceLineNo">247</span> return true;<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> private void dequeueCurrentLog() throws IOException {<a name="line.250"></a> -<span class="sourceLineNo">251</span> LOG.debug("Reached the end of log {}", currentPath);<a name="line.251"></a> -<span class="sourceLineNo">252</span> closeReader();<a name="line.252"></a> -<span class="sourceLineNo">253</span> logQueue.remove();<a name="line.253"></a> -<span class="sourceLineNo">254</span> setPosition(0);<a name="line.254"></a> -<span class="sourceLineNo">255</span> metrics.decrSizeOfLogQueue();<a name="line.255"></a> -<span class="sourceLineNo">256</span> }<a name="line.256"></a> -<span class="sourceLineNo">257</span><a name="line.257"></a> -<span class="sourceLineNo">258</span> /**<a name="line.258"></a> -<span class="sourceLineNo">259</span> * Returns whether the file is opened for writing.<a name="line.259"></a> -<span class="sourceLineNo">260</span> */<a name="line.260"></a> -<span class="sourceLineNo">261</span> private boolean readNextEntryAndRecordReaderPosition() throws IOException {<a name="line.261"></a> -<span class="sourceLineNo">262</span> Entry readEntry = reader.next();<a name="line.262"></a> -<span class="sourceLineNo">263</span> long readerPos = reader.getPosition();<a name="line.263"></a> -<span class="sourceLineNo">264</span> OptionalLong fileLength = walFileLengthProvider.getLogFileSizeIfBeingWritten(currentPath);<a name="line.264"></a> -<span class="sourceLineNo">265</span> if (fileLength.isPresent() && readerPos > fileLength.getAsLong()) {<a name="line.265"></a> -<span class="sourceLineNo">266</span> // see HBASE-14004, for AsyncFSWAL which uses fan-out, it is possible that we read uncommitted<a name="line.266"></a> -<span class="sourceLineNo">267</span> // data, so we need to make sure that we do not read beyond the committed file length.<a name="line.267"></a> -<span class="sourceLineNo">268</span> if (LOG.isDebugEnabled()) {<a name="line.268"></a> -<span class="sourceLineNo">269</span> LOG.debug("The provider tells us the valid length for " + currentPath + " is " +<a name="line.269"></a> -<span class="sourceLineNo">270</span> fileLength.getAsLong() + ", but we have advanced to " + readerPos);<a name="line.270"></a> -<span class="sourceLineNo">271</span> }<a name="line.271"></a> -<span class="sourceLineNo">272</span> resetReader();<a name="line.272"></a> -<span class="sourceLineNo">273</span> return true;<a name="line.273"></a> -<span class="sourceLineNo">274</span> }<a name="line.274"></a> -<span class="sourceLineNo">275</span> if (readEntry != null) {<a name="line.275"></a> -<span class="sourceLineNo">276</span> metrics.incrLogEditsRead();<a name="line.276"></a> -<span class="sourceLineNo">277</span> metrics.incrLogReadInBytes(readerPos - currentPositionOfEntry);<a name="line.277"></a> -<span class="sourceLineNo">278</span> }<a name="line.278"></a> -<span class="sourceLineNo">279</span> currentEntry = readEntry; // could be null<a name="line.279"></a> -<span class="sourceLineNo">280</span> this.currentPositionOfReader = readerPos;<a name="line.280"></a> -<span class="sourceLineNo">281</span> return fileLength.isPresent();<a name="line.281"></a> -<span class="sourceLineNo">282</span> }<a name="line.282"></a> -<span class="sourceLineNo">283</span><a name="line.283"></a> -<span class="sourceLineNo">284</span> private void closeReader() throws IOException {<a name="line.284"></a> -<span class="sourceLineNo">285</span> if (reader != null) {<a name="line.285"></a> -<span class="sourceLineNo">286</span> reader.close();<a name="line.286"></a> -<span class="sourceLineNo">287</span> reader = null;<a name="line.287"></a> -<span class="sourceLineNo">288</span> }<a name="line.288"></a> -<span class="sourceLineNo">289</span> }<a name="line.289"></a> -<span class="sourceLineNo">290</span><a name="line.290"></a> -<span class="sourceLineNo">291</span> // if we don't have a reader, open a reader on the next log<a name="line.291"></a> -<span class="sourceLineNo">292</span> private boolean checkReader() throws IOException {<a name="line.292"></a> -<span class="sourceLineNo">293</span> if (reader == null) {<a name="line.293"></a> -<span class="sourceLineNo">294</span> return openNextLog();<a name="line.294"></a> -<span class="sourceLineNo">295</span> }<a name="line.295"></a> -<span class="sourceLineNo">296</span> return true;<a name="line.296"></a> -<span class="sourceLineNo">297</span> }<a name="line.297"></a> -<span class="sourceLineNo">298</span><a name="line.298"></a> -<span class="sourceLineNo">299</span> // open a reader on the next log in queue<a name="line.299"></a> -<span class="sourceLineNo">300</span> private boolean openNextLog() throws IOException {<a name="line.300"></a> -<span class="sourceLineNo">301</span> Path nextPath = logQueue.peek();<a name="line.301"></a> -<span class="sourceLineNo">302</span> if (nextPath != null) {<a name="line.302"></a> -<span class="sourceLineNo">303</span> openReader(nextPath);<a name="line.303"></a> -<span class="sourceLineNo">304</span> if (reader != null) {<a name="line.304"></a> -<span class="sourceLineNo">305</span> return true;<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> return false;<a name="line.308"></a> -<span class="sourceLineNo">309</span> }<a name="line.309"></a> -<span class="sourceLineNo">310</span><a name="line.310"></a> -<span class="sourceLineNo">311</span> private Path getArchivedLog(Path path) throws IOException {<a name="line.311"></a> -<span class="sourceLineNo">312</span> Path rootDir = FSUtils.getRootDir(conf);<a name="line.312"></a> -<span class="sourceLineNo">313</span><a name="line.313"></a> -<span class="sourceLineNo">314</span> // Try found the log in old dir<a name="line.314"></a> -<span class="sourceLineNo">315</span> Path oldLogDir = new Path(rootDir, HConstants.HREGION_OLDLOGDIR_NAME);<a name="line.315"></a> -<span class="sourceLineNo">316</span> Path archivedLogLocation = new Path(oldLogDir, path.getName());<a name="line.316"></a> -<span class="sourceLineNo">317</span> if (fs.exists(archivedLogLocation)) {<a name="line.317"></a> -<span class="sourceLineNo">318</span> LOG.info("Log " + path + " was moved to " + archivedLogLocation);<a name="line.318"></a> -<span class="sourceLineNo">319</span> return archivedLogLocation;<a name="line.319"></a> -<span class="sourceLineNo">320</span> }<a name="line.320"></a> -<span class="sourceLineNo">321</span><a name="line.321"></a> -<span class="sourceLineNo">322</span> // Try found the log in the seperate old log dir<a name="line.322"></a> -<span class="sourceLineNo">323</span> oldLogDir =<a name="line.323"></a> -<span class="sourceLineNo">324</span> new Path(rootDir, new StringBuilder(HConstants.HREGION_OLDLOGDIR_NAME)<a name="line.324"></a> -<span class="sourceLineNo">325</span> .append(Path.SEPARATOR).append(serverName.getServerName()).toString());<a name="line.325"></a> -<span class="sourceLineNo">326</span> archivedLogLocation = new Path(oldLogDir, path.getName());<a name="line.326"></a> -<span class="sourceLineNo">327</span> if (fs.exists(archivedLogLocation)) {<a name="line.327"></a> -<span class="sourceLineNo">328</span> LOG.info("Log " + path + " was moved to " + archivedLogLocation);<a name="line.328"></a> -<span class="sourceLineNo">329</span> return archivedLogLocation;<a name="line.329"></a> -<span class="sourceLineNo">330</span> }<a name="line.330"></a> -<span class="sourceLineNo">331</span><a name="line.331"></a> -<span class="sourceLineNo">332</span> LOG.error("Couldn't locate log: " + path);<a name="line.332"></a> -<span class="sourceLineNo">333</span> return path;<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 handleFileNotFound(Path path, FileNotFoundException fnfe) throws IOException {<a name="line.336"></a> -<span class="sourceLineNo">337</span> // If the log was archived, continue reading from there<a name="line.337"></a> -<span class="sourceLineNo">338</span> Path archivedLog = getArchivedLog(path);<a name="line.338"></a> -<span class="sourceLineNo">339</span> if (!path.equals(archivedLog)) {<a name="line.339"></a> -<span class="sourceLineNo">340</span> openReader(archivedLog);<a name="line.340"></a> -<span class="sourceLineNo">341</span> } else {<a name="line.341"></a> -<span class="sourceLineNo">342</span> throw fnfe;<a name="line.342"></a> -<span class="sourceLineNo">343</span> }<a name="line.343"></a> -<span class="sourceLineNo">344</span> }<a name="line.344"></a> -<span class="sourceLineNo">345</span><a name="line.345"></a> -<span class="sourceLineNo">346</span> private void openReader(Path path) throws IOException {<a name="line.346"></a> -<span class="sourceLineNo">347</span> try {<a name="line.347"></a> -<span class="sourceLineNo">348</span> // Detect if this is a new file, if so get a new reader else<a name="line.348"></a> -<span class="sourceLineNo">349</span> // reset the current reader so that we see the new data<a name="line.349"></a> -<span class="sourceLineNo">350</span> if (reader == null || !getCurrentPath().equals(path)) {<a name="line.350"></a> -<span class="sourceLineNo">351</span> closeReader();<a name="line.351"></a> -<span class="sourceLineNo">352</span> reader = WALFactory.createReader(fs, path, conf);<a name="line.352"></a> -<span class="sourceLineNo">353</span> seek();<a name="line.353"></a> -<span class="sourceLineNo">354</span> setCurrentPath(path);<a name="line.354"></a> -<span class="sourceLineNo">355</span> } else {<a name="line.355"></a> -<span class="sourceLineNo">356</span> resetReader();<a name="line.356"></a> -<span class="sourceLineNo">357</span> }<a name="line.357"></a> -<span class="sourceLineNo">358</span> } catch (FileNotFoundException fnfe) {<a name="line.358"></a> -<span class="sourceLineNo">359</span> handleFileNotFound(path, fnfe);<a name="line.359"></a> -<span class="sourceLineNo">360</span> } catch (RemoteException re) {<a name="line.360"></a> -<span class="sourceLineNo">361</span> IOException ioe = re.unwrapRemoteException(FileNotFoundException.class);<a name="line.361"></a> -<span class="sourceLineNo">362</span> if (!(ioe instanceof FileNotFoundException)) throw ioe;<a name="line.362"></a> -<span class="sourceLineNo">363</span> handleFileNotFound(path, (FileNotFoundException)ioe);<a name="line.363"></a> -<span class="sourceLineNo">364</span> } catch (LeaseNotRecoveredException lnre) {<a name="line.364"></a> -<span class="sourceLineNo">365</span> // HBASE-15019 the WAL was not closed due to some hiccup.<a name="line.365"></a> -<span class="sourceLineNo">366</span> LOG.warn("Try to recover the WAL lease " + currentPath, lnre);<a name="line.366"></a> -<span class="sourceLineNo">367</span> recoverLease(conf, currentPath);<a name="line.367"></a> -<span class="sourceLineNo">368</span> reader = null;<a name="line.368"></a> -<span class="sourceLineNo">369</span> } catch (NullPointerException npe) {<a name="line.369"></a> -<span class="sourceLineNo">370</span> // Workaround for race condition in HDFS-4380<a name="line.370"></a> -<span class="sourceLineNo">371</span> // which throws a NPE if we open a file before any data node has the most recent block<a name="line.371"></a> -<span class="sourceLineNo">372</span> // Just sleep and retry. Will require re-reading compressed WALs for compressionContext.<a name="line.372"></a> -<span class="sourceLineNo">373</span> LOG.warn("Got NPE opening reader, will retry.");<a name="line.373"></a> -<span class="sourceLineNo">374</span> reader = null;<a name="line.374"></a> -<span class="sourceLineNo">375</span> }<a name="line.375"></a> -<span class="sourceLineNo">376</span> }<a name="line.376"></a> -<span class="sourceLineNo">377</span><a name="line.377"></a> -<span class="sourceLineNo">378</span> // For HBASE-15019<a name="line.378"></a> -<span class="sourceLineNo">379</span> private void recoverLease(final Configuration conf, final Path path) {<a name="line.379"></a> -<span class="sourceLineNo">380</span> try {<a name="line.380"></a> -<span class="sourceLineNo">381</span> final FileSystem dfs = FSUtils.getCurrentFileSystem(conf);<a name="line.381"></a> -<span class="sourceLineNo">382</span> FSUtils fsUtils = FSUtils.getInstance(dfs, conf);<a name="line.382"></a> -<span class="sourceLineNo">383</span> fsUtils.recoverFileLease(dfs, path, conf, new CancelableProgressable() {<a name="line.383"></a> -<span class="sourceLineNo">384</span> @Override<a name="line.384"></a> -<span class="sourceLineNo">385</span> public boolean progress() {<a name="line.385"></a> -<span class="sourceLineNo">386</span> LOG.debug("recover WAL lease: " + path);<a name="line.386"></a> -<span class="sourceLineNo">387</span> return true;<a name="line.387"></a> -<span class="sourceLineNo">388</span> }<a name="line.388"></a> -<span class="sourceLineNo">389</span> });<a name="line.389"></a> -<span class="sourceLineNo">390</span> } catch (IOException e) {<a name="line.390"></a> -<span class="sourceLineNo">391</span> LOG.warn("unable to recover lease for WAL: " + path, e);<a name="line.391"></a> -<span class="sourceLineNo">392</span> }<a name="line.392"></a> -<span class="sourceLineNo">393</span> }<a name="line.393"></a> -<span class="sourceLineNo">394</span><a name="line.394"></a> -<span class="sourceLineNo">395</span> private void resetReader() throws IOException {<a name="line.395"></a> -<span class="sourceLineNo">396</span> try {<a name="line.396"></a> -<span class="sourceLineNo">397</span> reader.reset();<a name="line.397"></a> -<span class="sourceLineNo">398</span> seek();<a name="line.398"></a> -<span class="sourceLineNo">399</span> } catch (FileNotFoundException fnfe) {<a name="line.399"></a> -<span class="sourceLineNo">400</span> // If the log was archived, continue reading from there<a name="line.400"></a> -<span class="sourceLineNo">401</span> Path archivedLog = getArchivedLog(currentPath);<a name="line.401"></a> -<span class="sourceLineNo">402</span> if (!currentPath.equals(archivedLog)) {<a name="line.402"></a> -<span class="sourceLineNo">403</span> openReader(archivedLog);<a name="line.403"></a> -<span class="sourceLineNo">404</span> } else {<a name="line.404"></a> -<span class="sourceLineNo">405</span> throw fnfe;<a name="line.405"></a> -<span class="sourceLineNo">406</span> }<a name="line.406"></a> -<span class="sourceLineNo">407</span> } catch (NullPointerException npe) {<a name="line.407"></a> -<span class="sourceLineNo">408</span> throw new IOException("NPE resetting reader, likely HDFS-4380", npe);<a name="line.408"></a> -<span class="sourceLineNo">409</span> }<a name="line.409"></a> -<span class="sourceLineNo">410</span> }<a name="line.410"></a> -<span class="sourceLineNo">411</span><a name="line.411"></a> -<span class="sourceLineNo">412</span> private void seek() throws IOException {<a name="line.412"></a> -<span class="sourceLineNo">413</span> if (currentPositionOfEntry != 0) {<a name="line.413"></a> -<span class="sourceLineNo">414</span> reader.seek(currentPositionOfEntry);<a name="line.414"></a> -<span class="sourceLineNo">415</span> }<a name="line.415"></a> -<span class="sourceLineNo">416</span> }<a name="line.416"></a> -<span class="sourceLineNo">417</span><a name="line.417"></a> -<span class="sourceLineNo">418</span> private long currentTrailerSize() {<a name="line.418"></a> -<span class="sourceLineNo">419</span> long size = -1L;<a name="line.419"></a> -<span class="sourceLineNo">420</span> if (reader instanceof ProtobufLogReader) {<a name="line.420"></a> -<span class="sourceLineNo">421</span> final ProtobufLogReader pblr = (ProtobufLogReader) reader;<a name="line.421"></a> -<span class="sourceLineNo">422</span> size = pblr.trailerSize();<a name="line.422"></a> -<span class="sourceLineNo">423</span> }<a name="line.423"></a> -<span class="sourceLineNo">424</span> return size;<a name="line.424"></a> -<span class="sourceLineNo">425</span> }<a name="line.425"></a> -<span class="sourceLineNo">426</span>}<a name="line.426"></a> +<span class="sourceLineNo">158</span> */<a name="line.158"></a> +<span class="sourceLineNo">159</span> public void reset() throws IOException {<a name="line.159"></a> +<span class="sourceLineNo">160</span> if (reader != null && currentPath != null) {<a name="line.160"></a> +<span class="sourceLineNo">161</span> resetReader();<a name="line.161"></a> +<span class="sourceLineNo">162</span> }<a name="line.162"></a> +<span class="sourceLineNo">163</span> }<a name="line.163"></a> +<span class="sourceLineNo">164</span><a name="line.164"></a> +<span class="sourceLineNo">165</span> private void setPosition(long position) {<a name="line.165"></a> +<span class="sourceLineNo">166</span> currentPositionOfEntry = position;<a name="line.166"></a> +<span class="sourceLineNo">167</span> }<a name="line.167"></a> +<span class="sourceLineNo">168</span><a name="line.168"></a> +<span class="sourceLineNo">169</span> private void setCurrentPath(Path path) {<a name="line.169"></a> +<span class="sourceLineNo">170</span> this.currentPath = path;<a name="line.170"></a> +<span class="sourceLineNo">171</span> }<a name="line.171"></a> +<span class="sourceLineNo">172</span><a name="line.172"></a> +<span class="sourceLineNo">173</span> private void tryAdvanceEntry() throws IOException {<a name="line.173"></a> +<span class="sourceLineNo">174</span> if (checkReader()) {<a name="line.174"></a> +<span class="sourceLineNo">175</span> boolean beingWritten = readNextEntryAndRecordReaderPosition();<a name="line.175"></a> +<span class="sourceLineNo">176</span> if (currentEntry == null && !beingWritten) {<a name="line.176"></a> +<span class="sourceLineNo">177</span> // no more entries in this log file, and the file is already closed, i.e, rolled<a name="line.177"></a> +<span class="sourceLineNo">178</span> // Before dequeueing, we should always get one more attempt at reading.<a name="line.178"></a> +<span class="sourceLineNo">179</span> // This is in case more entries came in after we opened the reader, and the log is rolled<a name="line.179"></a> +<span class="sourceLineNo">180</span> // while we were reading. See HBASE-6758<a name="line.180"></a> +<span class="sourceLineNo">181</span> resetReader();<a name="line.181"></a> +<span class="sourceLineNo">182</span> readNextEntryAndRecordReaderPosition();<a name="line.182"></a> +<span class="sourceLineNo">183</span> if (currentEntry == null) {<a name="line.183"></a> +<span class="sourceLineNo">184</span> if (checkAllBytesParsed()) { // now we're certain we're done with this log file<a name="line.184"></a> +<span class="sourceLineNo">185</span> dequeueCurrentLog();<a name="line.185"></a> +<span class="sourceLineNo">186</span> if (openNextLog()) {<a name="line.186"></a> +<span class="sourceLineNo">187</span> readNextEntryAndRecordReaderPosition();<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> }<a name="line.190"></a> +<span class="sourceLineNo">191</span> }<a name="line.191"></a> +<span class="sourceLineNo">192</span> // if currentEntry != null then just return<a name="line.192"></a> +<span class="sourceLineNo">193</span> // if currentEntry == null but the file is still being written, then we should not switch to<a name="line.193"></a> +<span class="sourceLineNo">194</span> // the next log either, just return here and try next time to see if there are more entries in<a name="line.194"></a> +<span class="sourceLineNo">195</span> // the current file<a name="line.195"></a> +<span class="sourceLineNo">196</span> }<a name="line.196"></a> +<span class="sourceLineNo">197</span> // do nothing if we don't have a WAL Reader (e.g. if there's no logs in queue)<a name="line.197"></a> +<span class="sourceLineNo">198</span> }<a name="line.198"></a> +<span class="sourceLineNo">199</span><a name="line.199"></a> +<span class="sourceLineNo">200</span> // HBASE-15984 check to see we have in fact parsed all data in a cleanly closed file<a name="line.200"></a> +<span class="sourceLineNo">201</span> private boolean checkAllBytesParsed() throws IOException {<a name="line.201"></a> +<span class="sourceLineNo">202</span> // -1 means the wal wasn't closed cleanly.<a name="line.202"></a> +<span class="sourceLineNo">203</span> final long trailerSize = currentTrailerSize();<a name="line.203"></a> +<span class="sourceLineNo">204</span> FileStatus stat = null;<a name="line.204"></a> +<span class="sourceLineNo">205</span> try {<a name="line.205"></a> +<span class="sourceLineNo">206</span> stat = fs.getFileStatus(this.currentPath);<a name="line.206"></a> +<span class="sourceLineNo">207</span> } catch (IOException exception) {<a name="line.207"></a> +<span class="sourceLineNo">208</span> LOG.warn("Couldn't get file length information about log {}, it {} closed cleanly {}",<a name="line.208"></a> +<span class="sourceLineNo">209</span> currentPath, trailerSize < 0 ? "was not" : "was", getCurrentPathStat());<a name="line.209"></a> +<span class="sourceLineNo">210</span> metrics.incrUnknownFileLengthForClosedWAL();<a name="line.210"></a> +<span class="sourceLineNo">211</span> }<a name="line.211"></a> +<span class="sourceLineNo">212</span> // Here we use currentPositionOfReader instead of currentPositionOfEntry.<a name="line.212"></a> +<span class="sourceLineNo">213</span> // We only call this method when currentEntry is null so usually they are the same, but there<a name="line.213"></a> +<span class="sourceLineNo">214</span> // are two exceptions. One is we have nothing in the file but only a header, in this way<a name="line.214"></a> +<span class="sourceLineNo">215</span> // the currentPositionOfEntry will always be 0 since we have no change to update it. The other<a name="line.215"></a> +<span class="sourceLineNo">216</span> // is that we reach the end of file, then currentPositionOfEntry will point to the tail of the<a name="line.216"></a> +<span class="sourceLineNo">217</span> // last valid entry, and the currentPositionOfReader will usually point to the end of the file.<a name="line.217"></a> +<span class="sourceLineNo">218</span> if (stat != null) {<a name="line.218"></a> +<span class="sourceLineNo">219</span> if (trailerSize < 0) {<a name="line.219"></a> +<span class="sourceLineNo">220</span> if (currentPositionOfReader < stat.getLen()) {<a name="line.220"></a> +<span class="sourceLineNo">221</span> final long skippedBytes = stat.getLen() - currentPositionOfReader;<a name="line.221"></a> +<span class="sourceLineNo">222</span> LOG.debug(<a name="line.222"></a> +<span class="sourceLineNo">223</span> "Reached the end of WAL file '{}'. It was not closed cleanly," +<a name="line.223"></a> +<span class="sourceLineNo">224</span> " so we did not parse {} bytes of data. This is normally ok.",<a name="line.224"></a> +<span class="sourceLineNo">225</span> currentPath, skippedBytes);<a name="line.225"></a> +<span class="sourceLineNo">226</span> metrics.incrUncleanlyClosedWALs();<a name="line.226"></a> +<span class="sourceLineNo">227</span> metrics.incrBytesSkippedInUncleanlyClosedWALs(skippedBytes);<a name="line.227"></a> +<span class="sourceLineNo">228</span> }<a name="line.228"></a> +<span class="sourceLineNo">229</span> } else if (currentPositionOfReader + trailerSize < stat.getLen()) {<a name="line.229"></a> +<span class="sourceLineNo">230</span> LOG.warn(<a name="line.230"></a> +<span class="sourceLineNo">231</span> "Processing end of WAL file '{}'. At position {}, which is too far away from" +<a name="line.231"></a> +<span class="sourceLineNo">232</span> " reported file length {}. Restarting WAL reading (see HBASE-15983 for details). {}",<a name="line.232"></a> +<span class="sourceLineNo">233</span> currentPath, currentPositionOfReader, stat.getLen(), getCurrentPathStat());<a name="line.233"></a> +<span class="sourceLineNo">234</span> setPosition(0);<a name="line.234"></a> +<span class="sourceLineNo">235</span> resetReader();<a name="line.235"></a> +<span class="sourceLineNo">236</span> metrics.incrRestartedWALReading();<a name="line.236"></a> +<span class="sourceLineNo">237</span> metrics.incrRepeatedFileBytes(currentPositionOfReader);<a name="line.237"></a> +<span class="sourceLineNo">238</span> return false;<a name="line.238"></a> +<span class="sourceLineNo">239</span> }<a name="line.239"></a> +<span class="sourceLineNo">240</span> }<a name="line.240"></a> +<span class="sourceLineNo">241</span> if (LOG.isTraceEnabled()) {<a name="line.241"></a> +<span class="sourceLineNo">242</span> LOG.trace("Reached the end of log " + this.currentPath + ", and the length of the file is " +<a name="line.242"></a> +<span class="sourceLineNo">243</span> (stat == null ? "N/A" : stat.getLen()));<a name="line.243"></a> +<span class="sourceLineNo">244</span> }<a name="line.244"></a> +<span class="sourceLineNo">245</span> metrics.incrCompletedWAL();<a name="line.245"></a> +<span class="sourceLineNo">246</span> return true;<a name="line.246"></a> +<span class="sourceLineNo">247</span> }<a name="line.247"></a> +<span class="sourceLineNo">248</span><a name="line.248"></a> +<span class="sourceLineNo">249</span> private void dequeueCurrentLog() throws IOException {<a name="line.249"></a> +<span class="sourceLineNo">250</span> LOG.debug("Reached the end of log {}", currentPath);<a name="line.250"></a> +<span class="sourceLineNo">251</span> closeReader();<a name="line.251"></a> +<span class="sourceLineNo">252</span> logQueue.remove();<a name="line.252"></a> +<span class="sourceLineNo">253</span> setPosition(0);<a name="line.253"></a> +<span class="sourceLineNo">254</span> metrics.decrSizeOfLogQueue();<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> /**<a name="line.257"></a> +<span class="sourceLineNo">258</span> * Returns whether the file is opened for writing.<a name="line.258"></a> +<span class="sourceLineNo">259</span> */<a name="line.259"></a> +<span class="sourceLineNo">260</span> private boolean readNextEntryAndRecordReaderPosition() throws IOException {<a name="line.260"></a> +<span class="sourceLineNo">261</span> Entry readEntry = reader.next();<a name="line.261"></a> +<span class="sourceLineNo">262</span> long readerPos = reader.getPosition();<a name="line.262"></a> +<span class="sourceLineNo">263</span> OptionalLong fileLength = walFileLengthProvider.getLogFileSizeIfBeingWritten(currentPath);<a name="line.263"></a> +<span class="sourceLineNo">264</span> if (fileLength.isPresent() && readerPos > fileLength.getAsLong()) {<a name="line.264"></a> +<span class="sourceLineNo">265</span> // see HBASE-14004, for AsyncFSWAL which uses fan-out, it is possible that we read uncommitted<a name="line.265"></a> +<span class="sourceLineNo">266</span> // data, so we need to make sure that we do not read beyond the committed file length.<a name="line.266"></a> +<span class="sourceLineNo">267</span> if (LOG.isDebugEnabled()) {<a name="line.267"></a> +<span class="sourceLineNo">268</span> LOG.debug("The provider tells us the valid length for " + currentPath + " is " +<a name="line.268"></a> +<span class="sourceLineNo">269</span> fileLength.getAsLong() + ", but we have advanced to " + readerPos);<a name="line.269"></a> +<span class="sourceLineNo">270</span> }<a name="line.270"></a> +<span class="sourceLineNo">271</span> resetReader();<a name="line.271"></a> +<span class="sourceLineNo">272</span> return true;<a name="line.272"></a> +<span class="sourceLineNo">273</span> }<a name="line.273"></a> +<span class="sourceLineNo">274</span> if (readEntry != null) {<a name="line.274"></a> +<span class="sourceLineNo">275</span> metrics.incrLogEditsRead();<a name="line.275"></a> +<span class="sourceLineNo">276</span> metrics.incrLogReadInBytes(readerPos - currentPositionOfEntry);<a name="line.276"></a> +<span class="sourceLineNo">277</span> }<a name="line.277"></a> +<span class="sourceLineNo">278</span> currentEntry = readEntry; // could be null<a name="line.278"></a> +<span class="sourceLineNo">279</span> this.currentPositionOfReader = readerPos;<a name="line.279"></a> +<span class="sourceLineNo">280</span> return fileLength.isPresent();<a name="line.280"></a> +<span class="sourceLineNo">281</span> }<a name="line.281"></a> +<span class="sourceLineNo">282</span><a name="line.282"></a> +<span class="sourceLineNo">283</span> private void closeReader() throws IOException {<a name="line.283"></a> +<span class="sourceLineNo">284</span> if (reader != null) {<a name="line.284"></a> +<span class="sourceLineNo">285</span> reader.close();<a name="line.285"></a> +<span class="sourceLineNo">286</span> reader = null;<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><a name="line.289"></a> +<span class="sourceLineNo">290</span> // if we don't have a reader, open a reader on the next log<a name="line.290"></a> +<span class="sourceLineNo">291</span> private boolean checkReader() throws IOException {<a name="line.291"></a> +<span class="sourceLineNo">292</span> if (reader == null) {<a name="line.292"></a> +<span class="sourceLineNo">293</span> return openNextLog();<a name="line.293"></a> +<span class="sourceLineNo">294</span> }<a name="line.294"></a> +<span class="sourceLineNo">295</span> return true;<a name="line.295"></a> +<span class="sourceLineNo">296</span> }<a name="line.296"></a> +<span class="sourceLineNo">297</span><a name="line.297"></a> +<span class="sourceLineNo">298</span> // open a reader on the next log in queue<a name="line.298"></a> +<span class="sourceLineNo">299</span> private boolean openNextLog() throws IOException {<a name="line.299"></a> +<span class="sourceLineNo">300</span> Path nextPath = logQueue.peek();<a name="line.300"></a> +<span class="sourceLineNo">301</span> if (nextPath != null) {<a name="line.301"></a> +<span class="sourceLineNo">302</span> openReader(nextPath);<a name="line.302"></a> +<span class="sourceLineNo">303</span> if (reader != null) {<a name="line.303"></a> +<span class="sourceLineNo">304</span> return true;<a name="line.304"></a> +<span class="sourceLineNo">305</span> }<a name="line.305"></a> +<span class="sourceLineNo">306</span> } else {<a name="line.306"></a> +<span class="sourceLineNo">307</span> // no more files in queue, this could only happen for recovered queue.<a name="line.307"></a> +<span class="sourceLineNo">308</span> setCurrentPath(null);<a name="line.308"></a> +<span class="sourceLineNo">309</span> }<a name="line.309"></a> +<span class="sourceLineNo">310</span> return false;<a name="line.310"></a> +<span class="sourceLineNo">311</span> }<a name="line.311"></a> +<span class="sourceLineNo">312</span><a name="line.312"></a> +<span class="sourceLineNo">313</span> private Path getArchivedLog(Path path) throws IOException {<a name="line.313"></a> +<span class="sourceLineNo">314</span> Path rootDir = FSUtils.getRootDir(conf);<a name="line.314"></a> +<span class="sourceLineNo">315</span><a name="line.315"></a> +<span class="sourceLineNo">316</span> // Try found the log in old dir<a name="line.316"></a> +<span class="sourceLineNo">317</span> Path oldLogDir = new Path(rootDir, HConstants.HREGION_OLDLOGDIR_NAME);<a name="line.317"></a> +<span class="sourceLineNo">318</span> Path archivedLogLocation = new Path(oldLogDir, path.getName());<a name="line.318"></a> +<span class="sourceLineNo">319</span> if (fs.exists(archivedLogLocation)) {<a name="line.319"></a> +<span class="sourceLineNo">320</span> LOG.info("Log " + path + " was moved to " + archivedLogLocation);<a name="line.320"></a> +<span class="sourceLineNo">321</span> return archivedLogLocation;<a name="line.321"></a> +<span class="sourceLineNo">322</span> }<a name="line.322"></a> +<span class="sourceLineNo">323</span><a name="line.323"></a> +<span class="sourceLineNo">324</span> // Try found the log in the seperate old log dir<a name="line.324"></a> +<span class="sourceLineNo">325</span> oldLogDir =<a name="line.325"></a> +<span class="sourceLineNo">326</span> new Path(rootDir, new StringBuilder(HConstants.HREGION_OLDLOGDIR_NAME)<a name="line.326"></a> +<span class="sourceLineNo">327</span> .append(Path.SEPARATOR).append(serverName.getServerName()).toString());<a name="line.327"></a> +<span class="sourceLineNo">328</span> archivedLogLocation = new Path(oldLogDir, path.getName());<a name="line.328"></a> +<span class="sourceLineNo">329</span> if (fs.exists(archivedLogLocation)) {<a name="line.329"></a> +<span class="sourceLineNo">330</span> LOG.info("Log " + path + " was moved to " + archivedLogLocation);<a name="line.330"></a> +<span class="sourceLineNo">331</span> return archivedLogLocation;<a name="line.331"></a> +<span class="sourceLineNo">332</span> }<a name="line.332"></a> +<span class="sourceLineNo">333</span><a name="line.333"></a> +<span class="sourceLineNo">334</span> LOG.error("Couldn't locate log: " + path);<a name="line.334"></a> +<span class="sourceLineNo">335</span> return path;<a name="line.335"></a> +<span class="sourceLineNo">336</span> }<a name="line.336"></a> +<span class="sourceLineNo">337</span><a name="line.337"></a> +<span class="sourceLineNo">338</span> private void handleFileNotFound(Path path, FileNotFoundException fnfe) throws IOException {<a name="line.338"></a> +<span class="sourceLineNo">339</span> // If the log was archived, continue reading from there<a name="line.339"></a> +<span class="sourceLineNo">340</span> Path archivedLog = getArchivedLog(path);<a name="line.340"></a> +<span class="sourceLineNo">341</span> if (!path.equals(archivedLog)) {<a name="line.341"></a> +<span class="sourceLineNo">342</span> openReader(archivedLog);<a name="line.342"></a> +<span class="sourceLineNo">343</span> } else {<a name="line.343"></a> +<span class="sourceLineNo">344</span> throw fnfe;<a name="line.344"></a> +<span class="sourceLineNo">345</span> }<a name="line.345"></a> +<span class="sourceLineNo">346</span> }<a name="line.346"></a> +<span class="sourceLineNo">347</span><a name="line.347"></a> +<span class="sourceLineNo">348</span> private void openReader(Path path) throws IOException {<a name="line.348"></a> +<span class="sourceLineNo">349</span> try {<a name="line.349"></a> +<span class="sourceLineNo">350</span> // Detect if this is a new file, if so get a new reader else<a name="line.350"></a> +<span class="sourceLineNo">351</span> // reset the current reader so that we see the new data<a name="line.351"></a> +<span class="sourceLineNo">352</span> if (reader == null || !getCurrentPath().equals(path)) {<a name="line.352"></a> +<span class="sourceLineNo">353</span> closeReader();<a name="line.353"></a> +<span class="sourceLineNo">354</span> reader = WALFactory.createReader(fs, path, conf);<a name="line.354"></a> +<span class="sourceLineNo">355</span> seek();<a name="line.355"></a> +<span class="sourceLineNo">356</span> setCurrentPath(path);<a name="line.356"></a> +<span class="sourceLineNo">357</span> } else {<a name="line.357"></a> +<span class="sourceLineNo">358</span> resetReader();<a name="line.358"></a> +<span class="sourceLineNo">359</span> }<a name="line.359"></a> +<span class="sourceLineNo">360</span> } catch (FileNotFoundException fnfe) {<a name="line.360"></a> +<span class="sourceLineNo">361</span> handleFileNotFound(path, fnfe);<a name="line.361"></a> +<span class="sourceLineNo">362</span> } catch (RemoteException re) {<a name="line.362"></a> +<span class="sourceLineNo">363</span> IOException ioe = re.unwrapRemoteException(FileNotFoundException.class);<a name="line.363"></a> +<span class="sourceLineNo">364</span> if (!(ioe instanceof FileNotFoundException)) throw ioe;<a name="line.364"></a> +<span class="sourceLineNo">365</span> handleFileNotFound(path, (FileNotFoundException)ioe);<a name="line.365"></a> +<span class="sourceLineNo">366</span> } catch (LeaseNotRecoveredException lnre) {<a name="line.366"></a> +<span class="sourceLineNo">367</span> // HBASE-15019 the WAL was not closed due to some hiccup.<a name="line.367"></a> +<span class="sourceLineNo">368</span> LOG.warn("Try to recover the WAL lease " + currentPath, lnre);<a name="line.368"></a> +<span class="sourceLineNo">369</span> recoverLease(conf, currentPath);<a name="line.369"></a> +<span class="sourceLineNo">370</span> reader = null;<a name="line.370"></a> +<span class="sourceLineNo">371</span> } catch (NullPointerException npe) {<a name="line.371"></a> +<span class="sourceLineNo">372</span> // Workaround for race condition in HDFS-4380<a name="line.372"></a> +<span class="sourceLineNo">373</span> // which throws a NPE if we open a file before any data node has the most recent block<a name="line.373"></a> +<span class="sourceLineNo">374</span> // Just sleep and retry. Will require re-reading compressed WALs for compressionContext.<a name="line.374"></a> +<span class="sourceLineNo">375</span> LOG.warn("Got NPE opening reader, will retry.");<a name="line.375"></a> +<span class="sourceLineNo">376</span> reader = null;<a name="line.376"></a> +<span class="sourceLineNo">377</span> }<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> // For HBASE-15019<a name="line.380"></a> +<span class="sourceLineNo">381</span> private void recoverLease(final Configuration conf, final Path path) {<a name="line.381"></a> +<span class="sourceLineNo">382</span> try {<a name="line.382"></a> +<span class="sourceLineNo">383</span> final FileSystem dfs = FSUtils.getCurrentFileSystem(conf);<a name="line.383"></a> +<span class="sourceLineNo">384</span> FSUtils fsUtils = FSUtils.getInstance(dfs, conf);<a name="line.384"></a> +<span class="sourceLineNo">385</span> fsUtils.recoverFileLease(dfs, path, conf, new CancelableProgressable() {<a name="line.385"></a> +<span class="sourceLineNo">386</span> @Override<a name="line.386"></a> +<span class="sourceLineNo">387</span> public boolean progress() {<a name="line.387"></a> +<span class="sourceLineNo">388</span> LOG.debug("recover WAL lease: " + path);<a name="line.388"></a> +<span class="sourceLineNo">389</span> return true;<a name="line.389"></a> +<span class="sourceLineNo">390</span> }<a name="line.390"></a> +<span class="sourceLineNo">391</span> });<a name="line.391"></a> +<span class="sourceLineNo">392</span> } catch (IOException e) {<a name="line.392"></a> +<span class="sourceLineNo">393</span> LOG.warn("unable to recover lease for WAL: " + path, e);<a name="line.393"></a> +<span class="sourceLineNo">394</span> }<a name="line.394"></a> +<span class="sourceLineNo">395</span> }<a name="line.395"></a> +<span class="sourceLineNo">396</span><a name="line.396"></a> +<span class="sourceLineNo">397</span> private void resetReader() throws IOException {<a name="line.397"></a> +<span class="sourceLineNo">398</span> try {<a name="line.398"></a> +<span class="sourceLineNo">399</span> currentEntry = null;<a name="line.399"></a> +<span class="sourceLineNo">400</span> reader.reset();<a name="line.400"></a> +<span class="sourceLineNo">401</span> seek();<a name="line.401"></a> +<span class="sourceLineNo">402</span> } catch (FileNotFoundException fnfe) {<a name="line.402"></a> +<span class="sourceLineNo">403</span> // If the log was archived, continue reading from there<a name="line.403"></a> +<span class="sourceLineNo">404</span> Path archivedLog = getArchivedLog(currentPath);<a name="line.404"></a> +<span class="sourceLineNo">405</span> if (!currentPath.equals(archivedLog)) {<a name="line.405"></a> +<span class="sourceLineNo">406</span> openReader(archivedLog);<a name="line.406"></a> +<span class="sourceLineNo">407</span> } else {<a name="line.407"></a> +<span class="sourceLineNo">408</span> throw fnfe;<a name="line.408"></a> +<span class="sourceLineNo">409</span> }<a name="line.409"></a> +<span class="sourceLineNo">410</span> } catch (NullPointerException npe) {<a name="line.410"></a> +<span class="sourceLineNo">411</span> throw new IOException("NPE resetting reader, likely HDFS-4380", npe);<a name="line.411"></a> +<span class="sourceLineNo">412</span> }<a name="line.412"></a> +<span class="sourceLineNo">413</span> }<a name="line.413"></a> +<span class="sourceLineNo">414</span><a name="line.414"></a> +<span class="sourceLineNo">415</span> private void seek() throws IOException {<a name="line.415"></a> +<span class="sourceLineNo">416</span> if (currentPositionOfEntry != 0) {<a name="line.416"></a> +<span class="sourceLineNo">417</span> reader.seek(currentPositionOfEntry);<a name="line.417"></a> +<span class="sourceLineNo">418</span> }<a name="line.418"></a> +<span class="sourceLineNo">419</span> }<a name="line.419"></a> +<span class="sourceLineNo">420</span><a name="line.420"></a> +<span class="sourceLineNo">421</span> private long currentTrailerSize() {<a name="line.421"></a> +<span class="sourceLineNo">422</span> long size = -1L;<a name="line.422"></a> +<span class="sourceLineNo">423</span> if (reader instanceof ProtobufLogReader) {<a name="line.423"></a> +<span class="sourceLineNo">424</span> final ProtobufLogReader pblr = (ProtobufLogReader) reader;<a name="line.424"></a> +<span class="sourceLineNo">425</span> size = pblr.trailerSize();<a name="line.425"></a> +<span class="sourceLineNo">426</span> }<a name="line.426"></a> +<span class="sourceLineNo">427</span> return size;<a name="line.427"></a> +<span class="sourceLineNo">428</span> }<a name="line.428"></a> +<span class="sourceLineNo">429</span>}<a name="line.429"></a>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/export_control.html ---------------------------------------------------------------------- diff --git a/export_control.html b/export_control.html index 83d4dc0..c319471 100644 --- a/export_control.html +++ b/export_control.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Export Control @@ -324,7 +324,7 @@ for more details.</p> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/index.html ---------------------------------------------------------------------- diff --git a/index.html b/index.html index 675f09c..19e2ba2 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase⢠Home</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -426,7 +426,7 @@ Apache HBase is an open-source, distributed, versioned, non-relational database <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/integration.html ---------------------------------------------------------------------- diff --git a/integration.html b/integration.html index bac8c93..d45b0c2 100644 --- a/integration.html +++ b/integration.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – CI Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -284,7 +284,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/issue-tracking.html ---------------------------------------------------------------------- diff --git a/issue-tracking.html b/issue-tracking.html index f7f7835..3808b2e 100644 --- a/issue-tracking.html +++ b/issue-tracking.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Issue Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -281,7 +281,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/license.html ---------------------------------------------------------------------- diff --git a/license.html b/license.html index 8d515b9..219f234 100644 --- a/license.html +++ b/license.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Licenses</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -484,7 +484,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/mail-lists.html ---------------------------------------------------------------------- diff --git a/mail-lists.html b/mail-lists.html index 0b40408..8bc86c1 100644 --- a/mail-lists.html +++ b/mail-lists.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Mailing Lists</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -334,7 +334,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/metrics.html ---------------------------------------------------------------------- diff --git a/metrics.html b/metrics.html index fbd1c5c..33d4278 100644 --- a/metrics.html +++ b/metrics.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase (TM) Metrics @@ -452,7 +452,7 @@ export HBASE_REGIONSERVER_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxrem <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/old_news.html ---------------------------------------------------------------------- diff --git a/old_news.html b/old_news.html index 3a82526..9b3a2d4 100644 --- a/old_news.html +++ b/old_news.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Old Apache HBase (TM) News @@ -407,7 +407,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/plugin-management.html ---------------------------------------------------------------------- diff --git a/plugin-management.html b/plugin-management.html index a78b617..7895c5e 100644 --- a/plugin-management.html +++ b/plugin-management.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Plugin Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -429,7 +429,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/plugins.html ---------------------------------------------------------------------- diff --git a/plugins.html b/plugins.html index 2be9023..9d7b8c4 100644 --- a/plugins.html +++ b/plugins.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Plugins</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -368,7 +368,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/poweredbyhbase.html ---------------------------------------------------------------------- diff --git a/poweredbyhbase.html b/poweredbyhbase.html index b2b695a..9cbfbfc 100644 --- a/poweredbyhbase.html +++ b/poweredbyhbase.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Powered By Apache HBaseÂ</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -762,7 +762,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/project-info.html ---------------------------------------------------------------------- diff --git a/project-info.html b/project-info.html index 809b3f4..b22c6dc 100644 --- a/project-info.html +++ b/project-info.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Information</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -328,7 +328,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/project-reports.html ---------------------------------------------------------------------- diff --git a/project-reports.html b/project-reports.html index 245a23f..cce07a3 100644 --- a/project-reports.html +++ b/project-reports.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Generated Reports</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -298,7 +298,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/project-summary.html ---------------------------------------------------------------------- diff --git a/project-summary.html b/project-summary.html index 076a46d..2427e1e 100644 --- a/project-summary.html +++ b/project-summary.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Summary</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -324,7 +324,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/pseudo-distributed.html ---------------------------------------------------------------------- diff --git a/pseudo-distributed.html b/pseudo-distributed.html index ccf7a0b..b58a8c7 100644 --- a/pseudo-distributed.html +++ b/pseudo-distributed.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Running Apache HBase (TM) in pseudo-distributed mode @@ -301,7 +301,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/replication.html ---------------------------------------------------------------------- diff --git a/replication.html b/replication.html index a3687e3..fae8d0d 100644 --- a/replication.html +++ b/replication.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase (TM) Replication @@ -296,7 +296,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/resources.html ---------------------------------------------------------------------- diff --git a/resources.html b/resources.html index afec13f..6efb670 100644 --- a/resources.html +++ b/resources.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Other Apache HBase (TM) Resources</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -324,7 +324,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/source-repository.html ---------------------------------------------------------------------- diff --git a/source-repository.html b/source-repository.html index 036d51a..2594825 100644 --- a/source-repository.html +++ b/source-repository.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Source Code Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -292,7 +292,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/sponsors.html ---------------------------------------------------------------------- diff --git a/sponsors.html b/sponsors.html index 4f18192..f54cea0 100644 --- a/sponsors.html +++ b/sponsors.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase Sponsors</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -326,7 +326,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/supportingprojects.html ---------------------------------------------------------------------- diff --git a/supportingprojects.html b/supportingprojects.html index 07813c1..405325a 100644 --- a/supportingprojects.html +++ b/supportingprojects.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Supporting Projects</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -513,7 +513,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/team-list.html ---------------------------------------------------------------------- diff --git a/team-list.html b/team-list.html index 5919f37..4cc68f9 100644 --- a/team-list.html +++ b/team-list.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180317" /> + <meta name="Date-Revision-yyyymmdd" content="20180319" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Team</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -723,7 +723,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-03-17</li> + <li id="publishDate" class="pull-right">Last Published: 2018-03-19</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fd35fe02/testdevapidocs/index-all.html ---------------------------------------------------------------------- diff --git a/testdevapidocs/index-all.html b/testdevapidocs/index-all.html index fc0a570..de675bc 100644 --- a/testdevapidocs/index-all.html +++ b/testdevapidocs/index-all.html @@ -1321,7 +1321,7 @@ <dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/regionserver/TestHRegion.Appender.html#appendCounter">appendCounter</a></span> - Variable in class org.apache.hadoop.hbase.regionserver.<a href="org/apache/hadoop/hbase/regionserver/TestHRegion.Appender.html" title="class in org.apache.hadoop.hbase.regionserver">TestHRegion.Appender</a></dt> <dd> </dd> -<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendEntriesToLog-int-">appendEntriesToLog(int)</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendEntriesToLogAndSync-int-">appendEntriesToLogAndSync(int)</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> <dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/wal/TestWALSplit.html#appendEntry-org.apache.hadoop.hbase.wal.WALProvider.Writer-org.apache.hadoop.hbase.TableName-byte:A-byte:A-byte:A-byte:A-byte:A-long-">appendEntry(WALProvider.Writer, TableName, byte[], byte[], byte[], byte[], byte[], long)</a></span> - Static method in class org.apache.hadoop.hbase.wal.<a href="org/apache/hadoop/hbase/wal/TestWALSplit.html" title="class in org.apache.hadoop.hbase.wal">TestWALSplit</a></dt> <dd> </dd> @@ -1339,9 +1339,11 @@ <dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendToLog-java.lang.String-">appendToLog(String)</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> <dd> </dd> -<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendToLog--">appendToLog()</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendToLog-int-">appendToLog(int)</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> <dd> </dd> -<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendToLogPlus-int-">appendToLogPlus(int)</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendToLogAndSync--">appendToLogAndSync()</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dd> </dd> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#appendToLogAndSync-int-">appendToLogAndSync(int)</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> <dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/util/MultiThreadedAction.html#appendToStatus-java.lang.StringBuilder-java.lang.String-long-">appendToStatus(StringBuilder, String, long)</a></span> - Static method in class org.apache.hadoop.hbase.util.<a href="org/apache/hadoop/hbase/util/MultiThreadedAction.html" title="class in org.apache.hadoop.hbase.util">MultiThreadedAction</a></dt> <dd> </dd> @@ -7940,7 +7942,7 @@ <dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicationSourceManager.html#conf">conf</a></span> - Static variable in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicationSourceManager.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestReplicationSourceManager</a></dt> <dd> </dd> -<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#conf">conf</a></span> - Static variable in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#CONF">CONF</a></span> - Static variable in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> <dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/TestReplicationSource.html#conf">conf</a></span> - Static variable in class org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationSource.html" title="class in org.apache.hadoop.hbase.replication">TestReplicationSource</a></dt> <dd> </dd> @@ -9634,6 +9636,8 @@ </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/regionserver/TestWALMonotonicallyIncreasingSeqId.html#createReader-org.apache.hadoop.fs.Path-org.apache.hadoop.fs.Path-">createReader(Path, Path)</a></span> - Method in class org.apache.hadoop.hbase.regionserver.<a href="org/apache/hadoop/hbase/regionserver/TestWALMonotonicallyIncreasingSeqId.html" title="class in org.apache.hadoop.hbase.regionserver">TestWALMonotonicallyIncreasingSeqId</a></dt> <dd> </dd> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#createReader-boolean-org.apache.hadoop.conf.Configuration-">createReader(boolean, Configuration)</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/test/IntegrationTestTimeBoundedRequestsWithRegionReplicas.TimeBoundedMultiThreadedReader.html#createReaderThread-int-">createReaderThread(int)</a></span> - Method in class org.apache.hadoop.hbase.test.<a href="org/apache/hadoop/hbase/test/IntegrationTestTimeBoundedRequestsWithRegionReplicas.TimeBoundedMultiThreadedReader.html" title="class in org.apache.hadoop.hbase.test">IntegrationTestTimeBoundedRequestsWithRegionReplicas.TimeBoundedMultiThreadedReader</a></dt> <dd> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/util/MultiThreadedReader.html#createReaderThread-int-">createReaderThread(int)</a></span> - Method in class org.apache.hadoop.hbase.util.<a href="org/apache/hadoop/hbase/util/MultiThreadedReader.html" title="class in org.apache.hadoop.hbase.util">MultiThreadedReader</a></dt> @@ -57109,7 +57113,11 @@ </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicationSourceManagerZkImpl.html#TestReplicationSourceManagerZkImpl--">TestReplicationSourceManagerZkImpl()</a></span> - Constructor for class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicationSourceManagerZkImpl.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestReplicationSourceManagerZkImpl</a></dt> <dd> </dd> -<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#testReplicationSourceWALReaderThread--">testReplicationSourceWALReaderThread()</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#testReplicationSourceWALReader--">testReplicationSourceWALReader()</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dd> </dd> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#testReplicationSourceWALReaderRecovered--">testReplicationSourceWALReaderRecovered()</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> +<dd> </dd> +<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html#testReplicationSourceWALReaderWrongPosition--">testReplicationSourceWALReaderWrongPosition()</a></span> - Method in class org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestWALEntryStream.html" title="class in org.apache.hadoop.hbase.replication.regionserver">TestWALEntryStream</a></dt> <dd> </dd> <dt><a href="org/apache/hadoop/hbase/replication/TestReplicationStateBasic.html" title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationStateBasic</span></a> - Class in <a href="org/apache/hadoop/hbase/replication/package-summary.html">org.apache.hadoop.hbase.replication</a></dt> <dd>
