Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338901 - ZooKeeper based preferences do not load properly on startup
Summary: ZooKeeper based preferences do not load properly on startup
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: gyrex (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Gunnar Wagenknecht CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 03:51 EST by Gunnar Wagenknecht CLA
Modified: 2018-03-19 11:59 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).