You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Among these, three fields are primary, while the rest are for testing purposes:
source_timestamp: MongoDB data write time
flink_write_time: Time after processing by flink-doris-connector
doris_current_time: Doris data ingestion time, which is supposed to be automatically captured upon data entry.
I used the following Java code to generate and automatically insert data into MongoDB:
However, after all my data was synced to Doris, I noticed that for many records, doris_current_time was earlier than source_timestamp, with the discrepancy approaching Flink’s checkpoint_interval in seconds.
I can assure that the time difference among my MongoDB, Flink, and Doris servers does not exceed 1 second. Upon reviewing MongoDB’s oplog, it appears the issue does not stem from MongoDB, and flink_write_time values seem normal, indicating typical latency. Therefore, I suspect the issue lies within Doris.
Could this be a bug or a specific mechanism of Doris? Please advise.
What You Expected?
I hope to make this time more reasonable, at least later than my source_timestamp, or I want to know why this happens, at least to rule out that it’s a problem with Doris.
Search before asking
Version
doris-2.1.8
flink-1.17.2
mongoDB-4.4.18
What's Wrong?
I am using Flink to real-time sync data from MongoDB to Doris. For a sync latency test, I created a new Doris table with the following DDL:
Among these, three fields are primary, while the rest are for testing purposes:
I used the following Java code to generate and automatically insert data into MongoDB:
However, after all my data was synced to Doris, I noticed that for many records, doris_current_time was earlier than source_timestamp, with the discrepancy approaching Flink’s checkpoint_interval in seconds.
I can assure that the time difference among my MongoDB, Flink, and Doris servers does not exceed 1 second. Upon reviewing MongoDB’s oplog, it appears the issue does not stem from MongoDB, and flink_write_time values seem normal, indicating typical latency. Therefore, I suspect the issue lies within Doris.
Could this be a bug or a specific mechanism of Doris? Please advise.
What You Expected?
I hope to make this time more reasonable, at least later than my source_timestamp, or I want to know why this happens, at least to rule out that it’s a problem with Doris.
How to Reproduce?
Here is the Flink sync command I used:
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: