-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DTFile ingested may be deleted by accident #2040
Labels
Comments
This was referenced Jun 1, 2021
Reproduce in a lower level: we may try to add ref page to a deleted page. After TiFlash restart, we can not find related DTFile. Dump the data pages using -- ingest dmf_24581 to seg [1]
PageFile_2_0, type: Formal seq: 41186 PUT pid: 24851 2 0 0 0 0 0000000000000000
-- seg [1] merge delta, epoch 14963, new stable 24583
PageFile_2_0, type: Formal seq: 41187 PUT pid: 24853 2 0 0 0 0 0000000000000000
-- <del>ingest dmf_24581 to seg [134], with ref id 24584</del>
-- seg [1] add ref for non-compacted delta pack
PageFile_2_0, type: Formal seq: 41188 REF 24854 24851
-- seg [1] remove old stable, delta
PageFile_2_0, type: Formal seq: 41189 DEL 24852
PageFile_2_0, type: Formal seq: 41189 DEL 24851
PageFile_2_0, type: Formal seq: 41189 DEL 24850 -- old stable for seg[1], epoch 14962
-- seg [1] merge delta, epoch 14964, new stable 24855
PageFile_2_0, type: Formal seq: 41190 PUT pid: 24855 2 0 0 0 0 0000000000000000
-- seg [1] remove old stable, delta
PageFile_2_0, type: Formal seq: 41191 DEL 24854
PageFile_2_0, type: Formal seq: 41191 DEL 24853 -- old stable for seg[1], epoch 14963
-- seg [134] merge delta, epoch 39, new stable 24843
PageFile_2_0, type: Formal seq: 41192 PUT pid: 24843 2 0 0 0 0 0000000000000000
-- seg [134] add ref for non-compacted delta pack
PageFile_2_0, type: Formal seq: 41193 REF 24857 24838
PageFile_2_0, type: Formal seq: 41193 REF 24858 24845
-- seg [134] remove old stable, delta
PageFile_2_0, type: Formal seq: 41194 DEL 24839
PageFile_2_0, type: Formal seq: 41194 DEL 24840
PageFile_2_0, type: Formal seq: 41194 DEL 24841
PageFile_2_0, type: Formal seq: 41194 DEL 24838
PageFile_2_0, type: Formal seq: 41194 DEL 24845
PageFile_2_0, type: Formal seq: 41194 DEL 24830 -- old stable for seg[134], epoch 38
-- ingest dmf_24581 to seg [134], with ref id 24859 -- BOOM! we will try to add a ref page to a "deleted" page
PageFile_2_0, type: Formal seq: 41195 REF 24859 24851
PageFile_2_0, type: Formal seq: 41196 PUT pid: 24856 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41197 DEL 24855
PageFile_2_0, type: Formal seq: 41198 PUT pid: 24860 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41199 DEL 24856
PageFile_2_0, type: Formal seq: 41200 PUT pid: 24862 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41201 DEL 24860
PageFile_2_0, type: Formal seq: 41202 PUT pid: 24863 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41203 PUT pid: 24864 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41204 DEL 24863
PageFile_2_0, type: Formal seq: 41204 DEL 24862
PageFile_2_0, type: Formal seq: 41205 PUT pid: 24865 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41206 PUT pid: 24866 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41207 DEL 24864
PageFile_2_0, type: Formal seq: 41208 PUT pid: 24867 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41209 DEL 24866
PageFile_2_0, type: Formal seq: 41210 PUT pid: 24868 2 0 0 0 0 0000000000000000
-- seg [134] merge delta, epoch 40, new stable 24861
PageFile_2_0, type: Formal seq: 41211 PUT pid: 24861 2 0 0 0 0 0000000000000000
-- seg [134] add ref for non-compacted delta
PageFile_2_0, type: Formal seq: 41212 REF 24871 24851
PageFile_2_0, type: Formal seq: 41212 REF 24872 24865
-- seg [134] remove compacted stable, delta
PageFile_2_0, type: Formal seq: 41213 DEL 24857
PageFile_2_0, type: Formal seq: 41213 DEL 24858
PageFile_2_0, type: Formal seq: 41213 DEL 24859
PageFile_2_0, type: Formal seq: 41213 DEL 24865
PageFile_2_0, type: Formal seq: 41213 DEL 24843 -- old stable for seg[134], epoch 39
PageFile_2_0, type: Formal seq: 41214 PUT pid: 24870 2 0 0 0 0 0000000000000000
PageFile_2_0, type: Formal seq: 41215 REF 24874 24868
PageFile_2_0, type: Formal seq: 41216 DEL 24868
PageFile_2_0, type: Formal seq: 41216 DEL 24867 |
This was referenced Jun 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found by test on k8s env.
Add shuffle-region by pd-ctl:
scheduler add shuffle-region-scheduler
A bug introduced by #1347, #1439
ingestPacks
could be fail, and may lead to broken ref pagehttps://github.com/pingcap/tics/blob/dce81ce066981f0304fd1ad5512d301a780a2615/dbms/src/Storages/DeltaMerge/DeltaMergeStore.cpp#L630-L683
log files:
test.log.zip
The text was updated successfully, but these errors were encountered: