The purpose of the InnoDB doublewrite buffer is to make redo-logged write operations crash-safe. If InnoDB is killed in the middle of a page write, the redo log based recovery on subsequent InnoDB startup would detect the corrupted page.
The initial phase of ALTER TABLE…IMPORT TABLESPACE operation is not redo-logged or crash-safe, and it cannot possibly benefit from the doublewrite buffer. We should skip the doublewrite buffer in this case.
Note: This will cause page_compressed tables to expand during IMPORT TABLESPACE until
MDEV-15527 has been fixed.