Project

General

Profile

Actions

Bug #16433

open

zfs test functional/rsend/send_encrypted_freeobjects can fail

Added by Jason King 21 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
tests
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

While testing an unrelated issue, I noticed that functional/rsend/send_encrypted_freeobjects was failing.
Looking at the log, it was failing with 'Failed to create object with number 128'.

Looking at the test, the create_object_with_num function tries in a loop to create a file with a specific inode value (128), removing the file it created if the inode value is not the desired one.
The curious thing is that it attempts up to 100 times to create a file with an inode value of 128 on a test data. In my failure, I tried re-running the test with adding set -x to the create_object_with_num function so I could see why it was failing. I saw that the files it was creating started with inode 2 and were incrementing monotonically. It failed after creating a file with inode value 101. It seems likely had it continued trying, it would have succeeded.

While trying to predict what inode values will be used is a bit of a dubious proposition to begin with (given the context, it might however be the best option available to create the necessary conditions for the test), it seems that at minimum, the number of attempts should equal the desired inode value.

No data to display

Actions

Also available in: Atom PDF