Cleanup profiles from old and useless places.sqlite.corrupt files
Categories
(Toolkit :: Places, defect, P3)
Tracking
()
People
(Reporter: mak, Assigned: gaurijove, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(3 files, 6 obsolete files)
| Reporter | ||
Updated•14 years ago
|
| Reporter | ||
Updated•14 years ago
|
| Reporter | ||
Updated•13 years ago
|
Comment 1•12 years ago
|
||
| Reporter | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Updated•12 years ago
|
Comment 4•11 years ago
|
||
| Reporter | ||
Comment 5•11 years ago
|
||
| Reporter | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
| Reporter | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Updated•11 years ago
|
| Reporter | ||
Comment 10•11 years ago
|
||
| Reporter | ||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
| Reporter | ||
Updated•11 years ago
|
| Reporter | ||
Comment 15•11 years ago
|
||
| Reporter | ||
Comment 16•11 years ago
|
||
Updated•11 years ago
|
Comment 17•11 years ago
|
||
Comment 18•11 years ago
|
||
Comment 20•11 years ago
|
||
| Reporter | ||
Comment 22•11 years ago
|
||
Comment 24•10 years ago
|
||
Comment 25•10 years ago
|
||
| Reporter | ||
Comment 26•10 years ago
|
||
| Reporter | ||
Updated•10 years ago
|
Comment 27•10 years ago
|
||
Comment 28•10 years ago
|
||
| Reporter | ||
Updated•10 years ago
|
| Reporter | ||
Comment 29•10 years ago
|
||
| Reporter | ||
Updated•10 years ago
|
| Reporter | ||
Updated•10 years ago
|
| Reporter | ||
Comment 30•8 years ago
|
||
| Reporter | ||
Comment 31•8 years ago
|
||
Updated•5 years ago
|
Comment 33•5 years ago
|
||
(In reply to Jayati Shrivastava from comment #32)
Hi, may I work on this?
Yes - please be sure to read all the comments above to get a good understanding of what needs to be done, and feel free to ask any specific questions you might have.
Comment 34•5 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #30)
This needs an unbitrot, moving to async/await and fixing my review comments.
I don't think Donato is still looking into this
Hey,
May I work on this?
Comment 35•5 years ago
|
||
Hi! Jayati is already working on this, so let's give her time to put up a patch.
Comment 36•5 years ago
|
||
Sure
| Assignee | ||
Comment 37•5 years ago
|
||
Updated•5 years ago
|
Comment 38•5 years ago
|
||
Comment 39•5 years ago
|
||
Backed out for failures on test_PlacesDBUtils_removeOldCorruptDBs.js
backout: https://hg.mozilla.org/integration/autoland/rev/e4ee3de5124eb00ec2e5d11606c50c9fa6fe81b9
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=297813267&repo=autoland&lineNumber=2901
[task 2020-04-15T21:26:07.659Z] 21:26:07 INFO - TEST-START | toolkit/components/places/tests/unit/test_PlacesDBUtils_removeOldCorruptDBs.js
[task 2020-04-15T21:26:08.379Z] 21:26:08 WARNING - TEST-UNEXPECTED-FAIL | toolkit/components/places/tests/unit/test_PlacesDBUtils_removeOldCorruptDBs.js | xpcshell return code: 0
[task 2020-04-15T21:26:08.379Z] 21:26:08 INFO - TEST-INFO took 724ms
[task 2020-04-15T21:26:08.380Z] 21:26:08 INFO - >>>>>>>
[task 2020-04-15T21:26:08.381Z] 21:26:08 INFO - PID 16076 | [16076, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp, line 2895
[task 2020-04-15T21:26:08.381Z] 21:26:08 INFO - (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2020-04-15T21:26:08.381Z] 21:26:08 INFO - (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2020-04-15T21:26:08.381Z] 21:26:08 INFO - (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2020-04-15T21:26:08.382Z] 21:26:08 INFO - running event loop
[task 2020-04-15T21:26:08.382Z] 21:26:08 INFO - toolkit/components/places/tests/unit/test_PlacesDBUtils_removeOldCorruptDBs.js | Starting setup
[task 2020-04-15T21:26:08.382Z] 21:26:08 INFO - (xpcshell/head.js) | test setup pending (2)
[task 2020-04-15T21:26:08.382Z] 21:26:08 INFO - PID 16076 | [16076, Main Thread] WARNING: Workers don't support the 'mem.mem.' preference!: file /builds/worker/checkouts/gecko/dom/workers/RuntimeService.cpp, line 538
[task 2020-04-15T21:26:08.383Z] 21:26:08 INFO - (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2020-04-15T21:26:08.383Z] 21:26:08 INFO - (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2020-04-15T21:26:08.383Z] 21:26:08 INFO - (xpcshell/head.js) | test setup finished (2)
[task 2020-04-15T21:26:08.384Z] 21:26:08 INFO - toolkit/components/places/tests/unit/test_PlacesDBUtils_removeOldCorruptDBs.js | Starting removefiles
| Assignee | ||
Comment 40•5 years ago
|
||
It worked fine locally...How do I fix this?
Comment 41•5 years ago
|
||
I've no idea, but let's see if we can figure it out! That is a profoundly unhelpful error message:
[task 2020-04-15T21:26:08.384Z] 21:26:08 INFO - toolkit/components/places/tests/unit/test_PlacesDBUtils_removeOldCorruptDBs.js | Starting removefiles
[task 2020-04-15T21:26:08.384Z] 21:26:08 INFO - (xpcshell/head.js) | test removefiles pending (2)
[task 2020-04-15T21:26:08.384Z] 21:26:08 INFO - (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2020-04-15T21:26:08.384Z] 21:26:08 INFO - Unexpected exception Error:
Buuut...it fails right away (and only on Linux—it passes locally for me too, as well as the xpcshell tests on Windows and macOS), without printing any file created: messages, so let's look closer at that OS.File.writeAtomic call.
await OS.File.writeAtomic(filePath, "test-file-delete-me", {
tmpPath: fileName + ".tmp",
});
I wonder if the problem is that we aren't specifying a full path for tmpPath. Here's where we pass tmpPath to the native system call, and it doesn't look like we do any kind of resolution on it...so it'll get created in the current directory, and that might fail if we can't write to it.
Can you try changing it to tmpPath: filePath + ".tmp", so that we use the full path, and pushing to Try? If it still fails, we'll have to figure out what else could be causing this, but that's the first thing that stood out to me.
| Assignee | ||
Comment 42•5 years ago
|
||
Hi Lina. I changed it to filePath. It works. Thanks a lot!
https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=297925996&revision=7996b844c23667a8a2f89061867037459ce916f6
Comment 43•5 years ago
|
||
Comment 44•5 years ago
|
||
| bugherder | ||
Comment 46•5 years ago
|
||
should this go in release notes?
[Why is this notable]:
- (very?) unlikely data loss. Wording would have to be careful.
- space saving
- someone would need to confirm this - but there's a privacy improvement as there might have still been recoverable data in the corrupt files that would be missed by clear feature(s).
| Reporter | ||
Comment 47•5 years ago
|
||
I don't think this is worth a relnote, very few users are likely to hit this problem and it would be asymptomatic
Updated•5 years ago
|
Description
•