On a table with record compression active (or with variable-length size set by the application) and indexes allowing duplicates, the first attempt to rewrite a record succeeded. From that point on, any other attempt to rewrite any record failed with a duplicate key error.
The logic has been modified to correct this problem.