Debug key metadata in flush and set_metadata.