-
Notifications
You must be signed in to change notification settings - Fork 638
docs: repare the transaction conflicts resolution flow #5133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we could actually just make this a mermaid diagram. Then it's more understandable by AIs and can just be edited as text. Here's how I would write it: flowchart LR
A[Write data files] --> C[Check for concurrent commits]
A -.-> DF{{data/31a7060e-4898-4ecd-a428-afbff3539fa6.lance}}
C --> D{Are there conflicts?}
D -->|None| E[Write transaction file]
E -.-> Txn{{_transactions/42-76019405-8d5a-43c3-a7a2-324ed49a9d75.txn}}
D-->|Resolvable| G[Resolve conflicts] --> E
G -.->|merged| Deletions{{_deletions/31a7060e-4898-4ecd-a428-afbff3539fa6.lance}}
D -->|Retryable| H[Retry operation 🔄]
D -->|Non-retryable| F[Abort ✗]
E --> I[Atomically write manifest]
I -.-> Manifest{{_versions/43.manifest}}
I --> J{Success?}
J -->|Yes| K[Complete ✓]
J -->|No| C
style A fill:#e1f5fe
style K fill:#c8e6c9
style F fill:#ffcdd2
style H fill:#fff3e0
style DF fill:#ddd
style Txn fill:#ddd
style Manifest fill:#ddd
style Deletions fill: #ddd
This basically describes four outcomes of checking for conflicts:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry a bit late to this conversation, did not realize this PR. I just published #5209 which refreshes a lot of content for the table format and overall format intro. I also updated conflict resolution with mermaid diagram, but a bit different from this one. I will check tomorrow to see if I can reuse the content here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I guess this PR would be useless.
Thanks for correcting me @wjones127 . I was misunderstanding about Is this good to close? @jackye1995 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to update this soon with #4774