From 271d48b0448015901f1f0333856ded6587a966a2 Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Fri, 13 Dec 2024 16:59:53 -0800 Subject: [PATCH] markdownlint --- .../02-replication/01-storage-containers.md | 13 ++++++------- package.json | 11 ++++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/03-core-concepts/02-replication/01-storage-containers.md b/docs/03-core-concepts/02-replication/01-storage-containers.md index def39a0aa..3ec329072 100644 --- a/docs/03-core-concepts/02-replication/01-storage-containers.md +++ b/docs/03-core-concepts/02-replication/01-storage-containers.md @@ -23,8 +23,7 @@ Containers are big binary units (5Gb by default) which can contain multiple bloc ![Containers](Containers.png) Blocks are local information and not managed by SCM. Therefore even if billions of small files are created in the system (which means billions of blocks are created), only of the status of the containers will be reported by the Datanodes and containers will be replicated. - -When Ozone Manager requests a new Block allocation from the SCM, SCM will identify the suitable container and generate a block id which contains `ContainerId` + `LocalId`. Client will connect to the Datanode which stores the Container, and datanode can manage the separated block based on the `LocalId`. +When Ozone Manager requests a new Block allocation from the SCM, SCM will identify the suitable container and generate a block id which contains `ContainerId` + `LocalId`. Client will connect to the Datanode which stores the Container, and Datanode can manage the separated block based on the `LocalId`. ## Open vs. Closed containers @@ -32,8 +31,8 @@ When a container is created it starts in an OPEN state. When it's full (~5GB dat The fundamental differences between OPEN and CLOSED containers: -OPEN | CLOSED ------------------------------------|----------------------------------------- -mutable | immutable -replicated with RAFT (Ratis) | Replicated with async container copy -Raft leader is used to READ / WRITE | All the nodes can be used to READ +| OPEN | CLOSED | +|-----------------------------------|-----------------------------------------| +| mutable | immutable | +| replicated with RAFT (Ratis) | Replicated with async container copy | +| Raft leader is used to READ / WRITE | All the nodes can be used to READ | diff --git a/package.json b/package.json index 3166fcd0f..f91fb6547 100644 --- a/package.json +++ b/package.json @@ -16,22 +16,23 @@ }, "dependencies": { "@docusaurus/core": "3.3.2", - "@docusaurus/preset-classic": "3.3.2", "@docusaurus/plugin-pwa": "3.3.2", + "@docusaurus/preset-classic": "3.3.2", "@mdx-js/react": "^3.0.0", + "ajv": "^8.12.0", "clsx": "^2.1.0", "prism-react-renderer": "^2.3.1", "react": "^18.2.0", - "react-dom": "^18.2.0", - "ajv": "^8.12.0" + "react-dom": "^18.2.0" }, "devDependencies": { - "@docusaurus/module-type-aliases": "3.3.2", - "cspell": "^8.2.1", "@cspell/dict-docker": "^1.1.7", "@cspell/dict-java": "^5.0.6", "@cspell/dict-markdown": "^2.0.1", "@cspell/dict-shell": "^1.0.6", + "@docusaurus/module-type-aliases": "3.3.2", + "cspell": "^8.2.1", + "markdownlint": "^0.37.0", "markdownlint-cli": "^0.39.0" }, "browserslist": {