[
https://issues.apache.org/jira/browse/GOBBLIN-1341?focusedWorklogId=525686&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-525686
]
ASF GitHub Bot logged work on GOBBLIN-1341:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 17/Dec/20 19:32
Start Date: 17/Dec/20 19:32
Worklog Time Spent: 10m
Work Description: aplex commented on a change in pull request #3177:
URL: https://github.com/apache/incubator-gobblin/pull/3177#discussion_r545349592
##########
File path:
gobblin-utility/src/main/java/org/apache/gobblin/util/ClustersNames.java
##########
@@ -97,21 +110,34 @@ public void addClusterMapping(URL clusterUrl, String
clusterName) {
this.urlToNameMap.put(clusterUrl.toString(), clusterName);
}
- // Strip out the port number if it is a valid URI
- private static String normalizeClusterUrl(String clusterIdentifier) {
+ private static List<String> generateUrlMatchCandidates(String
clusterIdentifier) {
+ ArrayList<String> candidates = new ArrayList<>();
+ candidates.add(clusterIdentifier);
+
try {
URI uri = new URI(clusterIdentifier.trim());
- // URIs without protocol prefix
- if (!uri.isOpaque() && null != uri.getHost()) {
- clusterIdentifier = uri.getHost();
+ if (uri.getHost() != null) {
+ if (uri.getPort() != -1) {
+ candidates.add(uri.getHost() + ":" + uri.getPort());
+ }
+
+ candidates.add(uri.getHost());
Review comment:
Added a comment here. Also check out "testPortSpecificOverrides" test
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 525686)
Time Spent: 1h (was: 50m)
> Make cluster name resolution more robust
> ----------------------------------------
>
> Key: GOBBLIN-1341
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1341
> Project: Apache Gobblin
> Issue Type: Improvement
> Components: gobblin-core
> Reporter: Alex Prokofiev
> Assignee: Abhishek Tiwari
> Priority: Minor
> Time Spent: 1h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)