Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338901

Summary: ZooKeeper based preferences do not load properly on startup
Product: z_Archived Reporter: Gunnar Wagenknecht <gunnar>
Component: gyrexAssignee: Gunnar Wagenknecht <gunnar>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: andreas.mihm, mike.tschierschke, peter.hermsdorf
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Gunnar Wagenknecht CLA 2011-03-04 03:51:14 EST
It seems that the current way of initializing and loading the ZooKeeper based cloud preferences does not fly. I did a code review (again) and I think a few changes should be implemented in order to remove some of the implementation complexity and to improve the loading reliability.

* connect and load synchronously (instead of async) on first access
* fail early *and always* if not connected
Comment 1 Gunnar Wagenknecht CLA 2011-03-04 04:01:49 EST
Fix committed to HEAD. I also noticed a missing connect/load call when performing a node/child exist check. This could have caused a few issues down the road (at least one in Jetty initialization).