You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "wenybing (via GitHub)" <gi...@apache.org> on 2026/02/25 03:50:37 UTC
[I] [Bug] [Oracle-cdc] oracle clob type update could not be synced [seatunnel]
wenybing opened a new issue, #10512:
URL: https://github.com/apache/seatunnel/issues/10512
### 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
By default, Oracle does not synchronize data in CLOB format. I attempted to add this advanced parameter "debezium.lob.enabled=true". However, if a CLOB column has no changes, the result of synchronizing the data to the target table would be: "__debezium_unavailable_value".
<img width="3142" height="1008" alt="Image" src="https://github.com/user-attachments/assets/97f7cdf7-a8e1-4865-b705-46674b676c65" />
The commit of debesium DBZ-4321 seems to have fixed this issue. It is recommended to upgrade the debesium version to 2.5.0 Final or above.
### SeaTunnel Version
2.3.12
### SeaTunnel Config
```conf
{
"env": {
"shade.identifier": "base64",
"job.mode": "STREAMING",
"parallelism": 1,
"job.name": "oracle-cdc2mysql-lob开启",
"checkpoint.interval": 10000
},
"source": [
{
"username": "ZHdzY2Rj",
"password": "cHJpbWV0b24wMDAwMDA=",
"plugin_name": "Oracle-CDC",
"result_table_name": "CDCSource1770778672419",
"database-names": [
"ORCL3"
],
"table-names": [
"ORCL3.DWSCDC.USERINFO2_C"
],
"table-names-config": [
{
"table": "ORCL3.DWSCDC.USERINFO2_C",
"primaryKeys": [
"USERCODE"
]
}
],
"base-url": "jdbc:oracle:thin:@127.0.0.1:1521:orcl3sid",
"startup.mode": "latest",
"exactly_once": true,
"debezium": {
"lob.enabled": "true"
},
"format": "default",
"schema-changes.enabled": false,
"schema-names": [
"DWSCDC"
],
"handle_blob_as_string": true,
"use_select_count": false,
"skip_analyze": false,
"decimal_type_narrowing": false
}
],
"transform": [],
"sink": [
{
"user": "cm9vdA==",
"password": "cHJpbWV0b24wMDAwMDA=",
"url": "jdbc:mysql://127.0.0.1:3306/dwstest?allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=GMT+8&allowLoadLocalInfile=true&useSSL=false",
"driver": "com.mysql.cj.jdbc.Driver",
"database": "dws_720",
"table": "USERINFO2_C",
"exactlyOnce": false,
"plugin_name": "Jdbc",
"source_table_name": "CDCSource1770778672419",
"connection_check_timeout_sec": 30,
"max_retries": 3,
"batch_size": 1000,
"batch_interval_ms": 1000,
"is_exactly_once": false,
"generate_sink_sql": true,
"max_commit_attempts": 3,
"transaction_timeout_sec": -1,
"auto_commit": true,
"schema_save_mode": "CREATE_SCHEMA_WHEN_NOT_EXIST",
"data_save_mode": "APPEND_DATA",
"field_ide": "ORIGINAL",
"use_copy_statement": false,
"handle_blob_as_string": true,
"primary_keys": [
"USERCODE"
]
}
]
}
```
### Running Command
```shell
./seatunnel.sh --config /opt/seatunnel/jobs/oracle-cdc2mysql.json
```
### Error Exception
```log
no exception
```
### Zeta or Flink or Spark Version
_No response_
### Java or Scala Version
_No response_
### Screenshots
_No response_
### 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] [Oracle-cdc] oracle clob type update could not be synced [seatunnel]
Posted by "DanielCarter-stack (via GitHub)" <gi...@apache.org>.
DanielCarter-stack commented on issue #10512:
URL: https://github.com/apache/seatunnel/issues/10512#issuecomment-3957037341
<!-- code-pr-reviewer -->
Thank you for reporting this and providing the root cause analysis.
Based on the codebase investigation, this issue is likely valid:
1. **Current Debezium version**: SeaTunnel uses Debezium `1.9.8.Final` (`seatunnel-connectors-v2/connector-cdc/pom.xml`), which is indeed below the `2.5.0.Final` where DBZ-4321 was fixed.
2. **Your configuration is valid**: The Oracle-CDC connector supports pass-through Debezium properties via `props.putAll(dbzProperties)` (`connector-cdc-oracle/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/oracle/config/OracleSourceConfigFactory.java:144-156`), so `debezium.lob.enabled=true` is a legitimate setting.
3. **Expected behavior**: CLOB types map to STRING per the connector docs (`docs/en/connectors/source/Oracle-CDC.md:218`), and `__debezium_unavailable_value` is a known Debezium placeholder for unavailable LOB values in older versions.
**Could you please provide the following to help prioritize this fix**:
- Exact SeaTunnel version you're using (e.g., 2.3.12 or snapshot)
- A minimal reproduction: source table DDL with the CLOB column, your SeaTunnel job config, and example UPDATE statement that triggers the issue
This information will help assess the risk and effort for a Debezium version upgrade.
--
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] [Oracle-cdc] oracle clob type update could not be synced [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #10512:
URL: https://github.com/apache/seatunnel/issues/10512#issuecomment-5111115900
Thanks for the detailed Oracle reproduction and for adding the table DDL / UPDATE example.
I rechecked the current `dev` dependency state. The CDC modules, including `connector-cdc-oracle`, still use Debezium `1.9.8.Final`, so SeaTunnel has not yet picked up the later Debezium Oracle LOB fixes you pointed to. With `debezium.lob.enabled=true`, the behavior you described is therefore a real Oracle CDC LOB support gap, not just a bad SeaTunnel job option.
At the same time, this should not be treated as a one-line Oracle connector change. A Debezium upgrade affects the shared CDC dependency surface across Oracle, MySQL, PostgreSQL, SQL Server, MongoDB, Vitess, and the common Debezium adapter code. The safe repair path is a focused PR that includes:
1. a Debezium upgrade compatibility audit for all CDC modules;
2. an Oracle CDC regression where a table has CLOB columns and an UPDATE changes only one CLOB / non-CLOB field while other LOB fields remain unchanged;
3. proof that the emitted row no longer contains `__debezium_unavailable_value` for unchanged LOB fields;
4. release-note or documentation wording if the fix only lands in `dev` / a future release line and is not backported to 2.3.12.
One extra note: the issue body contains encoded connection credentials. Even if they were only test values, please rotate them if they came from a real environment, and avoid posting credentials in public issues in future reports.
--
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] [Oracle-cdc] oracle clob type update could not be synced [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #10512:
URL: https://github.com/apache/seatunnel/issues/10512#issuecomment-5140457394
Thanks for the detailed report. This matches known Debezium behavior: unchanged LOB columns in UPDATE events are emitted as the placeholder '__debezium_unavailable_value' (Debezium's 'unavailable value' marker). SeaTunnel currently passes this through to the sink instead of handling it.
Two possible fixes to evaluate: (1) upgrade the embedded Debezium connector to 2.5.0.Final+ where DBZ-4321 improves reconstruction of LOB values, or (2) have the Oracle-CDC connector detect the unavailable-value placeholder and either fetch the current value or exclude the column from the sink UPDATE statement so the existing value is preserved.
As a short-term workaround, could you confirm whether adding 'debezium.unavailable.value.placeholder' handling on the sink side (e.g., excluding those columns from updates) is acceptable for your use case? Also please share the sink connector config so we can verify where the placeholder ends up being written.
<!-- streview-comment:10 -->
--
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] [Oracle-cdc] oracle clob type update could not be synced [seatunnel]
Posted by "wenybing (via GitHub)" <gi...@apache.org>.
wenybing commented on issue #10512:
URL: https://github.com/apache/seatunnel/issues/10512#issuecomment-3957214625
1. The version of Seatunnel I am using is 2.3.12 Release.
2. The DDL for the source table is as follows:
CREATE TABLE DWSCDC.USERINFO2_C (
USERCODE VARCHAR2(64),
USERNAME CLOB,
SEX CLOB,
AGE NUMBER(38,0),
UNITCODE CLOB,
DEPTCODE CLOB,
TELEPHONE VARCHAR2(64),
CREATETIME TIMESTAMP,
UPDATETIME DATE,
CONSTRAINT SYS_C0021295 CHECK ("USERCODE" IS NOT NULL),
CONSTRAINT USERINFO2_C_PRIMARYKEY PRIMARY KEY (USERCODE)
);
CREATE UNIQUE INDEX USERINFO2_C_PRIMARYKEY ON DWSCDC.USERINFO2_C (USERCODE);
3. The SeaTunnel job config is as follows:
{
"env": {
"shade.identifier": "base64",
"job.mode": "STREAMING",
"parallelism": 1,
"job.name": "oracle-cdc2mysql-lob开启",
"checkpoint.interval": 10000
},
"source": [
{
"username": "ZHdzY2Rj",
"password": "cHJpbWV0b24wMDAwMDA=",
"plugin_name": "Oracle-CDC",
"result_table_name": "CDCSource1770778672419",
"database-names": [
"ORCL3"
],
"table-names": [
"ORCL3.DWSCDC.USERINFO2_C"
],
"table-names-config": [
{
"table": "ORCL3.DWSCDC.USERINFO2_C",
"primaryKeys": [
"USERCODE"
]
}
],
"base-url": "jdbc:oracle:thin:@127.0.0.1:1521:orcl3sid",
"startup.mode": "latest",
"exactly_once": true,
"debezium": {
"lob.enabled": "true"
},
"format": "default",
"schema-changes.enabled": false,
"schema-names": [
"DWSCDC"
],
"handle_blob_as_string": true,
"use_select_count": false,
"skip_analyze": false,
"decimal_type_narrowing": false
}
],
"transform": [],
"sink": [
{
"user": "cm9vdA==",
"password": "cHJpbWV0b24wMDAwMDA=",
"url": "jdbc:mysql://127.0.0.1:3306/dwstest?allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&serverTimezone=GMT+8&allowLoadLocalInfile=true&useSSL=false",
"driver": "com.mysql.cj.jdbc.Driver",
"database": "dws_720",
"table": "USERINFO2_C",
"exactlyOnce": false,
"plugin_name": "Jdbc",
"source_table_name": "CDCSource1770778672419",
"connection_check_timeout_sec": 30,
"max_retries": 3,
"batch_size": 1000,
"batch_interval_ms": 1000,
"is_exactly_once": false,
"generate_sink_sql": true,
"max_commit_attempts": 3,
"transaction_timeout_sec": -1,
"auto_commit": true,
"schema_save_mode": "CREATE_SCHEMA_WHEN_NOT_EXIST",
"data_save_mode": "APPEND_DATA",
"field_ide": "ORIGINAL",
"use_copy_statement": false,
"handle_blob_as_string": true,
"primary_keys": [
"USERCODE"
]
}
]
}
4. Run the CDC job
5. The data of the source table is as follows:
<img width="2386" height="652" alt="Image" src="https://github.com/user-attachments/assets/3322535c-9b84-4345-b56e-dbf8da185ea9" />
6. Modify one row of data,The UPDATE statement is as follows:
UPDATE DWSCDC.USERINFO2_C
SET USERNAME='王林11'
WHERE USERCODE='11';
7. The result of synchronization to the target table:
<img width="2148" height="718" alt="Image" src="https://github.com/user-attachments/assets/889039e0-16ad-4c24-b604-e025b48422fe" />
--
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] [Oracle-cdc] oracle clob type update could not be synced [seatunnel]
Posted by "natsumetakaki-png (via GitHub)" <gi...@apache.org>.
natsumetakaki-png commented on issue #10512:
URL: https://github.com/apache/seatunnel/issues/10512#issuecomment-3983071322
me too, Is there a way to solve it, quickly?
--
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] [Oracle-cdc] oracle clob type update could not be synced [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #10512:
URL: https://github.com/apache/seatunnel/issues/10512#issuecomment-5149901592
Thanks for the detailed report. The '__debezium_unavailable_value' placeholder is Debezium's known behavior for unchanged LOB columns; DBZ-4321 (Debezium 2.5.0.Final+) addresses reselecting these values. Upgrading the bundled Debezium version is a reasonable path, but it may be a non-trivial change—maintainers should assess compatibility with the current CDC connector base.
As a possible interim workaround, the placeholder value could be handled in the Oracle-CDC deserialization layer (e.g., by re-selecting the unchanged LOB from the source or by preserving the sink's existing value on upsert). Could you confirm whether your sink performs upserts keyed on the primary key, so a partial-update strategy might mitigate the issue?
Could you share the SeaTunnel sink configuration and the Debezium version bundled in your deployment (SeaTunnel 2.3.12) to help verify whether the upstream DBZ-4321 fix would fully resolve this scenario?
<!-- streview-comment:28 -->
--
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