jrmccluskey commented on a change in pull request #16671:
URL: https://github.com/apache/beam/pull/16671#discussion_r798046896



##########
File path: sdks/go/pkg/beam/core/runtime/xlangx/registry.go
##########
@@ -220,7 +220,11 @@ func (r *registry) getHandlerFunc(urn, expansionAddr 
string) (HandlerFunc, strin
        // By the time this is called, we want *some* kind of HandlerFunc at 
all,
        // So first we check for the hard override.
        ns, config := parseAddr(expansionAddr)
-       if ns == hardOverrideNamespace {
+       if ns == autoNamespace {
+               // Leave expansionAddr unmodified so the autoNamespace keyword 
sticks.
+               // We strip it manually in the HandlerFunc.
+               return QueryAutomatedExpansionService, expansionAddr

Review comment:
       I bumped the check to after the URN override changes the namespace and 
address variables so an URN override can point to an auto set-up. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to