Hi, what is the correct way to retry failed segmen...
# troubleshooting
s
Hi, what is the correct way to retry failed segments for batch offline ingestion to avoid duplicate segments. I use SegmentGenerationAndPushTask to load multiple json files from azure to pinot. Each file is creating one segment. Some segments failed because of disk space issue. I upgraded the disk space and tried to rerun the task with same configs but with a different taskName. After the job completed, I can see the total segments in the pinot table are now doubled.
@Mayank
m
As long as segment name is same data won’t be duplicated
s
how to make sure segment name's are same. I see the segment name is different when it retried. my config:
Copy code
"append.uuid.to.segment.name": "true",
"segmentNameGenerator.type": "fixed",
it is generating files like
Copy code
tableName_OFFLINE_b3f227ba-2016-4549-8f96-b3dcb7310305_9819
9819 is the sequence Id. I also have the primary keys set in the schema but still i see the duplicates.
m
Change this:
"segmentNameGenerator.type": "fixed",
to use
simple
or remove it (simple is default)
s
thanks will try. also do i need to specify these settings to dedup the records.
Copy code
dedupConfig {
   "dedupEnabled": true
 },
routing {
  "instanceSelectorType:"strictReplicaGroup"
}
m
That is for deduping input (duplicates in input to be removed). Is that what you want?
s
no, i dont have duplicates in the source file.
m
Then you don't need that
s
thanks