Page MenuHomePhabricator
Paste P1700

Commands from stuck repository import
ActivePublic

Authored by frenchs on Jan 9 2015, 5:23 PM.
Tags
None
Referenced Files
F264724: Commands_from_stuck_repository_import
Jan 9 2015, 5:23 PM
Subscribers
None
(names and emails have been redacted out)
Ok, what's stuck?
$ ./bin/repository importing MYREPO
rMYREPOf628ef8ca552a0c9ca6d1736576b45e7bbc635f5 Herald
Ok, let's reprocess that thing then
$ ./bin/repository reparse rMYREPOf628ef8ca552a0c9ca6d1736576b45e7bbc635f5 --herald --trace
>>> [2] <connect> phabricator_repository
<<< [2] <connect> 1,106 us
>>> [3] <query> SELECT * FROM `repository` WHERE callsign = 'MYREPO'
<<< [3] <query> 383 us
>>> [4] <query> SELECT * FROM `repository_commit` WHERE repositoryID = 5 AND commitIdentifier = 'f628ef8ca552a0c9ca6d1736576b45e7bbc635f5'
<<< [4] <query> 334 us
>>> [5] <query> SELECT * FROM `repository_commit` WHERE `id` = 64098
<<< [5] <query> 234 us
>>> [6] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [6] <query> 235 us
>>> [7] <query> SELECT commit.* FROM `repository_commit` commit WHERE (commit.id IN (64098)) ORDER BY commit.id DESC
<<< [7] <query> 227 us
>>> [8] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [8] <query> 213 us
>>> [9] <query> SELECT * FROM `repository_commitdata` WHERE commitID in (64098)
<<< [9] <query> 212 us
>>> [10] <query> SELECT * FROM `repository_auditrequest` WHERE commitPHID IN ('PHID-CMIT-njbauecpnouwc3rwesnr')
<<< [10] <query> 201 us
>>> [11] <query> SELECT commit.* FROM `repository_commit` commit WHERE (((commit.commitIdentifier LIKE '4edd28f6008c14051421559a00aa61a41972e65e%' AND LENGTH(commit.commitIdentifier) = 40))) ORDER BY commit.id DESC
<<< [11] <query> 306 us
>>> [12] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [12] <query> 217 us
>>> [13] <exec> $ git diff -M -C --no-ext-diff --no-color --src-prefix=a/ --dst-prefix=b/ -U3 'f628ef8ca552a0c9ca6d1736576b45e7bbc635f5^' 'f628ef8ca552a0c9ca6d1736576b45e7bbc635f5' -- '.'
<<< [13] <exec> 18,819 us
>>> [14] <query> SELECT edge.* FROM `edge` edge WHERE (edge.src IN ('PHID-CMIT-njbauecpnouwc3rwesnr')) AND (edge.type IN ('21')) ORDER BY edge.dateCreated DESC, edge.seq DESC
<<< [14] <query> 324 us
>>> [15] <query> SELECT commit.* FROM `repository_commit` commit WHERE (((commit.commitIdentifier LIKE '4edd28f6008c14051421559a00aa61a41972e65e%' AND LENGTH(commit.commitIdentifier) = 40))) ORDER BY commit.id DESC
<<< [15] <query> 353 us
>>> [16] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [16] <query> 223 us
>>> [17] <query> SELECT commit.* FROM `repository_commit` commit WHERE (commit.phid IN ('PHID-CMIT-c7kzeg4za63fwd5ql7vl')) ORDER BY commit.id DESC
<<< [17] <query> 256 us
>>> [18] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [18] <query> 224 us
>>> [19] <query> SELECT commit.* FROM `repository_commit` commit WHERE (((commit.commitIdentifier LIKE '4edd28f6008c14051421559a00aa61a41972e65e%' AND LENGTH(commit.commitIdentifier) = 40))) ORDER BY commit.id DESC
<<< [19] <query> 328 us
>>> [20] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [20] <query> 222 us
>>> [21] <query> SELECT commit.* FROM `repository_commit` commit WHERE (commit.phid IN ('PHID-CMIT-c7kzeg4za63fwd5ql7vl')) ORDER BY commit.id DESC
<<< [21] <query> 228 us
>>> [22] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [22] <query> 218 us
>>> [23] <query> SELECT commit.* FROM `repository_commit` commit WHERE (commit.phid IN ('PHID-CMIT-c7kzeg4za63fwd5ql7vl')) ORDER BY commit.id DESC
<<< [23] <query> 221 us
>>> [24] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [24] <query> 229 us
>>> [25] <query> SELECT commit.* FROM `repository_commit` commit WHERE (((commit.commitIdentifier LIKE '4edd28f6008c14051421559a00aa61a41972e65e%' AND LENGTH(commit.commitIdentifier) = 40))) ORDER BY commit.id DESC
<<< [25] <query> 303 us
>>> [26] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [26] <query> 217 us
>>> [27] <query> SELECT commit.* FROM `repository_commit` commit WHERE (commit.phid IN ('PHID-CMIT-c7kzeg4za63fwd5ql7vl')) ORDER BY commit.id DESC
<<< [27] <query> 231 us
>>> [28] <query> SELECT * FROM `repository` r WHERE (r.id IN (5)) ORDER BY r.id DESC
<<< [28] <query> 234 us
>>> [29] <query> SELECT edge.* FROM `edge` edge WHERE (edge.src IN ('PHID-CMIT-njbauecpnouwc3rwesnr')) AND (edge.type IN ('55')) ORDER BY edge.dateCreated DESC, edge.seq DESC
<<< [29] <query> 224 us
>>> [30] <query> SELECT edge.* FROM `edge` edge WHERE (edge.src IN ('PHID-CMIT-njbauecpnouwc3rwesnr')) AND (edge.type IN ('52')) ORDER BY edge.dateCreated DESC, edge.seq DESC
<<< [30] <query> 234 us
[2015-01-09 08:58:27] EXCEPTION: (PhabricatorApplicationTransactionNoEffectException) Transactions have no effect:
- Edges already exist; transaction has no effect. at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1635]
#0 PhabricatorApplicationTransactionEditor::filterTransactions(PhabricatorRepositoryCommit, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:649]
#1 PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorRepositoryCommit, array) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitHeraldWorker.php:91]
#2 PhabricatorRepositoryCommitHeraldWorker::parseCommit(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:44]
#3 PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:91]
#4 PhabricatorWorker::executeTask() called at [<phabricator>/src/applications/repository/management/PhabricatorRepositoryManagementReparseWorkflow.php:297]
#5 PhabricatorRepositoryManagementReparseWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:396]
#6 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:292]
#7 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/repository/manage_repositories.php:22]
The offending commit:
$ git show f628ef8ca552a0c9ca6d1736576b45e7bbc635f5 --format=raw
commit f628ef8ca552a0c9ca6d1736576b45e7bbc635f5
tree c1f99a7a3c34f452fac3d25cecf05b842de60282
parent 4edd28f6008c14051421559a00aa61a41972e65e
author Some User <example@example.org> 1385425306 -0800
committer Some User <example@example.org> 1385425306 -0800
Revert "$THE_COMMIT_MESSAGE"
This reverts commit 4edd28f6008c14051421559a00aa61a41972e65e.
The reverted commit
$ git show 4edd28f6008c14051421559a00aa61a41972e65e --format=raw
commit 4edd28f6008c14051421559a00aa61a41972e65e
tree 182ea14203caf1147ae604d3d229b56241467815
parent b5f5d51e0bb3ecad58b298b3e19caa08b0f5a998
author Some User <example@example.org> 1385424584 -0800
committer Some User <example@example.org> 1385424586 -0800
$THE_COMMIT_MESSAGE

Event Timeline

frenchs changed the title of this paste from untitled to Commands from stuck repository import.
frenchs updated the paste's language from autodetect to text.