We have setup a cluster with pinot1.2.0 version. C...
# troubleshooting
c
We have setup a cluster with pinot1.2.0 version. Compaction task of upsert table without retention setting is failing. 1. WARN log 'CRC mismatch for segment : .... , skipping it for compaction ... ' I am checking PRs 14406, 14506, 14668 regarding 'CRC mismatch' log. https://github.com/apache/pinot/pull/14406 https://github.com/apache/pinot/pull/14668 https://github.com/apache/pinot/pull/14506 2. ERROR log 'Failed to schdule task type UpsertCompactionTask on minion instance minion_untagged with task configs' In Pinot 1.0 version, CompactionTask was performed even without a Minion Instance, but is it mandatory to have a Minion instance in Pinot 1.2 version? https://github.com/apache/pinot/blob/00f0721662c2e9a3c4a1702bf13dbd937488295a/pino[…]apache/pinot/controller/helix/core/minion/PinotTaskManager.java I am asking here because it is not easy to figure out how severe this issue is on the cluster. Does CRC mismatch only cause compaction failure? Or does it cause more problems? For example, if a segment is lost or the Pino server is restarted, will it prevent the segment from being downloaded from DeepStore or cause another serious problem? Can you tell me what problems I might encounter if I continue to use pinot 1.2.0 version without PR 14406 reflected? Should I roll back the cluster's pinot version to less than 1.2? cc. @Pratik Tibrewal @sunny @Jackie
p
Do you have text indexes setup on your table because that's what the major reason for this mismatch is? In terms of severity, it will just lead to downloading deepstore copies again during server restarts so might slow down your restarts. The 3 PRs you shared seems to tackle the issue at large. For 2. can you share more context is it that you don't have minion-nodes in your cluster and you want UpsertCompaction to run? I doubt it would have been running in previous versions too in this arrangement.
c
In my tests, after adding a minion instance, I no longer get error 2. However, I still get the 'CRC mismatch' warning. There is no text index on the table. In my cluster, the delay in server restarts is not a big deal. Won't the CRC mismatch cause other serious problems? @Pratik Tibrewal
When creating a table, Kafka consumes accumulated data. It is found in many of the segments created during this process.
p
However, I still get the 'CRC mismatch' warning. There is no text index on the table.
In my cluster, the delay in server restarts is not a big deal.
Won't the CRC mismatch cause other serious problems?
Okay strange! In our case, we usually saw this issue for tables with text-indexes setup due to Lucene's indefinite nature of indexing. I think this might be one more PR that might fix this issue -- https://github.com/apache/pinot/pull/14391 cc @Xiaobing did you observe CRC mismatch between replicas before your fix?
c
When non-winner builds in-memory segment, crc mismatch occurs during compaction. Setting completionMode to DOWNLOAD prevents this from happening.
p
Hmm we might wanna dig deeper to why non-winner has different CRC than the winner one. Till now, I only knew text index to be one reason for such divergence.
x
did the table happen to use functions like now() as ingestion transforms? if so, servers might generate different values for same columns among replicas
c
Thank you for your help. @Xiaobing This is it! We used now() in the transformFunction setting of the table. @Pratik Tibrewal We've made progress in our testing. Here's what we're doing: Set the completionConfig setting of the table to completionMode:DOWNLOAD. https://docs.pinot.apache.org/basics/concepts/components/table RELOAD all segments. Since the consuming segment is not reflected, forceCommit it. Or re-run RELOAD after a while.