Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with dryrun option that caused hanging #30

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

MigeljanImeri
Copy link
Owner

Fixed an issue with the dryrun option that would cause xdd to hang whenever the option was enabled. The issue lied in src/client/results_manager.c, as it was stuck waiting in a barrier for the other threads to also enter the barrier, which they would never do as the other threads have already exited.

Also added a test to ensure that the dryrun option functions correctly.

Fixed an issue with the dryrun option that would cause xdd to hang
whenever the option was enabled. The issue lied in src/client/results_manager.c,
as it was stuck waiting in a barrier for the other threads to also enter the
barrier, which they would never do as the other threads have already exited.

Also added a test to ensure that the dryrun option functions correctly.

Signed-off-by: MigeljanImeri <ImeriMigel@gmail.com>
@bwatkinson
Copy link
Collaborator

@MigeljanImeri I am not sure what is going on here, but this command still hangs:
xdd -op write -targets 1 /dev/null -reqsize 1024 -numreqs 10 -queuedepth 2 -datapattern random -dryrun

@bwatkinson
Copy link
Collaborator

@MigeljanImeri I am not sure what is going on here, but this command still hangs: xdd -op write -targets 1 /dev/null -reqsize 1024 -numreqs 10 -queuedepth 2 -datapattern random -dryrun

Never mind, I was a moron and ran the wrong XDD binary. This looks good and sorry for the confusion on my end.

@MigeljanImeri MigeljanImeri merged commit 2c62315 into xdd-2.0 Sep 25, 2023
8 checks passed
@MigeljanImeri MigeljanImeri deleted the dryrun-option-hanging branch September 27, 2023 23:03
MigeljanImeri added a commit that referenced this pull request Sep 28, 2023
Fixed an issue with the dryrun option that would cause xdd to hang
whenever the option was enabled. The issue lied in src/client/results_manager.c,
as it was stuck waiting in a barrier for the other threads to also enter the
barrier, which they would never do as the other threads have already exited.

Also added a test to ensure that the dryrun option functions correctly.

Signed-off-by: MigeljanImeri <ImeriMigel@gmail.com>
Co-authored-by: MigeljanImeri <ImeriMigel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants