I have setup my `"task": {` `"taskTypeConfi...
# troubleshooting
a
I have setup my
"task": {
"taskTypeConfigsMap": {
"UpsertCompactionTask": {
"schedule": "0 */5 * ? * *",
"bufferTimePeriod": "1h",
"invalidRecordsThresholdPercent": "30",
"invalidRecordsThresholdCount": "100000",
"tableMaxNumTasks": "100",
"validDocIdsType": "SNAPSHOT"
}
}
},
now this will trigger the cron job eevry 5 mins , first question . How can I check the cron job is triggered or not ? and secondly if I have updated the table config after creation of my segments will this still take place effectively . or should I just rebuild the segments?
c
You can check for the task schedule in the minion task manager UI/Zookeeper browser and UpsertCompactionTask for that table. For every 5 min a taskID would be created and you can check the progress as well. https://docs.pinot.apache.org/basics/data-import/segment-compaction-on-upserts#example IMO you can reload the segments on safe side, before the compaction takes place and then start the operation once you load the segments.
a
Hi @Chaitanya Deepthi Chadalavada so I can see this
but my compaction task got triggered because total num of docs are reduced to a decent amount. but why am i not seeing anything here ?
hi @Fasih Khatib any inputs on the same ?
x
The compaction will happen after the segments are flushed
Please check the ingestion config for flush threshold
a
hi @Xiang Fu, having a really hard time to figure out compation . I read the document as well but doesnt seem to get confidence on the same.
@Fasih Khatib @Mayank any inputs for the same ?
x
You can validate that by checking the segment metadata for the status is completed
a
curl -X GET "http://localhost:9000/segments/game_user_stream_REALTIME/metadata"
I am checking segemnts metadata using this
but its showing old values
How can I reference is ?
also please have a look at this
"task": {
"taskTypeConfigsMap": {
"UpsertCompactionTask": {
"schedule": "0 */5 * ? * *",
"bufferTimePeriod": "5m",
"invalidRecordsThresholdPercent": "1",
"invalidRecordsThresholdCount": "1",
"tableMaxNumTasks": "1",
"validDocIdsType": "SNAPSHOT"
}
}
}
totalDocs = 19377173 numDocsScanned = 18095607 totalDocs-numDocsScanned = 12,81,566 so around 1 million records are duplicate and i am setting "invalidRecordsThresholdPercent": "1", "invalidRecordsThresholdCount": "1", so we could reach minimum threshold . and buffer and scehdule time 5 minutes but still nothing has happened (edited)
x
can you make
bufferTimePeriod
to
0d
a
Which property is that ???
x
"task": {
"taskTypeConfigsMap": {
"UpsertCompactionTask": {
"schedule": "0 */5 * ? * *",
"bufferTimePeriod": "0d",
"invalidRecordsThresholdPercent": "1",
"invalidRecordsThresholdCount": "1",
"tableMaxNumTasks": "1",
"validDocIdsType": "SNAPSHOT"
}
}
}
then go to pinot ui to schedule this
UpsertCompactionTask
to run with adhoc schedule
also tail pinot controller logs to see is there is any error
a
I did it but it doesn’t take it Someone told me I need to spin up minions as well right ? Bc this is a minion task