Is this related to T8936? I.e. similar cause?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Sep 10 2015
I doubt it is Percona issue. I've just tried perform same queries on my laptop with MySQL 5.6 and small data set. Still getting the same results as above.
The fact that it's not using the key at all explains why the GC was slow for you and why removing the ORDER BY improved performance, at least, but it seems like it should be able to use the key to execute this query efficiently, and appears to do so in MySQL (we don't have as much data as you do, but I don't recall the GC having any issues when we pushed this change here, and other large installs haven't reported issues but I'd expect them to if the GC was not able to use the key).
I'm tentatively inclined to think that this is a bug in Percona, since:
Getting the same as above still.
Yuck. Can you come up with any query where it uses the key? What if we do something really dumb like this to try to trick it?
Same
mysql> EXPLAIN SELECT * FROM feed_storynotification WHERE chronologicalKey < 6175228766710272490 ORDER BY chronologicalKey DESC LIMIT 100; +----+-------------+------------------------+-------+---------------+------------+---------+------+---------+------------------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+------------------------+-------+---------------+------------+---------+------+---------+------------------------------------------+ | 1 | SIMPLE | feed_storynotification | index | NULL | userPHID_2 | 133 | NULL | 2941950 | Using where; Using index; Using filesort | +----+-------------+------------------------+-------+---------------+------------+---------+------+---------+------------------------------------------+ 1 row in set (0.00 sec)
Out of curiosity, what's the query plan for this (DESC instead of ASC)?
I'm getting different results:
Hmm, that's surprising. At least on our dataset, I get a worse-looking query plan without the ORDER BY:
Yes, I've solved this way. chronologicalKey already existed on the table but we had over 13 million records there. And performing DELETE query took quite long. Apparently it locked inserts to feed_storynotification table what caused deadlocks.
We do not currently support git notes, and I had never heard of it before this task.
Yes, this looks consistent with the GC and publisher deadlocking.
@ccope Try running this over your branch:
git rebase -i --exec 'arc diff -C HEAD HEAD^' origin/master
That just looks like a bug that's only tangentially related, I think Audit and Countdown are both trying to receive mail at C... addresses.
Create a dashboard panel with the query, then embed it with {W...}.
Alternate style:
A daemon is running as user //observed_username//, while the Phabricator config specifies phd.user to be //expected_username//.
The 3rd paragraph is outright confusing:
phd Daemons will try to use `root` to start as the configured user. Make sure that the user who starts `phd` has the correct sudo permissions to start `root` daemons as `phd`
I tried manually doing the arc diff on each commit in a branch, and discovered I couldn't actually view a single commit in isolation. Comparing two adjacent diffs in the revision still seemed to show all of the file moves which had been done in the other commits.
In waiting for an official fix from Phabricator teams, if someone knows how to quickly fix this issue, it should be great to share it.
My previous Phabricator version was early 2015-May. I see, a bit later FeedStoryNotificationGarbageCollector was introduced (D13233).
This just bit us again, via a different repro.
Thanks for the feedback guys.
Thanks a bunch for solving this so quickly :)
Looking T9080: Service-based repositories in Phacility cluster fail too abruptly if cloning fails this isn't fixed for me. Until the UI allows you to configure the repository, I don't think this should be closed.
Please use Ponder or Conpherence (Z1336) for asking general questions about Phabricator. We prefer to keep Maniphest for tasks (bugs and features).
Renaming to arc lint + arc unit sounds good and clearer to me.
I don't plan to pursue this. We'll offer JS access to the OAuth API instead (see T7303).
Maybe renaming "Arcanist Client Results to "arc lint + arc unit" would be clear enough? It sounds like this workflow is generally fine, users are just not making the connection between "Arcanist Client Results" and the "arc" client?
I don't see an especially clear way forward here:
This is not blocked, although it's a moderate amount of work (4-6 hours?) and not adjacent to other work.
This is 1-2 hours of work and can be slipped in somewhere if approved.
We can look at this as part of the next Phriction iteration, although other changes likely impact the eventual design here.
I don't anticipate implementing these in the upstream. Remarkup is extensible enough that these could be implemented as extensions.
See above.
@jhurwitz do you remember a diff that we saw this on?
Did D12730 resolve this?
This exist and has at least been minimally useful in making it easier to improve package definitions, if nothing else.
At HEAD, I get this:
We've never seen other reports of this, but it's <1 hour to fix. We can weave it in somewhere if approved.
Some discussion in T9367.
This is likely the same as T5030, but I haven't observed it myself and haven't spent the time to try to reproduce it.
This is a fairly huge amount of complexity for a very niche use case, which makes me hesitant to pursue it in the upstream. I expect the number of installs which would use this feature is on the order of 1, and that it essentially amounts to custom development.
Sep 9 2015
We don't understand this use case, so we aren't sure how to proceed here.
We're aware of requests in this vein but unlikely to implement the specific suggestions here, for a variety of reasons. The product pathway forward here is generally a murky one. We will likely need to resolve T1460 (itself, murky) before having more clarity here. Resolving it may also introduce satisfactory threading.
This is technically straightforward but probably needs some design work. I'd guess it's on the order of 2-4 hours depending how messy application/customfield stuff ends up, although that may happen in a technical block and a separate design block. This can be slipped in if approved.
This is easy to change but I'm not really convinced it's better, even though it is inconsistent.
I plan to try to collect the above into documentation to try to better explain this, but I don't think that has any specific impact on anyone. I don't plan to make any behavioral changes. I'm open to suggestions here, but we can't write a bin/time rewind and can not fully redact data which has been committed to the system and published to email and other external channels.
Presuming this is a problem with extensions since there's a warning in the upstream.
This should probably wait for T3980 and be reevaluated after that.
In particular, I think we're going to hit cases like this:
Well, there's an unrelated bug.
(Just creating an example via email for my next reply.)
I do this routinely without errors and am not sure how to reproduce it.
This is straightforward and probably <1 hour of work. It can be squeezed in if approved for prioritization.