- Wrong error message when secureClientPortAddress is configured but secureClientPort is not configured.
zookeeper throws IllegalArgumentException with error message clientPortAddress is set but clientPort is not set but should be secureClientPortAddress is set but secureClientPort is not set
- There is another problem with the same code.
value is assigned to local variable but null check is done on instance variable so we will never get error message for this scenario.
should be replaced with
- Above problem is there for clientPort scenario also. So we should replace