Data Operations

Write

师成师成· 更新于 2026-09-28· 阅读 3 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

TODO: File a subtask under HDDS-9862 and complete this page or section.

Writing Metadata

Writing Data

Trace every part of a write request from beginning to end. This includes:

  • Client getting encryption keys

  • Client calling OM to create key

  • OM validating client's Kerberos principal

  • OM checking permissions (Ranger or Native ACLs)

  • OM allocating blocks from SCM

  • OM creating open key

    • Mention open key cleanup service, and that if key is not committed within a given time it will be picked up for deletion
  • OM generating block tokens from the shared secret previously retrieved from SCM

  • OM returning container, blocks, pipeline, block tokens

  • Client sending checksums and Datanodes validating

  • Client sending block tokens and Datanode validating based on the shared secret from SCM

  • Client sending write chunk and put block requests to the Datanodes

    • For Ratis:

      • Include topology choices of which Datanodes to use
      • Include failover handling
    • For EC and Ratis Streaming, link to their feature pages.

  • Client allocating more blocks if needed

  • Client committing to OM

  • OM checking the current namespace

    • Bucket must still exist
    • Existing key will be overwritten
  • OM committing the data and returning to the client

评论

登录后参与评论

正在加载评论…