Commit 2b8064d
committed
[yugabyte#8390] Fix NPE Handling for indexed_table_id
Summary:
This simple diff handles nullptr cases for indexed_table_id, which stops an observed
crash-on-load issue that occurs when running with a bad index schema and
'master_ignore_deleted_on_load'.
Test Plan:
Manual Testing
1. set_flag TEST_simulate_crash_after_table_marked_deleting 1
2. cqlsh "CREATE TABLE; CREATE INDEX; DROP TABLE"
3. yb-ctl stop & yb-ctl start. (2x)
Reviewers: mbautin, rao, bogdan
Reviewed By: bogdan
Subscribers: ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D116601 parent 4b0cb73 commit 2b8064d
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3809 | 3809 | | |
3810 | 3810 | | |
3811 | 3811 | | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
3812 | 3817 | | |
3813 | 3818 | | |
3814 | 3819 | | |
| |||
3980 | 3985 | | |
3981 | 3986 | | |
3982 | 3987 | | |
3983 | | - | |
| 3988 | + | |
| 3989 | + | |
3984 | 3990 | | |
3985 | 3991 | | |
3986 | 3992 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments