Hi Balázs,
Normally, after you start your Hazelcast members, CP subsystem initialization must be completed in a couple of seconds. It should not take a lot of time once you have enough nodes in your cluster (=cp member count configuration). When you try to fetch a data structure proxy from the CPSubsystem interface, internally it will wait until this initialization step is done.
There is also another method that you can use with your custom timeout: CPSubsystemManagementService#awaitUntilDiscoveryCompleted(long timeout, TimeUnit timeUnit)
You can give your own timeout value here and it will return false if the cp subsystem initialization is not completed during the given duration.
Regards,