http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncProcess.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncProcess.html 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncProcess.html
index ab61235..43bb2fe 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncProcess.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncProcess.html
@@ -299,224 +299,235 @@
 <span class="sourceLineNo">291</span>          LOG.error("Failed to get region 
location ", ex);<a name="line.291"></a>
 <span class="sourceLineNo">292</span>          // This action failed before 
creating ars. Retain it, but do not add to submit list.<a name="line.292"></a>
 <span class="sourceLineNo">293</span>          // We will then add it to ars 
in an already-failed state.<a name="line.293"></a>
-<span class="sourceLineNo">294</span>          retainedActions.add(new 
Action(r, ++posInList));<a name="line.294"></a>
-<span class="sourceLineNo">295</span>          locationErrors.add(ex);<a 
name="line.295"></a>
-<span class="sourceLineNo">296</span>          
locationErrorRows.add(posInList);<a name="line.296"></a>
-<span class="sourceLineNo">297</span>          it.remove();<a 
name="line.297"></a>
-<span class="sourceLineNo">298</span>          break; // Backward compat: we 
stop considering actions on location error.<a name="line.298"></a>
-<span class="sourceLineNo">299</span>        }<a name="line.299"></a>
-<span class="sourceLineNo">300</span>        ReturnCode code = 
checker.canTakeRow(loc, r);<a name="line.300"></a>
-<span class="sourceLineNo">301</span>        if (code == ReturnCode.END) {<a 
name="line.301"></a>
-<span class="sourceLineNo">302</span>          break;<a name="line.302"></a>
-<span class="sourceLineNo">303</span>        }<a name="line.303"></a>
-<span class="sourceLineNo">304</span>        if (code == ReturnCode.INCLUDE) 
{<a name="line.304"></a>
-<span class="sourceLineNo">305</span>          Action action = new Action(r, 
++posInList);<a name="line.305"></a>
-<span class="sourceLineNo">306</span>          setNonce(ng, r, action);<a 
name="line.306"></a>
-<span class="sourceLineNo">307</span>          retainedActions.add(action);<a 
name="line.307"></a>
-<span class="sourceLineNo">308</span>          // TODO: replica-get is not 
supported on this path<a name="line.308"></a>
-<span class="sourceLineNo">309</span>          byte[] regionName = 
loc.getRegionInfo().getRegionName();<a name="line.309"></a>
-<span class="sourceLineNo">310</span>          addAction(loc.getServerName(), 
regionName, action, actionsByServer, nonceGroup);<a name="line.310"></a>
-<span class="sourceLineNo">311</span>          it.remove();<a 
name="line.311"></a>
-<span class="sourceLineNo">312</span>        }<a name="line.312"></a>
-<span class="sourceLineNo">313</span>      }<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      firstIter = false;<a 
name="line.314"></a>
-<span class="sourceLineNo">315</span>    } while (retainedActions.isEmpty() 
&amp;&amp; atLeastOne &amp;&amp; (locationErrors == null));<a 
name="line.315"></a>
-<span class="sourceLineNo">316</span><a name="line.316"></a>
-<span class="sourceLineNo">317</span>    if (retainedActions.isEmpty()) return 
NO_REQS_RESULT;<a name="line.317"></a>
-<span class="sourceLineNo">318</span><a name="line.318"></a>
-<span class="sourceLineNo">319</span>    return submitMultiActions(task, 
retainedActions, nonceGroup,<a name="line.319"></a>
-<span class="sourceLineNo">320</span>        locationErrors, 
locationErrorRows, actionsByServer);<a name="line.320"></a>
-<span class="sourceLineNo">321</span>  }<a name="line.321"></a>
-<span class="sourceLineNo">322</span><a name="line.322"></a>
-<span class="sourceLineNo">323</span>  &lt;CResult&gt; AsyncRequestFuture 
submitMultiActions(AsyncProcessTask task,<a name="line.323"></a>
-<span class="sourceLineNo">324</span>      List&lt;Action&gt; retainedActions, 
long nonceGroup, List&lt;Exception&gt; locationErrors,<a name="line.324"></a>
-<span class="sourceLineNo">325</span>      List&lt;Integer&gt; 
locationErrorRows, Map&lt;ServerName, MultiAction&gt; actionsByServer) {<a 
name="line.325"></a>
-<span class="sourceLineNo">326</span>    AsyncRequestFutureImpl&lt;CResult&gt; 
ars = createAsyncRequestFuture(task, retainedActions, nonceGroup);<a 
name="line.326"></a>
-<span class="sourceLineNo">327</span>    // Add location errors if any<a 
name="line.327"></a>
-<span class="sourceLineNo">328</span>    if (locationErrors != null) {<a 
name="line.328"></a>
-<span class="sourceLineNo">329</span>      for (int i = 0; i &lt; 
locationErrors.size(); ++i) {<a name="line.329"></a>
-<span class="sourceLineNo">330</span>        int originalIndex = 
locationErrorRows.get(i);<a name="line.330"></a>
-<span class="sourceLineNo">331</span>        Row row = 
retainedActions.get(originalIndex).getAction();<a name="line.331"></a>
-<span class="sourceLineNo">332</span>        ars.manageError(originalIndex, 
row,<a name="line.332"></a>
-<span class="sourceLineNo">333</span>            
AsyncRequestFutureImpl.Retry.NO_LOCATION_PROBLEM, locationErrors.get(i), 
null);<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>    ars.sendMultiAction(actionsByServer, 
1, null, false);<a name="line.336"></a>
-<span class="sourceLineNo">337</span>    return ars;<a name="line.337"></a>
-<span class="sourceLineNo">338</span>  }<a name="line.338"></a>
-<span class="sourceLineNo">339</span><a name="line.339"></a>
-<span class="sourceLineNo">340</span>  /**<a name="line.340"></a>
-<span class="sourceLineNo">341</span>   * Helper that is used when grouping 
the actions per region server.<a name="line.341"></a>
-<span class="sourceLineNo">342</span>   *<a name="line.342"></a>
-<span class="sourceLineNo">343</span>   * @param server - server<a 
name="line.343"></a>
-<span class="sourceLineNo">344</span>   * @param regionName - regionName<a 
name="line.344"></a>
-<span class="sourceLineNo">345</span>   * @param action - the action to add to 
the multiaction<a name="line.345"></a>
-<span class="sourceLineNo">346</span>   * @param actionsByServer the 
multiaction per server<a name="line.346"></a>
-<span class="sourceLineNo">347</span>   * @param nonceGroup Nonce group.<a 
name="line.347"></a>
-<span class="sourceLineNo">348</span>   */<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  static void addAction(ServerName 
server, byte[] regionName, Action action,<a name="line.349"></a>
-<span class="sourceLineNo">350</span>      Map&lt;ServerName, MultiAction&gt; 
actionsByServer, long nonceGroup) {<a name="line.350"></a>
-<span class="sourceLineNo">351</span>    MultiAction multiAction = 
actionsByServer.get(server);<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    if (multiAction == null) {<a 
name="line.352"></a>
-<span class="sourceLineNo">353</span>      multiAction = new MultiAction();<a 
name="line.353"></a>
-<span class="sourceLineNo">354</span>      actionsByServer.put(server, 
multiAction);<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    }<a name="line.355"></a>
-<span class="sourceLineNo">356</span>    if (action.hasNonce() &amp;&amp; 
!multiAction.hasNonceGroup()) {<a name="line.356"></a>
-<span class="sourceLineNo">357</span>      
multiAction.setNonceGroup(nonceGroup);<a name="line.357"></a>
-<span class="sourceLineNo">358</span>    }<a name="line.358"></a>
-<span class="sourceLineNo">359</span><a name="line.359"></a>
-<span class="sourceLineNo">360</span>    multiAction.add(regionName, 
action);<a name="line.360"></a>
-<span class="sourceLineNo">361</span>  }<a name="line.361"></a>
-<span class="sourceLineNo">362</span><a name="line.362"></a>
-<span class="sourceLineNo">363</span>  /**<a name="line.363"></a>
-<span class="sourceLineNo">364</span>   * Submit immediately the list of rows, 
whatever the server status. Kept for backward<a name="line.364"></a>
-<span class="sourceLineNo">365</span>   * compatibility: it allows to be used 
with the batch interface that return an array of objects.<a name="line.365"></a>
-<span class="sourceLineNo">366</span>   * @param task The setting and data<a 
name="line.366"></a>
-<span class="sourceLineNo">367</span>   */<a name="line.367"></a>
-<span class="sourceLineNo">368</span>  private &lt;CResult&gt; 
AsyncRequestFuture submitAll(AsyncProcessTask task) {<a name="line.368"></a>
-<span class="sourceLineNo">369</span>    RowAccess&lt;? extends Row&gt; rows = 
task.getRowAccess();<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    List&lt;Action&gt; actions = new 
ArrayList&lt;&gt;(rows.size());<a name="line.370"></a>
+<span class="sourceLineNo">294</span><a name="line.294"></a>
+<span class="sourceLineNo">295</span>          int priority = 
HConstants.NORMAL_QOS;<a name="line.295"></a>
+<span class="sourceLineNo">296</span>          if (r instanceof Mutation) {<a 
name="line.296"></a>
+<span class="sourceLineNo">297</span>            priority = ((Mutation) 
r).getPriority();<a name="line.297"></a>
+<span class="sourceLineNo">298</span>          }<a name="line.298"></a>
+<span class="sourceLineNo">299</span>          retainedActions.add(new 
Action(r, ++posInList, priority));<a name="line.299"></a>
+<span class="sourceLineNo">300</span>          locationErrors.add(ex);<a 
name="line.300"></a>
+<span class="sourceLineNo">301</span>          
locationErrorRows.add(posInList);<a name="line.301"></a>
+<span class="sourceLineNo">302</span>          it.remove();<a 
name="line.302"></a>
+<span class="sourceLineNo">303</span>          break; // Backward compat: we 
stop considering actions on location error.<a name="line.303"></a>
+<span class="sourceLineNo">304</span>        }<a name="line.304"></a>
+<span class="sourceLineNo">305</span>        ReturnCode code = 
checker.canTakeRow(loc, r);<a name="line.305"></a>
+<span class="sourceLineNo">306</span>        if (code == ReturnCode.END) {<a 
name="line.306"></a>
+<span class="sourceLineNo">307</span>          break;<a name="line.307"></a>
+<span class="sourceLineNo">308</span>        }<a name="line.308"></a>
+<span class="sourceLineNo">309</span>        if (code == ReturnCode.INCLUDE) 
{<a name="line.309"></a>
+<span class="sourceLineNo">310</span>          int priority = 
HConstants.NORMAL_QOS;<a name="line.310"></a>
+<span class="sourceLineNo">311</span>          if (r instanceof Mutation) {<a 
name="line.311"></a>
+<span class="sourceLineNo">312</span>            priority = ((Mutation) 
r).getPriority();<a name="line.312"></a>
+<span class="sourceLineNo">313</span>          }<a name="line.313"></a>
+<span class="sourceLineNo">314</span>          Action action = new Action(r, 
++posInList, priority);<a name="line.314"></a>
+<span class="sourceLineNo">315</span>          setNonce(ng, r, action);<a 
name="line.315"></a>
+<span class="sourceLineNo">316</span>          retainedActions.add(action);<a 
name="line.316"></a>
+<span class="sourceLineNo">317</span>          // TODO: replica-get is not 
supported on this path<a name="line.317"></a>
+<span class="sourceLineNo">318</span>          byte[] regionName = 
loc.getRegionInfo().getRegionName();<a name="line.318"></a>
+<span class="sourceLineNo">319</span>          addAction(loc.getServerName(), 
regionName, action, actionsByServer, nonceGroup);<a name="line.319"></a>
+<span class="sourceLineNo">320</span>          it.remove();<a 
name="line.320"></a>
+<span class="sourceLineNo">321</span>        }<a name="line.321"></a>
+<span class="sourceLineNo">322</span>      }<a name="line.322"></a>
+<span class="sourceLineNo">323</span>      firstIter = false;<a 
name="line.323"></a>
+<span class="sourceLineNo">324</span>    } while (retainedActions.isEmpty() 
&amp;&amp; atLeastOne &amp;&amp; (locationErrors == null));<a 
name="line.324"></a>
+<span class="sourceLineNo">325</span><a name="line.325"></a>
+<span class="sourceLineNo">326</span>    if (retainedActions.isEmpty()) return 
NO_REQS_RESULT;<a name="line.326"></a>
+<span class="sourceLineNo">327</span><a name="line.327"></a>
+<span class="sourceLineNo">328</span>    return submitMultiActions(task, 
retainedActions, nonceGroup,<a name="line.328"></a>
+<span class="sourceLineNo">329</span>        locationErrors, 
locationErrorRows, actionsByServer);<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>  &lt;CResult&gt; AsyncRequestFuture 
submitMultiActions(AsyncProcessTask task,<a name="line.332"></a>
+<span class="sourceLineNo">333</span>      List&lt;Action&gt; retainedActions, 
long nonceGroup, List&lt;Exception&gt; locationErrors,<a name="line.333"></a>
+<span class="sourceLineNo">334</span>      List&lt;Integer&gt; 
locationErrorRows, Map&lt;ServerName, MultiAction&gt; actionsByServer) {<a 
name="line.334"></a>
+<span class="sourceLineNo">335</span>    AsyncRequestFutureImpl&lt;CResult&gt; 
ars = createAsyncRequestFuture(task, retainedActions, nonceGroup);<a 
name="line.335"></a>
+<span class="sourceLineNo">336</span>    // Add location errors if any<a 
name="line.336"></a>
+<span class="sourceLineNo">337</span>    if (locationErrors != null) {<a 
name="line.337"></a>
+<span class="sourceLineNo">338</span>      for (int i = 0; i &lt; 
locationErrors.size(); ++i) {<a name="line.338"></a>
+<span class="sourceLineNo">339</span>        int originalIndex = 
locationErrorRows.get(i);<a name="line.339"></a>
+<span class="sourceLineNo">340</span>        Row row = 
retainedActions.get(originalIndex).getAction();<a name="line.340"></a>
+<span class="sourceLineNo">341</span>        ars.manageError(originalIndex, 
row,<a name="line.341"></a>
+<span class="sourceLineNo">342</span>            
AsyncRequestFutureImpl.Retry.NO_LOCATION_PROBLEM, locationErrors.get(i), 
null);<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>    ars.sendMultiAction(actionsByServer, 
1, null, false);<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    return ars;<a name="line.346"></a>
+<span class="sourceLineNo">347</span>  }<a name="line.347"></a>
+<span class="sourceLineNo">348</span><a name="line.348"></a>
+<span class="sourceLineNo">349</span>  /**<a name="line.349"></a>
+<span class="sourceLineNo">350</span>   * Helper that is used when grouping 
the actions per region server.<a name="line.350"></a>
+<span class="sourceLineNo">351</span>   *<a name="line.351"></a>
+<span class="sourceLineNo">352</span>   * @param server - server<a 
name="line.352"></a>
+<span class="sourceLineNo">353</span>   * @param regionName - regionName<a 
name="line.353"></a>
+<span class="sourceLineNo">354</span>   * @param action - the action to add to 
the multiaction<a name="line.354"></a>
+<span class="sourceLineNo">355</span>   * @param actionsByServer the 
multiaction per server<a name="line.355"></a>
+<span class="sourceLineNo">356</span>   * @param nonceGroup Nonce group.<a 
name="line.356"></a>
+<span class="sourceLineNo">357</span>   */<a name="line.357"></a>
+<span class="sourceLineNo">358</span>  static void addAction(ServerName 
server, byte[] regionName, Action action,<a name="line.358"></a>
+<span class="sourceLineNo">359</span>      Map&lt;ServerName, MultiAction&gt; 
actionsByServer, long nonceGroup) {<a name="line.359"></a>
+<span class="sourceLineNo">360</span>    MultiAction multiAction = 
actionsByServer.get(server);<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    if (multiAction == null) {<a 
name="line.361"></a>
+<span class="sourceLineNo">362</span>      multiAction = new MultiAction();<a 
name="line.362"></a>
+<span class="sourceLineNo">363</span>      actionsByServer.put(server, 
multiAction);<a name="line.363"></a>
+<span class="sourceLineNo">364</span>    }<a name="line.364"></a>
+<span class="sourceLineNo">365</span>    if (action.hasNonce() &amp;&amp; 
!multiAction.hasNonceGroup()) {<a name="line.365"></a>
+<span class="sourceLineNo">366</span>      
multiAction.setNonceGroup(nonceGroup);<a name="line.366"></a>
+<span class="sourceLineNo">367</span>    }<a name="line.367"></a>
+<span class="sourceLineNo">368</span><a name="line.368"></a>
+<span class="sourceLineNo">369</span>    multiAction.add(regionName, 
action);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>  }<a name="line.370"></a>
 <span class="sourceLineNo">371</span><a name="line.371"></a>
-<span class="sourceLineNo">372</span>    // The position will be used by the 
processBatch to match the object array returned.<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    int posInList = -1;<a 
name="line.373"></a>
-<span class="sourceLineNo">374</span>    NonceGenerator ng = 
this.connection.getNonceGenerator();<a name="line.374"></a>
-<span class="sourceLineNo">375</span>    for (Row r : rows) {<a 
name="line.375"></a>
-<span class="sourceLineNo">376</span>      posInList++;<a name="line.376"></a>
-<span class="sourceLineNo">377</span>      if (r instanceof Put) {<a 
name="line.377"></a>
-<span class="sourceLineNo">378</span>        Put put = (Put) r;<a 
name="line.378"></a>
-<span class="sourceLineNo">379</span>        if (put.isEmpty()) {<a 
name="line.379"></a>
-<span class="sourceLineNo">380</span>          throw new 
IllegalArgumentException("No columns to insert for #" + (posInList+1)+ " 
item");<a name="line.380"></a>
-<span class="sourceLineNo">381</span>        }<a name="line.381"></a>
-<span class="sourceLineNo">382</span>      }<a name="line.382"></a>
-<span class="sourceLineNo">383</span>      Action action = new Action(r, 
posInList);<a name="line.383"></a>
-<span class="sourceLineNo">384</span>      setNonce(ng, r, action);<a 
name="line.384"></a>
-<span class="sourceLineNo">385</span>      actions.add(action);<a 
name="line.385"></a>
-<span class="sourceLineNo">386</span>    }<a name="line.386"></a>
-<span class="sourceLineNo">387</span>    AsyncRequestFutureImpl&lt;CResult&gt; 
ars = createAsyncRequestFuture(task, actions, ng.getNonceGroup());<a 
name="line.387"></a>
-<span class="sourceLineNo">388</span>    ars.groupAndSendMultiAction(actions, 
1);<a name="line.388"></a>
-<span class="sourceLineNo">389</span>    return ars;<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>  private &lt;CResult&gt; 
AsyncRequestFuture checkTask(AsyncProcessTask&lt;CResult&gt; task) {<a 
name="line.392"></a>
-<span class="sourceLineNo">393</span>    if (task.getRowAccess() == null || 
task.getRowAccess().isEmpty()) {<a name="line.393"></a>
-<span class="sourceLineNo">394</span>      return NO_REQS_RESULT;<a 
name="line.394"></a>
-<span class="sourceLineNo">395</span>    }<a name="line.395"></a>
-<span class="sourceLineNo">396</span>    
Objects.requireNonNull(task.getPool(), "The pool can't be NULL");<a 
name="line.396"></a>
-<span class="sourceLineNo">397</span>    
checkOperationTimeout(task.getOperationTimeout());<a name="line.397"></a>
-<span class="sourceLineNo">398</span>    
checkRpcTimeout(task.getRpcTimeout());<a name="line.398"></a>
-<span class="sourceLineNo">399</span>    return null;<a name="line.399"></a>
-<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>  private void setNonce(NonceGenerator 
ng, Row r, Action action) {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    if (!(r instanceof Append) &amp;&amp; 
!(r instanceof Increment)) return;<a name="line.403"></a>
-<span class="sourceLineNo">404</span>    action.setNonce(ng.newNonce()); // 
Action handles NO_NONCE, so it's ok if ng is disabled.<a name="line.404"></a>
-<span class="sourceLineNo">405</span>  }<a name="line.405"></a>
-<span class="sourceLineNo">406</span><a name="line.406"></a>
-<span class="sourceLineNo">407</span>  private int checkTimeout(String name, 
int timeout) {<a name="line.407"></a>
-<span class="sourceLineNo">408</span>    if (timeout &lt; 0) {<a 
name="line.408"></a>
-<span class="sourceLineNo">409</span>      throw new RuntimeException("The " + 
name + " must be bigger than zero,"<a name="line.409"></a>
-<span class="sourceLineNo">410</span>        + "current value is" + 
timeout);<a name="line.410"></a>
-<span class="sourceLineNo">411</span>    }<a name="line.411"></a>
-<span class="sourceLineNo">412</span>    return timeout;<a name="line.412"></a>
-<span class="sourceLineNo">413</span>  }<a name="line.413"></a>
-<span class="sourceLineNo">414</span>  private int checkOperationTimeout(int 
operationTimeout) {<a name="line.414"></a>
-<span class="sourceLineNo">415</span>    return checkTimeout("operation 
timeout", operationTimeout);<a name="line.415"></a>
+<span class="sourceLineNo">372</span>  /**<a name="line.372"></a>
+<span class="sourceLineNo">373</span>   * Submit immediately the list of rows, 
whatever the server status. Kept for backward<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   * compatibility: it allows to be used 
with the batch interface that return an array of objects.<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   * @param task The setting and data<a 
name="line.375"></a>
+<span class="sourceLineNo">376</span>   */<a name="line.376"></a>
+<span class="sourceLineNo">377</span>  private &lt;CResult&gt; 
AsyncRequestFuture submitAll(AsyncProcessTask task) {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>    RowAccess&lt;? extends Row&gt; rows = 
task.getRowAccess();<a name="line.378"></a>
+<span class="sourceLineNo">379</span>    List&lt;Action&gt; actions = new 
ArrayList&lt;&gt;(rows.size());<a name="line.379"></a>
+<span class="sourceLineNo">380</span><a name="line.380"></a>
+<span class="sourceLineNo">381</span>    // The position will be used by the 
processBatch to match the object array returned.<a name="line.381"></a>
+<span class="sourceLineNo">382</span>    int posInList = -1;<a 
name="line.382"></a>
+<span class="sourceLineNo">383</span>    NonceGenerator ng = 
this.connection.getNonceGenerator();<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    int highestPriority = 
HConstants.PRIORITY_UNSET;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    for (Row r : rows) {<a 
name="line.385"></a>
+<span class="sourceLineNo">386</span>      posInList++;<a name="line.386"></a>
+<span class="sourceLineNo">387</span>      if (r instanceof Put) {<a 
name="line.387"></a>
+<span class="sourceLineNo">388</span>        Put put = (Put) r;<a 
name="line.388"></a>
+<span class="sourceLineNo">389</span>        if (put.isEmpty()) {<a 
name="line.389"></a>
+<span class="sourceLineNo">390</span>          throw new 
IllegalArgumentException("No columns to insert for #" + (posInList+1)+ " 
item");<a name="line.390"></a>
+<span class="sourceLineNo">391</span>        }<a name="line.391"></a>
+<span class="sourceLineNo">392</span>        highestPriority = 
Math.max(put.getPriority(), highestPriority);<a name="line.392"></a>
+<span class="sourceLineNo">393</span>      }<a name="line.393"></a>
+<span class="sourceLineNo">394</span>      Action action = new Action(r, 
posInList, highestPriority);<a name="line.394"></a>
+<span class="sourceLineNo">395</span>      setNonce(ng, r, action);<a 
name="line.395"></a>
+<span class="sourceLineNo">396</span>      actions.add(action);<a 
name="line.396"></a>
+<span class="sourceLineNo">397</span>    }<a name="line.397"></a>
+<span class="sourceLineNo">398</span>    AsyncRequestFutureImpl&lt;CResult&gt; 
ars = createAsyncRequestFuture(task, actions, ng.getNonceGroup());<a 
name="line.398"></a>
+<span class="sourceLineNo">399</span>    ars.groupAndSendMultiAction(actions, 
1);<a name="line.399"></a>
+<span class="sourceLineNo">400</span>    return ars;<a name="line.400"></a>
+<span class="sourceLineNo">401</span>  }<a name="line.401"></a>
+<span class="sourceLineNo">402</span><a name="line.402"></a>
+<span class="sourceLineNo">403</span>  private &lt;CResult&gt; 
AsyncRequestFuture checkTask(AsyncProcessTask&lt;CResult&gt; task) {<a 
name="line.403"></a>
+<span class="sourceLineNo">404</span>    if (task.getRowAccess() == null || 
task.getRowAccess().isEmpty()) {<a name="line.404"></a>
+<span class="sourceLineNo">405</span>      return NO_REQS_RESULT;<a 
name="line.405"></a>
+<span class="sourceLineNo">406</span>    }<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    
Objects.requireNonNull(task.getPool(), "The pool can't be NULL");<a 
name="line.407"></a>
+<span class="sourceLineNo">408</span>    
checkOperationTimeout(task.getOperationTimeout());<a name="line.408"></a>
+<span class="sourceLineNo">409</span>    
checkRpcTimeout(task.getRpcTimeout());<a name="line.409"></a>
+<span class="sourceLineNo">410</span>    return null;<a name="line.410"></a>
+<span class="sourceLineNo">411</span>  }<a name="line.411"></a>
+<span class="sourceLineNo">412</span><a name="line.412"></a>
+<span class="sourceLineNo">413</span>  private void setNonce(NonceGenerator 
ng, Row r, Action action) {<a name="line.413"></a>
+<span class="sourceLineNo">414</span>    if (!(r instanceof Append) &amp;&amp; 
!(r instanceof Increment)) return;<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    action.setNonce(ng.newNonce()); // 
Action handles NO_NONCE, so it's ok if ng is disabled.<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 int checkRpcTimeout(int 
rpcTimeout) {<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    return checkTimeout("rpc timeout", 
rpcTimeout);<a name="line.419"></a>
-<span class="sourceLineNo">420</span>  }<a name="line.420"></a>
-<span class="sourceLineNo">421</span><a name="line.421"></a>
-<span class="sourceLineNo">422</span>  @VisibleForTesting<a 
name="line.422"></a>
-<span class="sourceLineNo">423</span>  &lt;CResult&gt; 
AsyncRequestFutureImpl&lt;CResult&gt; createAsyncRequestFuture(<a 
name="line.423"></a>
-<span class="sourceLineNo">424</span>      AsyncProcessTask task, 
List&lt;Action&gt; actions, long nonceGroup) {<a name="line.424"></a>
-<span class="sourceLineNo">425</span>    return new 
AsyncRequestFutureImpl&lt;&gt;(task, actions, nonceGroup, this);<a 
name="line.425"></a>
-<span class="sourceLineNo">426</span>  }<a name="line.426"></a>
-<span class="sourceLineNo">427</span><a name="line.427"></a>
-<span class="sourceLineNo">428</span>  /** Wait until the async does not have 
more than max tasks in progress. */<a name="line.428"></a>
-<span class="sourceLineNo">429</span>  protected void 
waitForMaximumCurrentTasks(int max, TableName tableName)<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      throws InterruptedIOException {<a 
name="line.430"></a>
-<span class="sourceLineNo">431</span>    
requestController.waitForMaximumCurrentTasks(max, id, periodToLog,<a 
name="line.431"></a>
-<span class="sourceLineNo">432</span>      getLogger(tableName, max));<a 
name="line.432"></a>
-<span class="sourceLineNo">433</span>  }<a name="line.433"></a>
-<span class="sourceLineNo">434</span><a name="line.434"></a>
-<span class="sourceLineNo">435</span>  private Consumer&lt;Long&gt; 
getLogger(TableName tableName, long max) {<a name="line.435"></a>
-<span class="sourceLineNo">436</span>    return (currentInProgress) -&gt; {<a 
name="line.436"></a>
-<span class="sourceLineNo">437</span>      LOG.info("#" + id + (max &lt; 0 ? 
", waiting for any free slot"<a name="line.437"></a>
-<span class="sourceLineNo">438</span>      : ", waiting for some tasks to 
finish. Expected max="<a name="line.438"></a>
-<span class="sourceLineNo">439</span>      + max) + ", tasksInProgress=" + 
currentInProgress +<a name="line.439"></a>
-<span class="sourceLineNo">440</span>      " hasError=" + hasError() + 
tableName == null ? "" : ", tableName=" + tableName);<a name="line.440"></a>
-<span class="sourceLineNo">441</span>    };<a name="line.441"></a>
-<span class="sourceLineNo">442</span>  }<a name="line.442"></a>
-<span class="sourceLineNo">443</span><a name="line.443"></a>
-<span class="sourceLineNo">444</span>  void 
incTaskCounters(Collection&lt;byte[]&gt; regions, ServerName sn) {<a 
name="line.444"></a>
-<span class="sourceLineNo">445</span>    
requestController.incTaskCounters(regions, sn);<a name="line.445"></a>
-<span class="sourceLineNo">446</span>  }<a name="line.446"></a>
-<span class="sourceLineNo">447</span><a name="line.447"></a>
-<span class="sourceLineNo">448</span><a name="line.448"></a>
-<span class="sourceLineNo">449</span>  void 
decTaskCounters(Collection&lt;byte[]&gt; regions, ServerName sn) {<a 
name="line.449"></a>
-<span class="sourceLineNo">450</span>    
requestController.decTaskCounters(regions, sn);<a name="line.450"></a>
-<span class="sourceLineNo">451</span>  }<a name="line.451"></a>
-<span class="sourceLineNo">452</span>  /**<a name="line.452"></a>
-<span class="sourceLineNo">453</span>   * Only used w/useGlobalErrors ctor 
argument, for HTable backward compat.<a name="line.453"></a>
-<span class="sourceLineNo">454</span>   * @return Whether there were any 
errors in any request since the last time<a name="line.454"></a>
-<span class="sourceLineNo">455</span>   *          {@link 
#waitForAllPreviousOpsAndReset(List, TableName)} was called, or AP was 
created.<a name="line.455"></a>
-<span class="sourceLineNo">456</span>   */<a name="line.456"></a>
-<span class="sourceLineNo">457</span>  public boolean hasError() {<a 
name="line.457"></a>
-<span class="sourceLineNo">458</span>    return globalErrors != null 
&amp;&amp; globalErrors.hasErrors();<a name="line.458"></a>
-<span class="sourceLineNo">459</span>  }<a name="line.459"></a>
-<span class="sourceLineNo">460</span><a name="line.460"></a>
-<span class="sourceLineNo">461</span>  /**<a name="line.461"></a>
-<span class="sourceLineNo">462</span>   * Only used w/useGlobalErrors ctor 
argument, for HTable backward compat.<a name="line.462"></a>
-<span class="sourceLineNo">463</span>   * Waits for all previous operations to 
finish, and returns errors and (optionally)<a name="line.463"></a>
-<span class="sourceLineNo">464</span>   * failed operations themselves.<a 
name="line.464"></a>
-<span class="sourceLineNo">465</span>   * @param failedRows an optional list 
into which the rows that failed since the last time<a name="line.465"></a>
-<span class="sourceLineNo">466</span>   *        {@link 
#waitForAllPreviousOpsAndReset(List, TableName)} was called, or AP was created, 
are saved.<a name="line.466"></a>
-<span class="sourceLineNo">467</span>   * @param tableName name of the table<a 
name="line.467"></a>
-<span class="sourceLineNo">468</span>   * @return all the errors since the 
last time {@link #waitForAllPreviousOpsAndReset(List, TableName)}<a 
name="line.468"></a>
-<span class="sourceLineNo">469</span>   *          was called, or AP was 
created.<a name="line.469"></a>
-<span class="sourceLineNo">470</span>   */<a name="line.470"></a>
-<span class="sourceLineNo">471</span>  public 
RetriesExhaustedWithDetailsException waitForAllPreviousOpsAndReset(<a 
name="line.471"></a>
-<span class="sourceLineNo">472</span>      List&lt;Row&gt; failedRows, 
TableName tableName) throws InterruptedIOException {<a name="line.472"></a>
-<span class="sourceLineNo">473</span>    waitForMaximumCurrentTasks(0, 
tableName);<a name="line.473"></a>
-<span class="sourceLineNo">474</span>    if (globalErrors == null || 
!globalErrors.hasErrors()) {<a name="line.474"></a>
-<span class="sourceLineNo">475</span>      return null;<a name="line.475"></a>
-<span class="sourceLineNo">476</span>    }<a name="line.476"></a>
-<span class="sourceLineNo">477</span>    if (failedRows != null) {<a 
name="line.477"></a>
-<span class="sourceLineNo">478</span>      
failedRows.addAll(globalErrors.actions);<a name="line.478"></a>
-<span class="sourceLineNo">479</span>    }<a name="line.479"></a>
-<span class="sourceLineNo">480</span>    RetriesExhaustedWithDetailsException 
result = globalErrors.makeException(logBatchErrorDetails);<a 
name="line.480"></a>
-<span class="sourceLineNo">481</span>    globalErrors.clear();<a 
name="line.481"></a>
-<span class="sourceLineNo">482</span>    return result;<a name="line.482"></a>
-<span class="sourceLineNo">483</span>  }<a name="line.483"></a>
-<span class="sourceLineNo">484</span><a name="line.484"></a>
-<span class="sourceLineNo">485</span>  /**<a name="line.485"></a>
-<span class="sourceLineNo">486</span>   * Create a caller. Isolated to be 
easily overridden in the tests.<a name="line.486"></a>
-<span class="sourceLineNo">487</span>   */<a name="line.487"></a>
-<span class="sourceLineNo">488</span>  @VisibleForTesting<a 
name="line.488"></a>
-<span class="sourceLineNo">489</span>  protected 
RpcRetryingCaller&lt;AbstractResponse&gt; createCaller(<a name="line.489"></a>
-<span class="sourceLineNo">490</span>      CancellableRegionServerCallable 
callable, int rpcTimeout) {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    return 
rpcCallerFactory.&lt;AbstractResponse&gt; 
newCaller(checkRpcTimeout(rpcTimeout));<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  }<a name="line.492"></a>
-<span class="sourceLineNo">493</span><a name="line.493"></a>
-<span class="sourceLineNo">494</span><a name="line.494"></a>
-<span class="sourceLineNo">495</span>  /**<a name="line.495"></a>
-<span class="sourceLineNo">496</span>   * Creates the server error tracker to 
use inside process.<a name="line.496"></a>
-<span class="sourceLineNo">497</span>   * Currently, to preserve the main 
assumption about current retries, and to work well with<a name="line.497"></a>
-<span class="sourceLineNo">498</span>   * the retry-limit-based calculation, 
the calculation is local per Process object.<a name="line.498"></a>
-<span class="sourceLineNo">499</span>   * We may benefit from connection-wide 
tracking of server errors.<a name="line.499"></a>
-<span class="sourceLineNo">500</span>   * @return ServerErrorTracker to use, 
null if there is no ServerErrorTracker on this connection<a name="line.500"></a>
-<span class="sourceLineNo">501</span>   */<a name="line.501"></a>
-<span class="sourceLineNo">502</span>  
ConnectionImplementation.ServerErrorTracker createServerErrorTracker() {<a 
name="line.502"></a>
-<span class="sourceLineNo">503</span>    return new 
ConnectionImplementation.ServerErrorTracker(<a name="line.503"></a>
-<span class="sourceLineNo">504</span>        this.serverTrackerTimeout, 
this.numTries);<a name="line.504"></a>
-<span class="sourceLineNo">505</span>  }<a name="line.505"></a>
-<span class="sourceLineNo">506</span><a name="line.506"></a>
-<span class="sourceLineNo">507</span>  static boolean isReplicaGet(Row row) 
{<a name="line.507"></a>
-<span class="sourceLineNo">508</span>    return (row instanceof Get) 
&amp;&amp; (((Get)row).getConsistency() == Consistency.TIMELINE);<a 
name="line.508"></a>
-<span class="sourceLineNo">509</span>  }<a name="line.509"></a>
-<span class="sourceLineNo">510</span><a name="line.510"></a>
-<span class="sourceLineNo">511</span>}<a name="line.511"></a>
+<span class="sourceLineNo">418</span>  private int checkTimeout(String name, 
int timeout) {<a name="line.418"></a>
+<span class="sourceLineNo">419</span>    if (timeout &lt; 0) {<a 
name="line.419"></a>
+<span class="sourceLineNo">420</span>      throw new RuntimeException("The " + 
name + " must be bigger than zero,"<a name="line.420"></a>
+<span class="sourceLineNo">421</span>        + "current value is" + 
timeout);<a name="line.421"></a>
+<span class="sourceLineNo">422</span>    }<a name="line.422"></a>
+<span class="sourceLineNo">423</span>    return timeout;<a name="line.423"></a>
+<span class="sourceLineNo">424</span>  }<a name="line.424"></a>
+<span class="sourceLineNo">425</span>  private int checkOperationTimeout(int 
operationTimeout) {<a name="line.425"></a>
+<span class="sourceLineNo">426</span>    return checkTimeout("operation 
timeout", operationTimeout);<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  }<a name="line.427"></a>
+<span class="sourceLineNo">428</span><a name="line.428"></a>
+<span class="sourceLineNo">429</span>  private int checkRpcTimeout(int 
rpcTimeout) {<a name="line.429"></a>
+<span class="sourceLineNo">430</span>    return checkTimeout("rpc timeout", 
rpcTimeout);<a name="line.430"></a>
+<span class="sourceLineNo">431</span>  }<a name="line.431"></a>
+<span class="sourceLineNo">432</span><a name="line.432"></a>
+<span class="sourceLineNo">433</span>  @VisibleForTesting<a 
name="line.433"></a>
+<span class="sourceLineNo">434</span>  &lt;CResult&gt; 
AsyncRequestFutureImpl&lt;CResult&gt; createAsyncRequestFuture(<a 
name="line.434"></a>
+<span class="sourceLineNo">435</span>      AsyncProcessTask task, 
List&lt;Action&gt; actions, long nonceGroup) {<a name="line.435"></a>
+<span class="sourceLineNo">436</span>    return new 
AsyncRequestFutureImpl&lt;&gt;(task, actions, nonceGroup, this);<a 
name="line.436"></a>
+<span class="sourceLineNo">437</span>  }<a name="line.437"></a>
+<span class="sourceLineNo">438</span><a name="line.438"></a>
+<span class="sourceLineNo">439</span>  /** Wait until the async does not have 
more than max tasks in progress. */<a name="line.439"></a>
+<span class="sourceLineNo">440</span>  protected void 
waitForMaximumCurrentTasks(int max, TableName tableName)<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      throws InterruptedIOException {<a 
name="line.441"></a>
+<span class="sourceLineNo">442</span>    
requestController.waitForMaximumCurrentTasks(max, id, periodToLog,<a 
name="line.442"></a>
+<span class="sourceLineNo">443</span>      getLogger(tableName, max));<a 
name="line.443"></a>
+<span class="sourceLineNo">444</span>  }<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span>  private Consumer&lt;Long&gt; 
getLogger(TableName tableName, long max) {<a name="line.446"></a>
+<span class="sourceLineNo">447</span>    return (currentInProgress) -&gt; {<a 
name="line.447"></a>
+<span class="sourceLineNo">448</span>      LOG.info("#" + id + (max &lt; 0 ? 
", waiting for any free slot"<a name="line.448"></a>
+<span class="sourceLineNo">449</span>      : ", waiting for some tasks to 
finish. Expected max="<a name="line.449"></a>
+<span class="sourceLineNo">450</span>      + max) + ", tasksInProgress=" + 
currentInProgress +<a name="line.450"></a>
+<span class="sourceLineNo">451</span>      " hasError=" + hasError() + 
tableName == null ? "" : ", tableName=" + tableName);<a name="line.451"></a>
+<span class="sourceLineNo">452</span>    };<a name="line.452"></a>
+<span class="sourceLineNo">453</span>  }<a name="line.453"></a>
+<span class="sourceLineNo">454</span><a name="line.454"></a>
+<span class="sourceLineNo">455</span>  void 
incTaskCounters(Collection&lt;byte[]&gt; regions, ServerName sn) {<a 
name="line.455"></a>
+<span class="sourceLineNo">456</span>    
requestController.incTaskCounters(regions, sn);<a name="line.456"></a>
+<span class="sourceLineNo">457</span>  }<a name="line.457"></a>
+<span class="sourceLineNo">458</span><a name="line.458"></a>
+<span class="sourceLineNo">459</span><a name="line.459"></a>
+<span class="sourceLineNo">460</span>  void 
decTaskCounters(Collection&lt;byte[]&gt; regions, ServerName sn) {<a 
name="line.460"></a>
+<span class="sourceLineNo">461</span>    
requestController.decTaskCounters(regions, sn);<a name="line.461"></a>
+<span class="sourceLineNo">462</span>  }<a name="line.462"></a>
+<span class="sourceLineNo">463</span>  /**<a name="line.463"></a>
+<span class="sourceLineNo">464</span>   * Only used w/useGlobalErrors ctor 
argument, for HTable backward compat.<a name="line.464"></a>
+<span class="sourceLineNo">465</span>   * @return Whether there were any 
errors in any request since the last time<a name="line.465"></a>
+<span class="sourceLineNo">466</span>   *          {@link 
#waitForAllPreviousOpsAndReset(List, TableName)} was called, or AP was 
created.<a name="line.466"></a>
+<span class="sourceLineNo">467</span>   */<a name="line.467"></a>
+<span class="sourceLineNo">468</span>  public boolean hasError() {<a 
name="line.468"></a>
+<span class="sourceLineNo">469</span>    return globalErrors != null 
&amp;&amp; globalErrors.hasErrors();<a name="line.469"></a>
+<span class="sourceLineNo">470</span>  }<a name="line.470"></a>
+<span class="sourceLineNo">471</span><a name="line.471"></a>
+<span class="sourceLineNo">472</span>  /**<a name="line.472"></a>
+<span class="sourceLineNo">473</span>   * Only used w/useGlobalErrors ctor 
argument, for HTable backward compat.<a name="line.473"></a>
+<span class="sourceLineNo">474</span>   * Waits for all previous operations to 
finish, and returns errors and (optionally)<a name="line.474"></a>
+<span class="sourceLineNo">475</span>   * failed operations themselves.<a 
name="line.475"></a>
+<span class="sourceLineNo">476</span>   * @param failedRows an optional list 
into which the rows that failed since the last time<a name="line.476"></a>
+<span class="sourceLineNo">477</span>   *        {@link 
#waitForAllPreviousOpsAndReset(List, TableName)} was called, or AP was created, 
are saved.<a name="line.477"></a>
+<span class="sourceLineNo">478</span>   * @param tableName name of the table<a 
name="line.478"></a>
+<span class="sourceLineNo">479</span>   * @return all the errors since the 
last time {@link #waitForAllPreviousOpsAndReset(List, TableName)}<a 
name="line.479"></a>
+<span class="sourceLineNo">480</span>   *          was called, or AP was 
created.<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   */<a name="line.481"></a>
+<span class="sourceLineNo">482</span>  public 
RetriesExhaustedWithDetailsException waitForAllPreviousOpsAndReset(<a 
name="line.482"></a>
+<span class="sourceLineNo">483</span>      List&lt;Row&gt; failedRows, 
TableName tableName) throws InterruptedIOException {<a name="line.483"></a>
+<span class="sourceLineNo">484</span>    waitForMaximumCurrentTasks(0, 
tableName);<a name="line.484"></a>
+<span class="sourceLineNo">485</span>    if (globalErrors == null || 
!globalErrors.hasErrors()) {<a name="line.485"></a>
+<span class="sourceLineNo">486</span>      return null;<a name="line.486"></a>
+<span class="sourceLineNo">487</span>    }<a name="line.487"></a>
+<span class="sourceLineNo">488</span>    if (failedRows != null) {<a 
name="line.488"></a>
+<span class="sourceLineNo">489</span>      
failedRows.addAll(globalErrors.actions);<a name="line.489"></a>
+<span class="sourceLineNo">490</span>    }<a name="line.490"></a>
+<span class="sourceLineNo">491</span>    RetriesExhaustedWithDetailsException 
result = globalErrors.makeException(logBatchErrorDetails);<a 
name="line.491"></a>
+<span class="sourceLineNo">492</span>    globalErrors.clear();<a 
name="line.492"></a>
+<span class="sourceLineNo">493</span>    return result;<a name="line.493"></a>
+<span class="sourceLineNo">494</span>  }<a name="line.494"></a>
+<span class="sourceLineNo">495</span><a name="line.495"></a>
+<span class="sourceLineNo">496</span>  /**<a name="line.496"></a>
+<span class="sourceLineNo">497</span>   * Create a caller. Isolated to be 
easily overridden in the tests.<a name="line.497"></a>
+<span class="sourceLineNo">498</span>   */<a name="line.498"></a>
+<span class="sourceLineNo">499</span>  @VisibleForTesting<a 
name="line.499"></a>
+<span class="sourceLineNo">500</span>  protected 
RpcRetryingCaller&lt;AbstractResponse&gt; createCaller(<a name="line.500"></a>
+<span class="sourceLineNo">501</span>      CancellableRegionServerCallable 
callable, int rpcTimeout) {<a name="line.501"></a>
+<span class="sourceLineNo">502</span>    return 
rpcCallerFactory.&lt;AbstractResponse&gt; 
newCaller(checkRpcTimeout(rpcTimeout));<a name="line.502"></a>
+<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
+<span class="sourceLineNo">504</span><a name="line.504"></a>
+<span class="sourceLineNo">505</span><a name="line.505"></a>
+<span class="sourceLineNo">506</span>  /**<a name="line.506"></a>
+<span class="sourceLineNo">507</span>   * Creates the server error tracker to 
use inside process.<a name="line.507"></a>
+<span class="sourceLineNo">508</span>   * Currently, to preserve the main 
assumption about current retries, and to work well with<a name="line.508"></a>
+<span class="sourceLineNo">509</span>   * the retry-limit-based calculation, 
the calculation is local per Process object.<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   * We may benefit from connection-wide 
tracking of server errors.<a name="line.510"></a>
+<span class="sourceLineNo">511</span>   * @return ServerErrorTracker to use, 
null if there is no ServerErrorTracker on this connection<a name="line.511"></a>
+<span class="sourceLineNo">512</span>   */<a name="line.512"></a>
+<span class="sourceLineNo">513</span>  
ConnectionImplementation.ServerErrorTracker createServerErrorTracker() {<a 
name="line.513"></a>
+<span class="sourceLineNo">514</span>    return new 
ConnectionImplementation.ServerErrorTracker(<a name="line.514"></a>
+<span class="sourceLineNo">515</span>        this.serverTrackerTimeout, 
this.numTries);<a name="line.515"></a>
+<span class="sourceLineNo">516</span>  }<a name="line.516"></a>
+<span class="sourceLineNo">517</span><a name="line.517"></a>
+<span class="sourceLineNo">518</span>  static boolean isReplicaGet(Row row) 
{<a name="line.518"></a>
+<span class="sourceLineNo">519</span>    return (row instanceof Get) 
&amp;&amp; (((Get)row).getConsistency() == Consistency.TIMELINE);<a 
name="line.519"></a>
+<span class="sourceLineNo">520</span>  }<a name="line.520"></a>
+<span class="sourceLineNo">521</span><a name="line.521"></a>
+<span class="sourceLineNo">522</span>}<a name="line.522"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaCallIssuingRunnable.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaCallIssuingRunnable.html
 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaCallIssuingRunnable.html
index 5dcc5c2..8f823a0 100644
--- 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaCallIssuingRunnable.html
+++ 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaCallIssuingRunnable.html
@@ -1275,7 +1275,7 @@
 <span class="sourceLineNo">1267</span>  private MultiServerCallable 
createCallable(final ServerName server, TableName tableName,<a 
name="line.1267"></a>
 <span class="sourceLineNo">1268</span>      final MultiAction multi) {<a 
name="line.1268"></a>
 <span class="sourceLineNo">1269</span>    return new 
MultiServerCallable(asyncProcess.connection, tableName, server,<a 
name="line.1269"></a>
-<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker);<a 
name="line.1270"></a>
+<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker, 
multi.getPriority());<a name="line.1270"></a>
 <span class="sourceLineNo">1271</span>  }<a name="line.1271"></a>
 <span class="sourceLineNo">1272</span>}<a name="line.1272"></a>
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaResultState.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaResultState.html
 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaResultState.html
index 5dcc5c2..8f823a0 100644
--- 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaResultState.html
+++ 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.ReplicaResultState.html
@@ -1275,7 +1275,7 @@
 <span class="sourceLineNo">1267</span>  private MultiServerCallable 
createCallable(final ServerName server, TableName tableName,<a 
name="line.1267"></a>
 <span class="sourceLineNo">1268</span>      final MultiAction multi) {<a 
name="line.1268"></a>
 <span class="sourceLineNo">1269</span>    return new 
MultiServerCallable(asyncProcess.connection, tableName, server,<a 
name="line.1269"></a>
-<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker);<a 
name="line.1270"></a>
+<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker, 
multi.getPriority());<a name="line.1270"></a>
 <span class="sourceLineNo">1271</span>  }<a name="line.1271"></a>
 <span class="sourceLineNo">1272</span>}<a name="line.1272"></a>
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html
 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html
index 5dcc5c2..8f823a0 100644
--- 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html
+++ 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html
@@ -1275,7 +1275,7 @@
 <span class="sourceLineNo">1267</span>  private MultiServerCallable 
createCallable(final ServerName server, TableName tableName,<a 
name="line.1267"></a>
 <span class="sourceLineNo">1268</span>      final MultiAction multi) {<a 
name="line.1268"></a>
 <span class="sourceLineNo">1269</span>    return new 
MultiServerCallable(asyncProcess.connection, tableName, server,<a 
name="line.1269"></a>
-<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker);<a 
name="line.1270"></a>
+<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker, 
multi.getPriority());<a name="line.1270"></a>
 <span class="sourceLineNo">1271</span>  }<a name="line.1271"></a>
 <span class="sourceLineNo">1272</span>}<a name="line.1272"></a>
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.SingleServerRequestRunnable.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.SingleServerRequestRunnable.html
 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.SingleServerRequestRunnable.html
index 5dcc5c2..8f823a0 100644
--- 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.SingleServerRequestRunnable.html
+++ 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.SingleServerRequestRunnable.html
@@ -1275,7 +1275,7 @@
 <span class="sourceLineNo">1267</span>  private MultiServerCallable 
createCallable(final ServerName server, TableName tableName,<a 
name="line.1267"></a>
 <span class="sourceLineNo">1268</span>      final MultiAction multi) {<a 
name="line.1268"></a>
 <span class="sourceLineNo">1269</span>    return new 
MultiServerCallable(asyncProcess.connection, tableName, server,<a 
name="line.1269"></a>
-<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker);<a 
name="line.1270"></a>
+<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker, 
multi.getPriority());<a name="line.1270"></a>
 <span class="sourceLineNo">1271</span>  }<a name="line.1271"></a>
 <span class="sourceLineNo">1272</span>}<a name="line.1272"></a>
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.html
 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.html
index 5dcc5c2..8f823a0 100644
--- 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.html
+++ 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.html
@@ -1275,7 +1275,7 @@
 <span class="sourceLineNo">1267</span>  private MultiServerCallable 
createCallable(final ServerName server, TableName tableName,<a 
name="line.1267"></a>
 <span class="sourceLineNo">1268</span>      final MultiAction multi) {<a 
name="line.1268"></a>
 <span class="sourceLineNo">1269</span>    return new 
MultiServerCallable(asyncProcess.connection, tableName, server,<a 
name="line.1269"></a>
-<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker);<a 
name="line.1270"></a>
+<span class="sourceLineNo">1270</span>        multi, 
asyncProcess.rpcFactory.newController(), rpcTimeout, tracker, 
multi.getPriority());<a name="line.1270"></a>
 <span class="sourceLineNo">1271</span>  }<a name="line.1271"></a>
 <span class="sourceLineNo">1272</span>}<a name="line.1272"></a>
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/CancellableRegionServerCallable.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/CancellableRegionServerCallable.html
 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/CancellableRegionServerCallable.html
index bcc54ff..e20820f 100644
--- 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/CancellableRegionServerCallable.html
+++ 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/CancellableRegionServerCallable.html
@@ -48,8 +48,8 @@
 <span class="sourceLineNo">040</span>  private final RetryingTimeTracker 
tracker;<a name="line.40"></a>
 <span class="sourceLineNo">041</span>  private final int rpcTimeout;<a 
name="line.41"></a>
 <span class="sourceLineNo">042</span>  
CancellableRegionServerCallable(Connection connection, TableName tableName, 
byte[] row,<a name="line.42"></a>
-<span class="sourceLineNo">043</span>      RpcController rpcController, int 
rpcTimeout, RetryingTimeTracker tracker) {<a name="line.43"></a>
-<span class="sourceLineNo">044</span>    super(connection, tableName, row, 
rpcController);<a name="line.44"></a>
+<span class="sourceLineNo">043</span>      RpcController rpcController, int 
rpcTimeout, RetryingTimeTracker tracker, int priority) {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    super(connection, tableName, row, 
rpcController, priority);<a name="line.44"></a>
 <span class="sourceLineNo">045</span>    this.rpcTimeout = rpcTimeout;<a 
name="line.45"></a>
 <span class="sourceLineNo">046</span>    this.tracker = tracker;<a 
name="line.46"></a>
 <span class="sourceLineNo">047</span>  }<a name="line.47"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f391bcef/devapidocs/src-html/org/apache/hadoop/hbase/client/ClientServiceCallable.html
----------------------------------------------------------------------
diff --git 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/ClientServiceCallable.html 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/ClientServiceCallable.html
index 0c92444..df5b40b 100644
--- 
a/devapidocs/src-html/org/apache/hadoop/hbase/client/ClientServiceCallable.html
+++ 
b/devapidocs/src-html/org/apache/hadoop/hbase/client/ClientServiceCallable.html
@@ -41,27 +41,28 @@
 <span class="sourceLineNo">033</span>@InterfaceAudience.Private<a 
name="line.33"></a>
 <span class="sourceLineNo">034</span>public abstract class 
ClientServiceCallable&lt;T&gt; extends<a name="line.34"></a>
 <span class="sourceLineNo">035</span>    RegionServerCallable&lt;T, 
ClientProtos.ClientService.BlockingInterface&gt; {<a name="line.35"></a>
-<span class="sourceLineNo">036</span>  public ClientServiceCallable(Connection 
connection, TableName tableName, byte [] row,<a name="line.36"></a>
-<span class="sourceLineNo">037</span>      RpcController rpcController) {<a 
name="line.37"></a>
-<span class="sourceLineNo">038</span>    super(connection, tableName, row, 
rpcController);<a name="line.38"></a>
-<span class="sourceLineNo">039</span>  }<a name="line.39"></a>
-<span class="sourceLineNo">040</span><a name="line.40"></a>
-<span class="sourceLineNo">041</span>  @Override<a name="line.41"></a>
-<span class="sourceLineNo">042</span>  protected void 
setStubByServiceName(ServerName serviceName) throws IOException {<a 
name="line.42"></a>
-<span class="sourceLineNo">043</span>    
setStub(getConnection().getClient(serviceName));<a name="line.43"></a>
-<span class="sourceLineNo">044</span>  }<a name="line.44"></a>
-<span class="sourceLineNo">045</span><a name="line.45"></a>
-<span class="sourceLineNo">046</span>  // Below here are simple methods that 
contain the stub and the rpcController.<a name="line.46"></a>
-<span class="sourceLineNo">047</span>  protected ClientProtos.GetResponse 
doGet(ClientProtos.GetRequest request)<a name="line.47"></a>
-<span class="sourceLineNo">048</span>  throws 
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException {<a 
name="line.48"></a>
-<span class="sourceLineNo">049</span>    return 
getStub().get(getRpcController(), request);<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>  protected ClientProtos.MutateResponse 
doMutate(ClientProtos.MutateRequest request)<a name="line.52"></a>
-<span class="sourceLineNo">053</span>  throws 
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException {<a 
name="line.53"></a>
-<span class="sourceLineNo">054</span>    return 
getStub().mutate(getRpcController(), request);<a name="line.54"></a>
-<span class="sourceLineNo">055</span>  }<a name="line.55"></a>
-<span class="sourceLineNo">056</span>}<a name="line.56"></a>
+<span class="sourceLineNo">036</span><a name="line.36"></a>
+<span class="sourceLineNo">037</span>  public ClientServiceCallable(Connection 
connection, TableName tableName, byte [] row,<a name="line.37"></a>
+<span class="sourceLineNo">038</span>      RpcController rpcController, int 
priority) {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    super(connection, tableName, row, 
rpcController, priority);<a name="line.39"></a>
+<span class="sourceLineNo">040</span>  }<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>  @Override<a name="line.42"></a>
+<span class="sourceLineNo">043</span>  protected void 
setStubByServiceName(ServerName serviceName) throws IOException {<a 
name="line.43"></a>
+<span class="sourceLineNo">044</span>    
setStub(getConnection().getClient(serviceName));<a name="line.44"></a>
+<span class="sourceLineNo">045</span>  }<a name="line.45"></a>
+<span class="sourceLineNo">046</span><a name="line.46"></a>
+<span class="sourceLineNo">047</span>  // Below here are simple methods that 
contain the stub and the rpcController.<a name="line.47"></a>
+<span class="sourceLineNo">048</span>  protected ClientProtos.GetResponse 
doGet(ClientProtos.GetRequest request)<a name="line.48"></a>
+<span class="sourceLineNo">049</span>  throws 
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException {<a 
name="line.49"></a>
+<span class="sourceLineNo">050</span>    return 
getStub().get(getRpcController(), request);<a name="line.50"></a>
+<span class="sourceLineNo">051</span>  }<a name="line.51"></a>
+<span class="sourceLineNo">052</span><a name="line.52"></a>
+<span class="sourceLineNo">053</span>  protected ClientProtos.MutateResponse 
doMutate(ClientProtos.MutateRequest request)<a name="line.53"></a>
+<span class="sourceLineNo">054</span>  throws 
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException {<a 
name="line.54"></a>
+<span class="sourceLineNo">055</span>    return 
getStub().mutate(getRpcController(), request);<a name="line.55"></a>
+<span class="sourceLineNo">056</span>  }<a name="line.56"></a>
+<span class="sourceLineNo">057</span>}<a name="line.57"></a>
 
 
 

Reply via email to