You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "jw-itq (via GitHub)" <gi...@apache.org> on 2025/02/28 05:54:54 UTC

[I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

jw-itq opened a new issue, #8870:
URL: https://github.com/apache/seatunnel/issues/8870

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   When using mongo-cdc connector in incremental mode, the connector fails to properly handle new tables added after a savepoint.
   Steps to Reproduce
   
   1.Start a mongo-cdc synchronization job to JDBC in incremental mode
   2.Stop the job using savepoint
   3.Add new tables to the configuration file
   4.Restart the job using the previous jobid
   5.Check logs and target database - only data from the last table in the configuration is being synchronized
   
   ### SeaTunnel Version
   
   dev
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 1000
   }
   
   source {
     MongoDB-CDC {
       hosts = "mongo0:27017"
       database = ["inventory"]
       collection = ["inventory.address_hangzhou"]
       username = superuser
       password = superpw
       tables_configs = [
         {
           schema {
             table = "inventory.address_hangzhou"
             primaryKey {
               name = "id"
               columnNames = ["_id"]
             }
             fields {
               "_id": string,
               "cid": long,
               "country": string,
               "city": string,
               "detail_address": string
             }
           }
         }
       ]
     }
   }
   
   sink {
     jdbc {
       url = "jdbc:mysql://mysql_e2e:3306/mongodb_cdc"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "st_user"
       password = "seatunnel"
       generate_sink_sql = true
       # You need to configure both database and table
       database = mongodb_cdc
       table = "${table_name}"
       primary_keys = ["_id"]
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   seatunnel.sh -c mongodb-cdc-to-jdbc.conf -r 55555555
   ```
   
   ### Error Exception
   
   ```log
   -
   ```
   
   ### Zeta or Flink or Spark Version
   
   zeta
   
   ### Java or Scala Version
   
   jdk1.8
   
   ### Screenshots
   
   <img width="1182" alt="Image" src="https://github.com/user-attachments/assets/7d97d36f-fb8b-4334-af5a-996f10ae7498" />
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #8870:
URL: https://github.com/apache/seatunnel/issues/8870#issuecomment-5065310207

   Thanks for the clarification.\n\nI still cannot confirm "resolved" from this historical thread alone, because there is no current reproduction, version, or restore-path evidence attached here, and there is no linked fix in this issue that proves the original path is gone.\n\nSo the practical next step is still: if you can reproduce this on a current build, please reopen this issue or open a new English issue with:\n1. the exact SeaTunnel version or commit\n2. whether it happens after savepoint restore or during a fresh incremental run\n3. the full Mongo CDC config with sensitive fields masked\n4. the logs around new-table discovery, split restore, and checkpoint recovery\n\nWithout that, we would only be guessing whether this is the same root cause or a different Mongo CDC path.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "dingsongjie (via GitHub)" <gi...@apache.org>.
dingsongjie commented on issue #8870:
URL: https://github.com/apache/seatunnel/issues/8870#issuecomment-5041879770

   Is this issue resolved? @jw-itq 


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8870:
URL: https://github.com/apache/seatunnel/issues/8870#issuecomment-2807866624

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8870:
URL: https://github.com/apache/seatunnel/issues/8870#issuecomment-2770975306

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8870: [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables
URL: https://github.com/apache/seatunnel/issues/8870


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "jw-itq (via GitHub)" <gi...@apache.org>.
jw-itq commented on issue #8870:
URL: https://github.com/apache/seatunnel/issues/8870#issuecomment-2692742605

   I now realize that it may be an issue here
   
   <img width="1379" alt="Image" src="https://github.com/user-attachments/assets/afc976d4-e6b1-4de7-aba3-903f5c363f32" />


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "jw-itq (via GitHub)" <gi...@apache.org>.
jw-itq commented on issue #8870:
URL: https://github.com/apache/seatunnel/issues/8870#issuecomment-5053778676

   > Is this issue resolved? [@jw-itq](https://github.com/jw-itq)
   
   maybe not yet, you can confirm it.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [mongodb-cdc] mongo-cdc cannot dynamically add new tables [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #8870:
URL: https://github.com/apache/seatunnel/issues/8870#issuecomment-5053400498

   Thanks for checking back on this.
   
   This thread was auto-closed for inactivity, and there is no linked fix here that confirms the dynamic new-table discovery path is resolved on current `dev`.
   
   At the moment, there still is not enough current information to tell whether your case is the same root cause or a different Mongo CDC restore / discovery path.
   
   If you can still reproduce it, please reopen this issue or open a new one with:
   1. the exact SeaTunnel version or commit
   2. whether it happens after savepoint restore or during a fresh incremental run
   3. the full Mongo CDC config with sensitive fields masked
   4. the relevant logs around new table discovery and split restore
   
   Once those details are available, we can continue the analysis more precisely.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org