Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Duplicate target insert during attempted target mount #2381

Merged
merged 1 commit into from
Nov 13, 2020
Merged

Conversation

jgrund
Copy link
Member

@jgrund jgrund commented Nov 12, 2020

When targets are mounted quickly in succession (i.e after a failed mount), we can get data
from the agents showing the target mounted on both hosts.
When this occurs we will try to insert the target twice into the db.

Instead we should filter out any items that show as mounted but are unknown to the current host.

Fixes #2380

Signed-off-by: Joe Grund jgrund@whamcloud.io


This change is Reviewable

When targets are mounted quickly in succession (i.e after a failed mount), we can get data
from the agents showing the target mounted on both hosts.
When this occurs we will try to insert the target twice into the db.

Instead we should filter out any items that show as mounted but are unknown to the current host.

Fixes #2380

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
@jgrund jgrund added the bug label Nov 12, 2020
@jgrund jgrund self-assigned this Nov 12, 2020
@jgrund jgrund requested a review from a team November 12, 2020 23:02
@jgrund jgrund requested a review from a team November 13, 2020 01:38
@jgrund jgrund merged commit e776ae2 into master Nov 13, 2020
@jgrund jgrund deleted the fix-dup-mount branch November 13, 2020 18:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants