You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Konstantin Shvachko (Jira)" <ji...@apache.org> on 2020/04/21 02:03:00 UTC
[jira] [Created] (HDFS-15291) [SBN read] Implement
CyclicalBlockingQueue to avoid requing RPC calls on Observer.
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org