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
F13168320: D16390.diff
Tue, May 7, 7:39 AM
Unknown Object (File)
Fri, May 3, 7:15 AM
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)
Mar 31 2024, 10:31 AM
Unknown Object (File)
Feb 6 2024, 10:36 AM
Unknown Object (File)
Jan 31 2024, 9:23 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
Branch
uri1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13294
Build 17047: Run Core Tests
Build 17046: arc lint + arc unit

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.