MOD-7574: Output Current Thread IndexSpec Information On Crash#8051
MOD-7574: Output Current Thread IndexSpec Information On Crash#8051
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8051 +/- ##
==========================================
- Coverage 83.90% 83.58% -0.32%
==========================================
Files 365 364 -1
Lines 55168 55280 +112
Branches 14296 14274 -22
==========================================
- Hits 46287 46208 -79
- Misses 8720 8914 +194
+ Partials 161 158 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…nal safe and obfuscates user data
36f2992 to
815cc34
Compare
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.2
git worktree add -d .worktree/backport-8051-to-8.2 origin/8.2
cd .worktree/backport-8051-to-8.2
git switch --create backport-8051-to-8.2
git cherry-pick -x f1543c75e76614f95e517d6cfd5b299caa49a3be a917efc97b2b869bf09198f2997ba332b21e8f85 9087a329274ebbd481be4b7fd332ec6c60eab12a faa852c71cefbbb4b74dd3add4889c6a6e660359 3bb20364a65e873020c65a8ad51d3d528c4af9c1 92df304f4547e7e53f3c40c334a2246a791a97e8 ff44ae8d6f650f9c6d4d0c605822ff9c4436dfe5 d3af7bb49aca496dd0601a9cef66489d773f6492 33cc4d17150bedb4b91b00adbf119aff5e68efa8 815cc34da89256e100c8476a5a025102456ed298 d5c57f7a89f27c38a0a74cef2c6f9e17a426bb75 701b1229aaaa44887a2460a49f5453b0f80fff56 7ca275b8023b8253683d75e4ae40ca892d8e4001 7c6504e53485962d9e4266a363a7ef9466b792ae f600fceb73c39a69afa64ed646c8f10f09e19b36 7e66d9c4eeb78b3abc1fb76a8d81dd468b6f9de2 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.4
git worktree add -d .worktree/backport-8051-to-8.4 origin/8.4
cd .worktree/backport-8051-to-8.4
git switch --create backport-8051-to-8.4
git cherry-pick -x f1543c75e76614f95e517d6cfd5b299caa49a3be a917efc97b2b869bf09198f2997ba332b21e8f85 9087a329274ebbd481be4b7fd332ec6c60eab12a faa852c71cefbbb4b74dd3add4889c6a6e660359 3bb20364a65e873020c65a8ad51d3d528c4af9c1 92df304f4547e7e53f3c40c334a2246a791a97e8 ff44ae8d6f650f9c6d4d0c605822ff9c4436dfe5 d3af7bb49aca496dd0601a9cef66489d773f6492 33cc4d17150bedb4b91b00adbf119aff5e68efa8 815cc34da89256e100c8476a5a025102456ed298 d5c57f7a89f27c38a0a74cef2c6f9e17a426bb75 701b1229aaaa44887a2460a49f5453b0f80fff56 7ca275b8023b8253683d75e4ae40ca892d8e4001 7c6504e53485962d9e4266a363a7ef9466b792ae f600fceb73c39a69afa64ed646c8f10f09e19b36 7e66d9c4eeb78b3abc1fb76a8d81dd468b6f9de2 |
|
/backport |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.2
git worktree add -d .worktree/backport-8051-to-8.2 origin/8.2
cd .worktree/backport-8051-to-8.2
git switch --create backport-8051-to-8.2
git cherry-pick -x 6ad5523867ea41cef7395e1001b866f4a549041f |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.4
git worktree add -d .worktree/backport-8051-to-8.4 origin/8.4
cd .worktree/backport-8051-to-8.4
git switch --create backport-8051-to-8.4
git cherry-pick -x 6ad5523867ea41cef7395e1001b866f4a549041f |
|
/backport |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.2
git worktree add -d .worktree/backport-8051-to-8.2 origin/8.2
cd .worktree/backport-8051-to-8.2
git switch --create backport-8051-to-8.2
git cherry-pick -x 6ad5523867ea41cef7395e1001b866f4a549041f |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin 8.4
git worktree add -d .worktree/backport-8051-to-8.4 origin/8.4
cd .worktree/backport-8051-to-8.4
git switch --create backport-8051-to-8.4
git cherry-pick -x 6ad5523867ea41cef7395e1001b866f4a549041f |
* initial commit * remove redundant index name since it will be added in the info function * fix compilation * fix code review comment + change function name * add how long the thread was running on an index * fixing minor bug in syn dump command * add init call, add time to test * use existing IndexSpec_AddToInfo, modify it a bit to ensure it is signal safe and obfuscates user data * update test * fix cursor stats for info function * fix compilation and comments * fix test + update comment * fix code review comments * code review fixes * fix tests * can't use IndexesScanner_IndexedPercent because we don't have redis module ctx (cherry picked from commit 6ad5523)
|
Successfully created backport PR for |
* initial commit * remove redundant index name since it will be added in the info function * fix compilation * fix code review comment + change function name * add how long the thread was running on an index * fixing minor bug in syn dump command * add init call, add time to test * use existing IndexSpec_AddToInfo, modify it a bit to ensure it is signal safe and obfuscates user data * update test * fix cursor stats for info function * fix compilation and comments * fix test + update comment * fix code review comments * code review fixes * fix tests * can't use IndexesScanner_IndexedPercent because we don't have redis module ctx
* initial commit * remove redundant index name since it will be added in the info function * fix compilation * fix code review comment + change function name * add how long the thread was running on an index * fixing minor bug in syn dump command * add init call, add time to test * use existing IndexSpec_AddToInfo, modify it a bit to ensure it is signal safe and obfuscates user data * update test * fix cursor stats for info function * fix compilation and comments * fix test + update comment * fix code review comments * code review fixes * fix tests * can't use IndexesScanner_IndexedPercent because we don't have redis module ctx
Right now we only output the index name which is fine but it would be good to have index spec specific statistics for more helpful debugging of issues in the future.
Note
Adds resilient crash reporting for the current thread and refactors INFO emitters to be safe in signal/lock-sensitive contexts.
current_threadsection withrun_time_nsand FT.INFO-like index details viaIndexSpec_AddToInfo(ctx, spec, obfuscate, skip_unsafe_ops); skips unsafe ops and supports obfuscation (newObfuscate_Prefix) and field/path obfuscationCursorList_TryLockand returningcursor_stats{status=locked}if locks can’t be acquiredFTINFO_FOR_INFO_MODULESguards); wireGCContext_RenderStatsForInfoandForkGCstatsForInfoCbskip_unsafe_ops; switch indexing failures metric toindexError.error_countSpecInfo.runningTime), initialize onCurrentThread_SetIndexSpec, and print in crash reportmodule.cto set current thread spec only when relevant; small iterator API change in stopwordsWritten by Cursor Bugbot for commit 7e66d9c. This will update automatically on new commits. Configure here.