]
Mohit Suman updated JBIDE-26159:
--------------------------------
Story Points: 5 (was: 4)
Server adapter: debugging is not stopped if you delete the pod
--------------------------------------------------------------
Key: JBIDE-26159
URL:
https://issues.jboss.org/browse/JBIDE-26159
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.6.0.AM3
Reporter: Andre Dietisheim
Assignee: Dmitrii Bocharov
Priority: Minor
Labels: port_forwarding, server_adapter
Fix For: 4.9.x
steps:
Screencast:
https://youtu.be/XMA--S9zj6s
# EXEC: create an application (via ex. nodejs-mongo-persistent template)
# ASSERT: pod for service is running
# EXEC: select pod and pick "Port Forwarding..." and start the forwarding
# ASSERT: forwarding is running
# EXEC: verify on the cmd-line that the forwarding is running
{code}
$ ps ax | grep oc
47793 ?? S 0:00.25 /Users/adietish/Downloads/oc_341 port-forward --token=XXXXX
--server=https://open.paas.redhat.com --insecure-skip-tls-verify=true -n jbide25000 -p
nodejs-mongo-persistent-7-rsmlr 5858:5858 8080:8080
{code}
# EXEC: in Explorer: select the pod for your service and pick "Delete"
# ASSERT: pod gets deleted and recreated
# EXEC: verify on the cmd-line that the forwarding is running
{code}
$ ps ax | grep oc
47793 ?? S 0:00.25 /Users/adietish/Downloads/oc_341 port-forward --token=XXXXX
--server=https://open.paas.redhat.com --insecure-skip-tls-verify=true -n jbide25000 -p
nodejs-mongo-persistent-7-rsmlr 5858:5858 8080:8080
{code}
Result:
The port forwarding is still running.
In Eclipse there's no way for you to see this since you have to select the new pod
and pick "Port Forwarding..." on this new pod. It'll then tell you that the
port forwarding is *NOT* running, since we're asking about port-forwarding for the new
pod (not the old one that was killed).
PS. it looks like there's a timeout somewhere, oc stops port-forwarding at some point
(many minutes later) and the process disappears.