You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/08/26 03:37:16 UTC

[GitHub] [druid] licl2014 opened a new issue #10322: HttpPostEmitter emit duplicatie failed metrics

licl2014 opened a new issue #10322:
URL: https://github.com/apache/druid/issues/10322


   HttpPostEmitter emit duplicatie failed metrics
   ### Affected Version
   
   0.12.3
   ### Description
   ```
       private void tryEmitOneFailedBuffer()
       {
         FailedBuffer failedBuffer = failedBuffers.peekFirst();
         if (failedBuffer != null) {
           if (sendWithRetries(failedBuffer.buffer, failedBuffer.length, failedBuffer.eventCount, false)) {
             // Remove from the queue of failed buffer.
             failedBuffers.pollFirst();
             approximateFailedBuffersCount.decrementAndGet();
             // Don't add the failed buffer back to the buffersToReuse queue here, because in a situation when we were not
             // able to emit events for a while we don't have a way to discard buffers that were used to accumulate events
             // during that period, if they are added back to buffersToReuse. For instance it may result in having 100
             // buffers in rotation even if we need just 2.
           }
         }
       }
   ```
   `failedBuffer` will be sent many times if  `sendWithRetries` not success.
   
   


----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org