2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Fix issue with client state corruption on errored console start

Previously, the console start path would bail out without consuming the '_requestdone' message.
Correct this by reading until requestdone is seen as required by protocol.
This commit is contained in:
Jarrod Johnson 2014-08-27 14:29:53 -04:00
parent 276ba4abd7
commit cb631ee40f

View File

@ -293,6 +293,8 @@ def do_command(command, server):
if 'errorcode' in status:
exitcode = status['errorcode']
sys.stderr.write('Error: ' + status['error'] + '\n')
while '_requestdone' not in status:
status = tlvdata.recv(session.connection)
return
print '[console session started]'
startconsole(nodename)