Page MenuHomePhabricator

Fix a bad DiffusionCommandEngine parameter from HTTPEngine conversion
ClosedPublic

Authored by epriestley on Aug 11 2016, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 1:26 AM
Unknown Object (File)
Tue, Apr 16, 5:38 PM
Unknown Object (File)
Fri, Apr 12, 3:21 PM
Unknown Object (File)
Sun, Mar 31, 10:31 AM
Unknown Object (File)
Feb 6 2024, 10:36 AM
Unknown Object (File)
Jan 31 2024, 9:23 PM
Unknown Object (File)
Jan 26 2024, 3:18 PM
Unknown Object (File)
Jan 5 2024, 9:28 PM
Subscribers
None

Details

Summary

I converted this call incorrectly in D16092. We should pass the PhutilURI object, not the string version of it.

Specifically, this resulted in hitting an error like this if a replica needed synchronization:

[2016-08-11 21:22:37] EXCEPTION: (InvalidArgumentException) Argument 1 passed to DiffusionCommandEngine::setURI() must be an instance of PhutilURI, string given, called in...
#0 PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<phabricator>/src/applications/diffusion/protocol/DiffusionCommandEngine.php:52]
#1 DiffusionCommandEngine::setURI(string) called at [<phabricator>/src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php:601]
...
Test Plan

Clusterized an observed repository, demoted a node, ran bin/repository update Rxxx to update, saw no typehint fatal.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix a bad DiffusionCommandEngine parameter from HTTPEngine conversion.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Aug 11 2016, 11:38 PM
This revision was automatically updated to reflect the committed changes.