Konstantin Shvachko created HDFS-15291: ------------------------------------------
Summary: [SBN read] Implement CyclicalBlockingQueue to avoid requing RPC calls on Observer. Key: HDFS-15291 URL: https://issues.apache.org/jira/browse/HDFS-15291 Project: Hadoop HDFS Issue Type: Improvement Components: namenode Reporter: Konstantin Shvachko RPC queue is currently based on {{LinkedBlockingQueue}}, which is FIFO. For Observer we delay execution of a call if its lastSeenStateId is larger than the stateId of the Observer. The delay implemented as re-queuing the call to the and of the queue. Re-queue is not atomic. We can avoid moving elements in the queue by replacing {{LinkedBlockingQueue}} with a {{CyclicalBlockingQueue}}. So that instead of re-queuing we just move the head of the queue and the call automatically becomes the last. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org