Geoffrey Jacoby created PHOENIX-6685:
----------------------------------------
Summary: Change Data Capture - Populate Table / Topic Mappings
Key: PHOENIX-6685
URL: https://issues.apache.org/jira/browse/PHOENIX-6685
Project: Phoenix
Issue Type: Sub-task
Reporter: Geoffrey Jacoby
Assignee: Geoffrey Jacoby
Fix For: 5.2.0
When creating a new table with CHANGE_DETECTION_ENABLED, or when altering an
existing table to set this property to true, we should persist a mapping
between the table being enabled, and the message broker topic which will carry
its change messages.
This will allow both producers and consumers to use Phoenix metadata APIs to
figure out which topic to produce or consume from.
In the CDC prototype my colleagues and I have been working with, this has been
using a distinct system table we've manually populated. However, we may want to
consider using System.Catalog linking rows instead, to make things more atomic.
If table and topic will always be 1:1, we can also consider just adding an
optional field to SYSTEM.CATALOG that views and tables can populate.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)