You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/08/07 16:41:16 UTC
[GitHub] [accumulo] jzgithub1 commented on a change in pull request #1152:
Fix #1120 - Improve batch writer throughput
jzgithub1 commented on a change in pull request #1152: Fix #1120 - Improve batch writer throughput
URL: https://github.com/apache/accumulo/pull/1152#discussion_r311651791
##########
File path: core/src/main/java/org/apache/accumulo/core/clientImpl/TabletServerBatchWriter.java
##########
@@ -280,8 +284,17 @@ public synchronized void addMutation(TableId table, Mutation m)
mutations.addMutation(table, m);
totalAdded++;
- if (mutations.getMemoryUsed() >= maxMem / 2) {
- startProcessing();
+ if (mutations.getMemoryUsed() >= maxMem / MAX_MEMORY_DIVISOR) {
+ if (!somethingFailed) {
+ startProcessing();
+ consecutiveFailedProcessCalls.set(0);
+ } else
+ consecutiveFailedProcessCalls.getAndIncrement();
Review comment:
@phrocker, I am not sure what you want me to do? Do you think there is anything of value in this pull request? @keith-turner had reservations about it. I created it so I thought it would help.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services