zhangyue19921010 opened a new issue, #11367:
URL: https://github.com/apache/paimon/issues/11367

   ### Search before asking
   
   - [x] I searched in the issues and found nothing similar.
   
   ### Paimon version
   
   2.2-SNAPSHOT, master at `cadff039cbfd399fbe3f05cbc238c01041086120`.
   
   ### Compute Engine
   
   Paimon source for Flink CDC 3.5.0, Flink 1.20.4.
   
   ### Minimal reproduce step
   
   1. Run a Paimon CDC source for a database containing two ordinary append 
tables, leaving the `table` option unset.
   2. Save a checkpoint while it contains splits that have not finished 
reading. These may still be queued in the coordinator or already assigned to a 
reader.
   3. Stop the job, drop one of the tables from the source catalog, and restore 
the checkpoint.
   
   The regression uses real committed tables, `CDCSource` enumeration, 
checkpoint/split serialization, and `Catalog.dropTable`. It covers pending and 
assigned splits, with one or both tables removed.
   
   ### What doesn't meet your expectations?
   
   The documented restart-after-drop workflow should skip the removed table and 
continue reading remaining tables. Coordinator recovery instead throws 
`NullPointerException` in `assignSuggestedTask`, or a restored reader fails 
with `TableNotExistException` while loading the removed table's schema.
   
   ### Anything else?
   
   Coordinator restore already skips metadata for missing tables but still adds 
their pending splits. Assigned reader splits bypass this check. Filter pending 
splits against restored table metadata and finish unavailable reader splits 
before opening their data, while preserving other catalog failures.
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!
   


-- 
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]

Reply via email to