[jbosstools-issues] [JBoss JIRA] (JBIDE-16021) Revisit whether file transfer requests can trust rse's isConnected

Martin Malina (JIRA) issues at jboss.org
Thu Aug 14 03:50:29 EDT 2014


     [ https://issues.jboss.org/browse/JBIDE-16021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Malina closed JBIDE-16021.
---------------------------------



> Revisit whether file transfer requests can trust rse's  isConnected
> -------------------------------------------------------------------
>
>                 Key: JBIDE-16021
>                 URL: https://issues.jboss.org/browse/JBIDE-16021
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>          Components: server, upstream
>    Affects Versions: 4.2.0.Alpha1
>            Reporter: Rob Stryker
>            Assignee: Rob Stryker
>             Fix For: 4.2.0.Beta2
>
>
> With the large speed increases in jbt's RSE integration, the new bottleneck is during the beginning of the publish event. 
> A block of code currently exists as follows:
> {code}
> 		boolean isConnected = fileSubSystem != null && fileSubSystem.isConnected();
> 		String connectionName = RSEUtils.getRSEConnectionName(behaviour.getServer());
> 		if( isConnected ) {
> 			// The RSE tools might be mistaken here. The user may in fact have lost internet connectivity
> 			NamedRunnableWithProgress run = new NamedRunnableWithProgress("Accessing Remote System Root") {
> 				public Object run(IProgressMonitor monitor) throws CoreException,
> 						SystemMessageException, RuntimeException {
> 					getFileService().getRoots(monitor);
> 					return Status.OK_STATUS;
> 				}
> 			};
> 			IProgressMonitor childMonitor = AbstractServerToolsPublisher.getSubMon(monitor, 100);
> 			Exception e = RSERemotePublishHandler.wrapRemoteCallStatusTimeLimit(run, "null", "null", null, 15000, childMonitor);
> {code}
> It would seem strange for the rse's isConnected() method to be incorrect. Investigate whether it is still possible it is incorrect, and file an appropriate upstream bug, or, if no bug, simply remove the lines and improve speed. 



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list