We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc85973 commit 698dcb7Copy full SHA for 698dcb7
1 file changed
SingularityService/src/main/java/com/hubspot/singularity/hooks/LoadBalancerClient.java
@@ -96,6 +96,14 @@ public List<LoadBalancerUpstream> getUpstreamsForTasks(
96
);
97
98
for (SingularityTask task : tasks) {
99
+ // Temp logging to debug FAILED_INTERNAL_STATE issue
100
+ if (task == null || task.getMesosTask() == null) {
101
+ LOG.warn(
102
+ "Unable to get ports for task {}",
103
+ task,
104
+ new RuntimeException("For a stack trace")
105
+ );
106
+ }
107
final Optional<Long> maybeLoadBalancerPort = MesosUtils.getPortByIndex(
108
mesosProtosUtils.toResourceList(task.getMesosTask().getResources()),
109
task.getTaskRequest().getDeploy().getLoadBalancerPortIndex().orElse(0)
0 commit comments