【HDFS】一天一个RPC系列--updateBlockForPipeline

本文目标是:

  • 弄清updateBlockForPipeline这个RPC的作用。
  • 弄清updateBlockForPipeline RPC的使用场景,代码里的调用点。

一、updateBlockForPipeline的作用

其定义在ClientProtocol接口里,是Client与NameNode之间的接口。

看其代码注释描述:
为一个under construction状态下的block获取一个新的GS与access token。
此RPC只有在client需要恢复一个失败的pipeline时、或者为了append建立一个pipeline时会被调用。

  /**
   * Get a new generation stamp together with an access token for
   * a block under construction
   *
   * This method is called only when a client needs to recover a failed
   * pipeline or set up a pipeline for appending to a block.
   *
   * @param block a block
   * @param clientName the name of the client
   * @return a located block with a new generation stamp and an access token
   * @throws IOException if any error occurs
   */
  

相关推荐

  1. HDFS一个RPC系列--updateBlockForPipeline

    2024-01-28 06:36:01       57 阅读
  2. HDFS一个RPC系列--updatePipeline

    2024-01-28 06:36:01       59 阅读
  3. 一个算法】---时间轮算法

    2024-01-28 06:36:01       50 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-28 06:36:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-28 06:36:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-28 06:36:01       82 阅读
  4. Python语言-面向对象

    2024-01-28 06:36:01       91 阅读

热门阅读

  1. ClickHouse(22)ClickHouse集成HDFS表引擎详细解析

    2024-01-28 06:36:01       42 阅读
  2. golang实现一个简单的HTTP server

    2024-01-28 06:36:01       57 阅读
  3. 单元测试——题目十三

    2024-01-28 06:36:01       58 阅读
  4. 系统架构17 - 软件工程(5)

    2024-01-28 06:36:01       46 阅读
  5. vue项目中路由懒加载的三种方式

    2024-01-28 06:36:01       54 阅读