Yes. To support DR, I have a script that takes the DEEPSTORE SEGMENTs, and below are the steps.
1. Read the deepstore segments
2. Read each docs, modify the column values if required. - Yes we will modify "id" column with offset addition say 10000.
3. Once the rows are created, we will recreate modified segments again.
4. Copy the modified segments to target server where DR Pinot is running. .We use REST API -> ../segments?tableName=
data_record&tableType=OFFLINE to upload the segments to the target PINOT server.
5. REST API shows successful and totaldocs count is also matched.
6. In the target PINOT SQL, select * from
tablename shows empty and reports no rows found.
7. We would like to know what could be the issue and how to debug it?
Note: To ensure that the workflow fine, we removed step #2, #3 and used the segment as it is without modified... As a result, the API is success. But while query the DB, it shows it is empty no records found....
The solution expected here is how to export the segment and upload the segments to target server without any issues or loss of data....