apache / apache/hudi

Multi-writer unique key enforcement for OCC/NBCC

Open
#16,593 2 comments 0 reactions 1 assignee Assigned to @danny0405 View on GitHub
from-jira priority:critical type:devtask
Dominant language
Java
Stars
6.2k
Forks
2.5k
Avg merge
2d 8h
Merged PRs (30d)
111

Description

When multiple writers try to insert records of the same record key that does not exsit in the table, both writers can succeed leading to duplicates in the table.  In reality, this might not happen in common use cases (e.g., streaming CDC logs to table through Kafka).  Still, if we'd like to strictly guarantee key uniqueness for concurrent inserts, we may need the Hudi index to be aware of multiple writers (right now the index only reads committed data), so that we can efficiently identify the same record key across multiple writers.

## JIRA info

- Link: https://issues.apache.org/jira/browse/HUDI-8142
- Type: Task
- Epic: https://issues.apache.org/jira/browse/HUDI-6640
- Fix version(s):
- 1.1.0

---

## Comments

23/Sep/24 18:55;yihua;Deferring this to Hudi 1.1.0 since the multi-writer unique key enforcement for inserts require fundamental redesign on concurrency control and indexing.;;;

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.