Skip to main content



      Home
Home » Newcomers » Newcomers » Protect agains data loss from accidental disconnects?
Protect agains data loss from accidental disconnects? [message #248437] Fri, 08 February 2008 12:19 Go to next message
Eclipse UserFriend
A colleague was using Eclipse 3.3.1.1 & CDT 4.0.2 on a remote SUSE
Linux system using a VNC connection. He was using a RealVNC client on
Windows XP, but I don't know what flavor VNC server is on the Linux
box.

At any rate, he accidentally closed his VNC client, which terminated
all of his processes on the remote Linux box, and he seems to have
lost all the changes to files which were open in Eclipse at the time.

I don't know what notification Eclipse gets in this case, maybe
SIGHUP.

Is there an option or config parameter to have open files saved (or
something) in this situation?

--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Re: Protect agains data loss from accidental disconnects? [message #248587 is a reply to message #248437] Mon, 11 February 2008 12:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Bert Hyman wrote:
> A colleague was using Eclipse 3.3.1.1 & CDT 4.0.2 on a remote SUSE
> Linux system using a VNC connection. He was using a RealVNC client on
> Windows XP, but I don't know what flavor VNC server is on the Linux
> box.
>
> At any rate, he accidentally closed his VNC client, which terminated
> all of his processes on the remote Linux box, and he seems to have
> lost all the changes to files which were open in Eclipse at the time.
>
> I don't know what notification Eclipse gets in this case, maybe
> SIGHUP.
>
> Is there an option or config parameter to have open files saved (or
> something) in this situation?
>

I wonder if setting the "workspace save interval" preference to
something small (like 1 minute) would help. The preference is under
General > Workspace. I'm not sure if it will trigger save of open files
or not - try it out and report back.

Hope this helps,
Eric
Re: Protect agains data loss from accidental disconnects? [message #248610 is a reply to message #248587] Mon, 11 February 2008 12:29 Go to previous messageGo to next message
Eclipse UserFriend
eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
news:fopv91$5mc$5@build.eclipse.org:

> Bert Hyman wrote:

>>
>> Is there an option or config parameter to have open files saved (or
>> something) in this situation?
>>
>
> I wonder if setting the "workspace save interval" preference to
> something small (like 1 minute) would help. The preference is under
> General > Workspace. I'm not sure if it will trigger save of open
> files or not - try it out and report back.

Just tried that and then left an changed file open for about 10
minutes, then shut down my VNC client.

When I re-connected and fired up Eclipse, the changes were lost.

--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Re: Protect agains data loss from accidental disconnects? [message #248630 is a reply to message #248610] Mon, 11 February 2008 14:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

"Bert Hyman" <bert.hyman@unisys.com> wrote in message
news:Xns9A4174DFEBBBAVeebleFetzer@206.191.52.34...
> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
> news:fopv91$5mc$5@build.eclipse.org:
>
> > Bert Hyman wrote:
>
> >>
> >> Is there an option or config parameter to have open files saved (or
> >> something) in this situation?
> >>
> >
> > I wonder if setting the "workspace save interval" preference to
> > something small (like 1 minute) would help. The preference is under
> > General > Workspace. I'm not sure if it will trigger save of open
> > files or not - try it out and report back.
>
> Just tried that and then left an changed file open for about 10
> minutes, then shut down my VNC client.
>

Are you sure you have your VNC server configured properly? Shutting down a
VNC client shouldn't bring down the server.

> When I re-connected and fired up Eclipse, the changes were lost.
>
> --
> Bert Hyman | Unisys - Roseville MN
> bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Re: Protect agains data loss from accidental disconnects? [message #248635 is a reply to message #248610] Mon, 11 February 2008 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Bert Hyman wrote:
> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
> news:fopv91$5mc$5@build.eclipse.org:
>
>> Bert Hyman wrote:
>
>>> Is there an option or config parameter to have open files saved (or
>>> something) in this situation?
>>>
>> I wonder if setting the "workspace save interval" preference to
>> something small (like 1 minute) would help. The preference is under
>> General > Workspace. I'm not sure if it will trigger save of open
>> files or not - try it out and report back.
>
> Just tried that and then left an changed file open for about 10
> minutes, then shut down my VNC client.
>
> When I re-connected and fired up Eclipse, the changes were lost.
>

Hmm, that's disappointing.
My only other suggestion (other than what Dave already said about
checking VNC configuration) is to get used to Ctrl+S very often. I tend
to use it quite liberally and really like the feedback it gives me about
my work-in-progress.

Eric
Re: Protect agains data loss from accidental disconnects? [message #248640 is a reply to message #248635] Mon, 11 February 2008 15:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Eric Rizzo wrote:
> Bert Hyman wrote:
>> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
>> news:fopv91$5mc$5@build.eclipse.org:
>>> Bert Hyman wrote:
>>
>>>> Is there an option or config parameter to have open files saved (or
>>>> something) in this situation?
>>> I wonder if setting the "workspace save interval" preference to
>>> something small (like 1 minute) would help. The preference is under
>>> General > Workspace. I'm not sure if it will trigger save of open
>>> files or not - try it out and report back.
>>
>> Just tried that and then left an changed file open for about 10
>> minutes, then shut down my VNC client.
>> When I re-connected and fired up Eclipse, the changes were lost.
>>
>
> Hmm, that's disappointing.

By the way, feel free to open an enhancement request for it if you'd
like the option of having dirty editors saved as part of the periodic
workspace save.
https://bugs.eclipse.org/bugs

Eric
Re: Protect agains data loss from accidental disconnects? [message #248686 is a reply to message #248587] Tue, 12 February 2008 03:48 Go to previous messageGo to next message
Eclipse UserFriend
Eric Rizzo wrote:

> Bert Hyman wrote:
>
>> A colleague was using Eclipse 3.3.1.1 & CDT 4.0.2 on a remote SUSE
>> Linux system using a VNC connection. He was using a RealVNC client on
>> Windows XP, but I don't know what flavor VNC server is on the Linux
>> box.
>> At any rate, he accidentally closed his VNC client, which terminated
>> all of his processes on the remote Linux box, and he seems to have
>> lost all the changes to files which were open in Eclipse at the time.
>> I don't know what notification Eclipse gets in this case, maybe
>> SIGHUP.
>> Is there an option or config parameter to have open files saved (or
>> something) in this situation?
>
>
> I wonder if setting the "workspace save interval" preference to
> something small (like 1 minute) would help. The preference is under
> General > Workspace. I'm not sure if it will trigger save of open
> files or not - try it out and report back.

This preference only saves the workspace state and not the resources itself.

Dani

>
> Hope this helps,
> Eric
Re: Protect agains data loss from accidental disconnects? [message #248736 is a reply to message #248630] Tue, 12 February 2008 09:45 Go to previous messageGo to next message
Eclipse UserFriend
wegener@cboenospam.com (Dave Wegener) wrote in
news:foq8ut$6r0$1@build.eclipse.org:

>
> "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> news:Xns9A4174DFEBBBAVeebleFetzer@206.191.52.34...
>> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
>> news:fopv91$5mc$5@build.eclipse.org:
>>
>> > Bert Hyman wrote:
>>
>> >>
>> >> Is there an option or config parameter to have open files saved
>> >> (or something) in this situation?
>> >>
>> >
>> > I wonder if setting the "workspace save interval" preference to
>> > something small (like 1 minute) would help. The preference is
>> > under General > Workspace. I'm not sure if it will trigger save
>> > of open files or not - try it out and report back.
>>
>> Just tried that and then left an changed file open for about 10
>> minutes, then shut down my VNC client.
>>
>
> Are you sure you have your VNC server configured properly? Shutting
> down a VNC client shouldn't bring down the server.

It doesn't bring down the server, it merely terminates the user's
session, along with any applications the user might have been running
at the time.

Eclipse, being unable to ask if the user wants to save the open files
as it usually would, discards the changes.

--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Re: Protect agains data loss from accidental disconnects? [message #248741 is a reply to message #248635] Tue, 12 February 2008 09:47 Go to previous messageGo to next message
Eclipse UserFriend
eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
news:foqb7c$iuq$2@build.eclipse.org:

> Bert Hyman wrote:
>> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
>> news:fopv91$5mc$5@build.eclipse.org:
>>
>>> Bert Hyman wrote:
>>
>>>> Is there an option or config parameter to have open files saved
>>>> (or something) in this situation?
>>>>
>>> I wonder if setting the "workspace save interval" preference to
>>> something small (like 1 minute) would help. The preference is
>>> under General > Workspace. I'm not sure if it will trigger save of
>>> open files or not - try it out and report back.
>>
>> Just tried that and then left an changed file open for about 10
>> minutes, then shut down my VNC client.
>>
>> When I re-connected and fired up Eclipse, the changes were lost.
>>
>
> Hmm, that's disappointing.
> My only other suggestion (other than what Dave already said about
> checking VNC configuration) is to get used to Ctrl+S very often. I
> tend to use it quite liberally and really like the feedback it gives
> me about my work-in-progress.

The simple "fix" so far is to have the user run his VNC client in
full-screen mode all the time. That way, there's no Windows title bar
with a close box, which is what got him in trouble in the first place
:-)

--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Re: Protect agains data loss from accidental disconnects? [message #248751 is a reply to message #248736] Tue, 12 February 2008 10:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

"Bert Hyman" <bert.hyman@unisys.com> wrote in message
news:Xns9A42590AD18FCVeebleFetzer@206.191.52.34...
> wegener@cboenospam.com (Dave Wegener) wrote in
> news:foq8ut$6r0$1@build.eclipse.org:
>
> >
> > "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> > news:Xns9A4174DFEBBBAVeebleFetzer@206.191.52.34...
> >> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
> >> news:fopv91$5mc$5@build.eclipse.org:
> >>
> >> > Bert Hyman wrote:
> >>
> >> >>
> >> >> Is there an option or config parameter to have open files saved
> >> >> (or something) in this situation?
> >> >>
> >> >
> >> > I wonder if setting the "workspace save interval" preference to
> >> > something small (like 1 minute) would help. The preference is
> >> > under General > Workspace. I'm not sure if it will trigger save
> >> > of open files or not - try it out and report back.
> >>
> >> Just tried that and then left an changed file open for about 10
> >> minutes, then shut down my VNC client.
> >>
> >
> > Are you sure you have your VNC server configured properly? Shutting
> > down a VNC client shouldn't bring down the server.
>
> It doesn't bring down the server, it merely terminates the user's
> session, along with any applications the user might have been running
> at the time.
>
This still doesn't sound correct. The VNC server should not be sending
SIGHUP to processes when the client disconnects. Are all processes
terminating (xterms, etc) terminating when the client closes its connection?

How are you starting the VNC Server, client, and Eclipse application?


> Eclipse, being unable to ask if the user wants to save the open files
> as it usually would, discards the changes.
>
> --
> Bert Hyman | Unisys - Roseville MN
> bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Re: Protect agains data loss from accidental disconnects? [message #248767 is a reply to message #248751] Tue, 12 February 2008 15:38 Go to previous messageGo to next message
Eclipse UserFriend
wegener@cboenospam.com (Dave Wegener) wrote in
news:fosef2$2a4$1@build.eclipse.org:

>
> "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> news:Xns9A42590AD18FCVeebleFetzer@206.191.52.34...
>> wegener@cboenospam.com (Dave Wegener) wrote in
>> news:foq8ut$6r0$1@build.eclipse.org:
>>
>> >
>> > "Bert Hyman" <bert.hyman@unisys.com> wrote in message
>> > news:Xns9A4174DFEBBBAVeebleFetzer@206.191.52.34...
>> >> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
>> >> news:fopv91$5mc$5@build.eclipse.org:
>> >>
>> >> > Bert Hyman wrote:
>> >>
>> >> >>
>> >> >> Is there an option or config parameter to have open files
>> >> >> saved (or something) in this situation?
>> >> >>
>> >> >
>> >> > I wonder if setting the "workspace save interval" preference
>> >> > to something small (like 1 minute) would help. The preference
>> >> > is under General > Workspace. I'm not sure if it will trigger
>> >> > save of open files or not - try it out and report back.
>> >>
>> >> Just tried that and then left an changed file open for about 10
>> >> minutes, then shut down my VNC client.
>> >>
>> >
>> > Are you sure you have your VNC server configured properly?
>> > Shutting down a VNC client shouldn't bring down the server.
>>
>> It doesn't bring down the server, it merely terminates the user's
>> session, along with any applications the user might have been
>> running at the time.
>>
> This still doesn't sound correct. The VNC server should not be
> sending SIGHUP to processes when the client disconnects. Are all
> processes terminating (xterms, etc) terminating when the client
> closes its connection?

Yes, all the user processes are gone, and the user is logged out.

I'm just assuming that when (if) Eclipse receives a SIGHUP, it's just
going away without saving any open files. In a normal termination of
Eclipse, it will ask if you want to save any open files; in this case,
it has no way to ask, since the display is closed already.

> How are you starting the VNC Server, client, and Eclipse
> application?

XVnc is started up out of xinetd. The RealVNC client is simply
executed on the user's Windows box, and then once he's logged in, he
executes Eclipse in the normal fashion.

--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Re: Protect agains data loss from accidental disconnects? [message #248798 is a reply to message #248767] Tue, 12 February 2008 17:40 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

"Bert Hyman" <bert.hyman@unisys.com> wrote in message
news:Xns9A429500AACA9VeebleFetzer@206.191.52.34...
> wegener@cboenospam.com (Dave Wegener) wrote in
> news:fosef2$2a4$1@build.eclipse.org:
>
> >
> > "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> > news:Xns9A42590AD18FCVeebleFetzer@206.191.52.34...
> >> wegener@cboenospam.com (Dave Wegener) wrote in
> >> news:foq8ut$6r0$1@build.eclipse.org:
> >>
> >> >
> >> > "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> >> > news:Xns9A4174DFEBBBAVeebleFetzer@206.191.52.34...
> >> >> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
> >> >> news:fopv91$5mc$5@build.eclipse.org:
> >> >>
> >> >> > Bert Hyman wrote:
> >> >>
> >> >> >>
> >> >> >> Is there an option or config parameter to have open files
> >> >> >> saved (or something) in this situation?
> >> >> >>
> >> >> >
> >> >> > I wonder if setting the "workspace save interval" preference
> >> >> > to something small (like 1 minute) would help. The preference
> >> >> > is under General > Workspace. I'm not sure if it will trigger
> >> >> > save of open files or not - try it out and report back.
> >> >>
> >> >> Just tried that and then left an changed file open for about 10
> >> >> minutes, then shut down my VNC client.
> >> >>
> >> >
> >> > Are you sure you have your VNC server configured properly?
> >> > Shutting down a VNC client shouldn't bring down the server.
> >>
> >> It doesn't bring down the server, it merely terminates the user's
> >> session, along with any applications the user might have been
> >> running at the time.
> >>
> > This still doesn't sound correct. The VNC server should not be
> > sending SIGHUP to processes when the client disconnects. Are all
> > processes terminating (xterms, etc) terminating when the client
> > closes its connection?
>
> Yes, all the user processes are gone, and the user is logged out.
>
> I'm just assuming that when (if) Eclipse receives a SIGHUP, it's just
> going away without saving any open files. In a normal termination of
> Eclipse, it will ask if you want to save any open files; in this case,
> it has no way to ask, since the display is closed already.
>
> > How are you starting the VNC Server, client, and Eclipse
> > application?
>
> XVnc is started up out of xinetd. The RealVNC client is simply
> executed on the user's Windows box, and then once he's logged in, he
> executes Eclipse in the normal fashion.
>
This configuration sounds like the XVnc server is being brought down when
the client is closed which is closing the applications.

Have you tried telnetting to the server and starting XVnc manually with a
nohup? This will keep the server running even if the client disconnects.
You can even close your telnet session that start XVnc and it will stay
running.

> --
> Bert Hyman | Unisys - Roseville MN
> bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Previous Topic:Web Services Issue
Next Topic:eclipse under leopard - UnsupportedClassVersion
Goto Forum:
  


Current Time: Tue Jul 22 10:30:26 EDT 2025

Powered by FUDForum. Page generated in 0.12757 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top