Skip to content

[IOTDB-5739] Pipe realtime event process: listener -> assigner -> matcher -> collector#9479

Merged
SteveYurongSu merged 24 commits intoapache:masterfrom
yschengzi:IOTDB-5739
Apr 27, 2023
Merged

[IOTDB-5739] Pipe realtime event process: listener -> assigner -> matcher -> collector#9479
SteveYurongSu merged 24 commits intoapache:masterfrom
yschengzi:IOTDB-5739

Conversation

@yschengzi
Copy link
Contributor

@yschengzi yschengzi commented Mar 29, 2023

Realtime Collect Process:

  • Control flow: DataRegion -> PipeChangeDataCaptureListener -> DataRegionChangeDataCache -> PipeRealtimeCollector -> (ProcessorStage)
  • Data flow: InsertNode/TsFileResource -> PipeTabletInsertionEvent/PipeTsFileInsertionEvent -> PipeRealtimeCollectEvent -> Event

UT

  • Put InsertNode/TsFileResource to PipeChangeDataCaptureListener, check event supplied by PipeRealtimeCollector
  • Test Correctness and OPS of CachedMatcher

TODO:

  1. check if Object Pool of Event is need
  2. DEFAULT_RING_BUFFER_SIZE
  3. WAIT_STRATEGY
  4. TabletInsertionEvent Serialize to disk
  5. Collector Interface
  6. replace ABQ's pending queue with disruptor
  7. PipeResourceManager
  8. Handle exception caused by reaching capacity of Realtime Collector PendingQueue
  9. toString of PipeTabletInsertionEvent and PipeTsFileInsertionEvent
  10. PipeChangeDataCaptureListener should support collect reference count.

@yschengzi yschengzi marked this pull request as draft March 29, 2023 07:14
@SteveYurongSu SteveYurongSu self-assigned this Mar 31, 2023
@yschengzi yschengzi marked this pull request as ready for review April 18, 2023 05:23
@SteveYurongSu SteveYurongSu changed the title [IOTDB-5739]Pipe: RealtimeEventCollectorManager and Change Data Capture [IOTDB-5739] Pipe realtime event process: listener -> assigner -> matcher -> collector Apr 26, 2023
Copy link
Member

@SteveYurongSu SteveYurongSu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SteveYurongSu SteveYurongSu merged commit ed8d539 into apache:master Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants