Fix race condition in test_statestore changes
Fix race condition in test_statestore changes

KillableThreadedServer.port is required to be set for
KillableThreadedServer.wait_until_up() to execute. However, it was being
set during serve() which was run concurrently with wait_until_up() (see
StatestoreSubscriber.__init_server()), so sometimes it was not set. The
fix is to set KillableThreadedServer.port during construction (it is set
by the underlying socket as soon as it is constructed itself).

Change-Id: Ib9ca9e237bca96635f5ee5b5bbfb7fd678929ce4
Reviewed-on: http://gerrit.cloudera.org:8080/759
Reviewed-by: Alex Behm <fe1626037acfc2dc542d2aa723a6d14f2464a20c@cloudera.com>
Tested-by: Internal Jenkins

bratatidas9/Impala-1,XiaominZhang/Impala,kapilrastogi/Impala,theyaa/Impala,bratatidas9/Impala-1,theyaa/Impala,cchanning/Impala,lnliuxing/Impala,brightchen/Impala,theyaa/Impala,XiaominZhang/Impala,kapilrastogi/Impala,kapilrastogi/Impala,theyaa/Impala,brightchen/Impala,kapilrastogi/Impala,bowlofstew/Impala,cchanning/Impala,bratatidas9/Impala-1,lnliuxing/Impala,rdblue/Impala,XiaominZhang/Impala,cchanning/Impala,bowlofstew/Impala,cchanning/Impala,cchanning/Impala,lirui-intel/Impala,lirui-intel/Impala,rdblue/Impala,lirui-intel/Impala,lirui-intel/Impala,cchanning/Impala,brightchen/Impala,cchanning/Impala,kapilrastogi/Impala,theyaa/Impala,lnliuxing/Impala,bowlofstew/Impala,bratatidas9/Impala-1,rdblue/Impala,XiaominZhang/Impala,theyaa/Impala,rdblue/Impala,rdblue/Impala,XiaominZhang/Impala,bratatidas9/Impala-1,bowlofstew/Impala,bowlofstew/Impala,lirui-intel/Impala,XiaominZhang/Impala,brightchen/Impala,theyaa/Impala,kapilrastogi/Impala,brightchen/Impala,lirui-intel/Impala,XiaominZhang/Impala,rdblue/Impala,kapilrastogi/Impala,brightchen/Impala,lnliuxing/Impala,bowlofstew/Impala,lnliuxing/Impala,bowlofstew/Impala,rdblue/Impala,brightchen/Impala,lnliuxing/Impala,lirui-intel/Impala,bratatidas9/Impala-1,bratatidas9/Impala-1,lnliuxing/Impala