2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-21 08:33:23 +00:00

Let the import drain loop accumulate a line

The loop that drains the importer's remaining output reads a byte at a
time but clears currline on every iteration, one level out from where
the earlier loop clears it.  currline is therefore never longer than a
single byte, so the percentage and ERROR: branches can never match and
the tail of an import is silently discarded.

Clear it only once a line has been consumed, as the earlier loop does.
This commit is contained in:
Markus Hilger
2026-07-27 06:52:55 +02:00
parent f2c74b0be3
commit b081c17b55
+1 -1
View File
@@ -1301,7 +1301,7 @@ class MediaImporter(object):
self.error = self.error.decode('utf8')
self.phase = 'error'
return
currline = b''
currline = b''
a = await wkr.stdout.read(1)
if self.oscategory:
defprofile = '/opt/confluent/lib/osdeploy/{0}'.format(