leonardBang commented on code in PR #2185:
URL: https://github.com/apache/fluss/pull/2185#discussion_r2727183519
##########
fluss-server/src/main/java/org/apache/fluss/server/coordinator/LakeTableTieringManager.java:
##########
@@ -83,19 +83,22 @@
* ▼ ▼
* ┌──────────┐ (lake freshness > tiering interval)
* │Scheduled ├──────┐
- * └──────────┘ ▼
- * ▲ ┌───────┐ (assign to tier service) ┌───────┐
- * | |Pending├──────────────────────────►|Tiering├─┐
- * | └───────┘ └───┬───┘ │
- * | ▲ ┌─────────────────┘ │
- * | | | (timeout or failure) | (finished)
- * | | ▼ ▼
- * | | (retry) ┌─────────┐ ┌────────┐
- * | └────────────│ Failed │ │ Tiered │
- * | └─────────┘ └────┬───┘
- * | |
- * └──────────────────────────────────────────────────────┘
- * (ready for next round of tiering)
+ * └─────▲────┘ ▼
Review Comment:
```java
* <li>Tiered: when the lake table finish(including force finished) one
round of tiering
* <li>Failed: when the lake table tiering failed
* </ul>
*
* <p>The state machine of table to be tiered is as follows:
*
* <pre>{@code
* ┌─────┐ ┌──────┐
* │ New │ │ Init │
* └──┬──┘ └──┬───┘
* ▼ ▼
* ┌──────────┐ (lake freshness > tiering interval)
* │Scheduled ├─────┐
* └─────▲────┘ │
* │ ┌───▼───┐ (assign to tier service) ┌───────┐
* │ |Pending├──────────────────────────►│Tiering├─┐
* │ └───▲───┘ └───┬───┘ │
* │ │ ┌─────────────────┘ │
* │ │ │ (timeout or failure) │ (finished)
* │ │ ▼ ▼
* │ │ (retry) ┌─────────┐ ┌────────┐
* │ │◀───────────│ Failed │ │ Tiered │
* │ │ └─────────┘ └─┬───┬──┘
* │ │ │ │
* │ │ (force finished) │ │
* │ └─────────────────────────────────────-┘ │
* │ (ready for next round) │
* └─────────────────────────────────────────────────────┘
* }</pre>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]