Bug: Intermittent services/sync/tests/unit/test_telemetry.js | test_deletion_request_ping - [test_deletion_request_ping : 265] A promise chain failed to handle a rejection: Error(s) encountered during statement execution: database mirror is locked
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2020-04-29 16:22:51+00:00
Resolved: 2020-05-19 15:00:21+00:00

**Filed by:** aciure [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=300006983&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/bdcrzMQtQHuYt9WRwmVl3A/runs/0/artifacts/public/logs/live_backing.log

---

[task 2020-04-29T15:57:05.388Z] 15:57:05     INFO -  PID 18555 | WARNING: A blocker encountered an error while we were waiting.
[task 2020-04-29T15:57:05.389Z] 15:57:05     INFO -  PID 18555 |           Blocker:  SyncedBookmarksMirror: finalize
[task 2020-04-29T15:57:05.389Z] 15:57:05     INFO -  PID 18555 |           Phase: Places Clients shutdown
[task 2020-04-29T15:57:05.389Z] 15:57:05     INFO -  PID 18555 |           State: {"steps":[{"step":"finalize","at":1588175816401}]}
[task 2020-04-29T15:57:05.390Z] 15:57:05     INFO -  PID 18555 | WARNING: Error: Error(s) encountered during statement execution: database mirror is locked
[task 2020-04-29T15:57:05.390Z] 15:57:05     INFO -  PID 18555 | WARNING: handleCompletion@resource://gre/modules/Sqlite.jsm:887:25
[task 2020-04-29T15:57:05.391Z] 15:57:05     INFO -  PID 18555 | observe@resource://gre/modules/AsyncShutdown.jsm:554:16
[task 2020-04-29T15:57:05.391Z] 15:57:05     INFO -  PID 18555 | _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:655:19
[task 2020-04-29T15:57:05.391Z] 15:57:05     INFO -  PID 18555 | @-e:1:1
[task 2020-04-29T15:57:05.392Z] 15:57:05     INFO -  PID 18555 | JavaScript error: resource://gre/modules/Sqlite.jsm, line 887: Error: Error(s) encountered during statement execution: database mirror is locked
[task 2020-04-29T15:57:05.392Z] 15:57:05     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Error: Error(s) encountered during statement execution: database mirror is locked" {file: "resource://gre/modules/Sqlite.jsm" line: 887}]"
[task 2020-04-29T15:57:05.393Z] 15:57:05     INFO -  PID 18555 | 1588175816414	Sync.Telemetry	TRACE	observed profile-before-change null
[task 2020-04-29T15:57:05.393Z] 15:57:05     INFO -  PID 18555 | 1588175816415	Sync.Telemetry	TRACE	Not sending telemetry ping for self-hosted Sync user
[task 2020-04-29T15:57:05.393Z] 15:57:05     INFO -  PID 18555 | 1588175816425	Sync.Engine.Prefs.Tracker	TRACE	stop().
[task 2020-04-29T15:57:05.394Z] 15:57:05     INFO -  PID 18555 | 1588175816428	Sqlite.Connection	WARN	places.sqlite#0: Connection closed before committing the transaction.
[task 2020-04-29T15:57:05.394Z] 15:57:05     INFO -  PID 18555 | console.error: (new Error("Connection closed before committing the transaction.", "resource://gre/modules/Sqlite.jsm", 681))
[task 2020-04-29T15:57:05.395Z] 15:57:05     INFO -  PID 18555 | 1588175816431	Sync.Engine.Bookmarks	TRACE	Event: weave:engine:reset-client:error
[task 2020-04-29T15:57:05.395Z] 15:57:05     INFO -  PID 18555 | 1588175816431	Sync.Service	DEBUG	Exception calling doResetClient: Error: Connection closed before committing the transaction.(resource://gre/modules/Sqlite.jsm:681:19) JS Stack trace: executeTransaction/promise</transactionPromise<@Sqlite.jsm:681:19
[task 2020-04-29T15:57:05.395Z] 15:57:05     INFO -  PID 18555 | async*executeTransaction/promise<@Sqlite.jsm:700:9
[task 2020-04-29T15:57:05.396Z] 15:57:05     INFO -  PID 18555 | _execute_test@head.js:654:19
[task 2020-04-29T15:57:05.396Z] 15:57:05     INFO -  PID 18555 | @-e:1:1
[task 2020-04-29T15:57:05.397Z] 15:57:05     INFO -  PID 18555 | 1588175816432	Sync.CollectionKeyManager	INFO	Clearing collection keys...
[task 2020-04-29T15:57:05.397Z] 15:57:05     INFO -  PID 18555 | 1588175816434	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.nextSync
[task 2020-04-29T15:57:05.397Z] 15:57:05     INFO -  PID 18555 | 1588175816434	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.lastPing
[task 2020-04-29T15:57:05.398Z] 15:57:05     INFO -  PID 18555 | 1588175816434	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.prefs.lastSync
[task 2020-04-29T15:57:05.398Z] 15:57:05     INFO -  PID 18555 | 1588175816435	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.engineStatusChanged.bogus
[task 2020-04-29T15:57:05.399Z] 15:57:05     INFO -  PID 18555 | 1588175816435	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.client.syncID
[task 2020-04-29T15:57:05.399Z] 15:57:05     INFO -  PID 18555 | 1588175816435	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.forms.lastSync
[task 2020-04-29T15:57:05.400Z] 15:57:05     INFO -  PID 18555 | 1588175816435	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.history.lastSync
[task 2020-04-29T15:57:05.400Z] 15:57:05     INFO -  PID 18555 | 1588175816435	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.clients.lastSync
[task 2020-04-29T15:57:05.401Z] 15:57:05     INFO -  PID 18555 | 1588175816435	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.client.GUID
[task 2020-04-29T15:57:05.401Z] 15:57:05     INFO -  PID 18555 | 1588175816436	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.username
[task 2020-04-29T15:57:05.402Z] 15:57:05     INFO -  PID 18555 | 1588175816436	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.log.logger.engine
[task 2020-04-29T15:57:05.402Z] 15:57:05     INFO -  PID 18555 | 1588175816436	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.log.logger
[task 2020-04-29T15:57:05.402Z] 15:57:05     INFO -  PID 18555 | 1588175816436	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.tabs.lastSync
[task 2020-04-29T15:57:05.403Z] 15:57:05     INFO -  PID 18555 | 1588175816436	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.passwords.lastSync
[task 2020-04-29T15:57:05.403Z] 15:57:05     INFO -  PID 18555 | 1588175816436	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.bookmarks.lastSync
[task 2020-04-29T15:57:05.404Z] 15:57:05     INFO -  PID 18555 | 1588175816437	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: services.sync.lastversion
[task 2020-04-29T15:57:05.404Z] 15:57:05     INFO -  PID 18555 | 1588175816438	Sync.LogManager	DEBUG	Flushing file log
[task 2020-04-29T15:57:05.405Z] 15:57:05     INFO -  PID 18555 | 1588175816439	Sqlite.Connection	INFO	places.sqlite#0: Closed
[task 2020-04-29T15:57:05.405Z] 15:57:05     INFO -  PID 18555 | 1588175816441	Sqlite.Connection	INFO	places.sqlite#1: Closed
[task 2020-04-29T15:57:05.406Z] 15:57:05     INFO -  PID 18555 | 1588175816442	Sqlite.Connection	INFO	formhistory.sqlite#0: Closed
[task 2020-04-29T15:57:05.406Z] 15:57:05     INFO -  PID 18555 | 1588175816493	Toolkit.Telemetry	TRACE	TelemetryEnvironment::observe - aTopic: nsPref:changed, aData: browser.cache.disk.amount_written
[task 2020-04-29T15:57:05.407Z] 15:57:05  WARNING -  TEST-UNEXPECTED-FAIL | services/sync/tests/unit/test_telemetry.js | test_deletion_request_ping - [test_deletion_request_ping : 265] A promise chain failed to handle a rejection: Error(s) encountered during statement execution: database mirror is locked - stack: handleCompletion@resource://gre/modules/Sqlite.jsm:887:25
[task 2020-04-29T15:57:05.407Z] 15:57:05     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:554:16
[task 2020-04-29T15:57:05.408Z] 15:57:05     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:655:19
[task 2020-04-29T15:57:05.408Z] 15:57:05     INFO -  @-e:1:1
[task 2020-04-29T15:57:05.408Z] 15:57:05     INFO -  Rejection date: Wed Apr 29 2020 15:56:56 GMT+0000 (Coordinated Universal Time) - false == true
[task 2020-04-29T15:57:05.409Z] 15:57:05     INFO -  resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:265
[task 2020-04-29T15:57:05.409Z] 15:57:05     INFO -  /builds/worker/workspace/build/tests/xpcshell/head.js:_execute_test:664
[task 2020-04-29T15:57:05.410Z] 15:57:05     INFO -  -e:null:1
[task 2020-04-29T15:57:05.410Z] 15:57:05     INFO -  exiting test
[task 2020-04-29T15:57:05.410Z] 15:57:05     INFO -  PID 18555 | JavaScript error: /builds/worker/workspace/build/tests/xpcshell/head.js, line 787: NS_ERROR_ABORT:
[task 2020-04-29T15:57:05.411Z] 15:57:05     INFO -  PID 18555 | 1588175816735	Sync.ErrorHandler	ERROR	Failed to delete logs on reset: Error: OS.File has been shut down. Rejecting request to new_DirectoryIterator(resource://gre/modules/osfile/osfile_async_front.jsm:446:15) JS Stack trace: post/<@osfile_async_front.jsm:446:15
[task 2020-04-29T15:57:05.411Z] 15:57:05     INFO -  PID 18555 | observe@AsyncShutdown.jsm:554:16