Page MenuHomePhabricator

Construction of "default" file resources may lose a race with itself
Closed, ResolvedPublic

Description

This may not be specific to dashboards, but iv seen it happen twice in dashboards.

(I am at HEAD as of right now)

When viewing the dashboard I get the following exception:

AphrontDuplicateKeyQueryException: #1062: Duplicate entry 'PHID-VOID-00000000000000000000-builtin:project.png' for key 'originalPHID'

I have seen it under a recent tasks query, and an active diffusion repo query.

Event Timeline

Mnkras created this task.May 7 2015, 11:16 PM
Mnkras raised the priority of this task from to Needs Triage.
Mnkras updated the task description. (Show Details)
Mnkras added a project: Dashboards.
Mnkras added a subscriber: Mnkras.
chad added a subscriber: chad.May 7 2015, 11:35 PM

I've seen it only once, and it immediately went away.

Yea with a refresh it goes away.

Im curious if its something cache related, I think I normally notice this after restarting php5-fpm... not sure

ftdysa added a subscriber: ftdysa.May 8 2015, 1:44 PM

I've noticed it a few times as well. Always goes away after a refresh and may or may not happen after I've restarted php5-fpm.

I think this is a race condition on building "default" file resources.

epriestley renamed this task from Duplicate Key in Dashboards to Construction of "default" file resources may lose a race with itself.May 25 2015, 11:30 AM
epriestley triaged this task as Normal priority.
epriestley edited projects, added Files; removed Dashboards.

Basically, this is pretty much the same as D12965, except the processes are racing through PhabricatorFile::loadBuiltins().

epriestley moved this task from Backlog to vNext on the Files board.Nov 24 2015, 5:19 PM