Closed GoogleCodeExporter closed 9 years ago
To reproduce:
- create a table with a PK
- fill it with enough data to make oak-online-alter-tabe run for a reasonable
time (say, 1 min) to make triggering a race condition easy
- while migration is running, do: delete from your_table where id = (select
max(id) from your_table)
At this stage table copy will never end. Proposed patch attached.
Original comment by gryw...@gmail.com
on 10 Jan 2013 at 6:15
Attachments:
Thank you, I will incorporate this into the code
Original comment by shlomi.n...@gmail.com
on 13 Jan 2013 at 6:01
This issue was closed by revision r190.
Original comment by shlomi.n...@gmail.com
on 13 Jan 2013 at 11:04
On a 2nd thought, this causes a problem when running with --chunk-size=1 (table
truncated). Chunk size == 1 would be a strange choice anyway and perhaps it
should simply be checked to be > 1 rather than > 0?
Original comment by gryw...@gmail.com
on 16 Jan 2013 at 11:53
chunk-size=1 is indeed not only strange, not only impractical, but also
non-functional. I should probably limit to some 100 rows at minimum. Feel free
to ignore the possibility of chunk-size=1.
Original comment by shlomi.n...@gmail.com
on 16 Jan 2013 at 12:35
The attached patch makes 100 the minimum accepted chunk size.
Original comment by gryw...@gmail.com
on 2 Feb 2013 at 8:24
Attachments:
Original issue reported on code.google.com by
gryw...@gmail.com
on 10 Jan 2013 at 1:23