-
Notifications
You must be signed in to change notification settings - Fork 2k
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 permissions of migrated allocation directories #2061
Conversation
6164ccd
to
2c8e85a
Compare
return nil, err | ||
} | ||
|
||
// If there were no erorrs then we create the allocdir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors spelled wrong
return prevAllocDir, nil | ||
} | ||
|
||
// unarchiveAllocDir reads the stream of compressed allocation directory and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of a
@@ -1586,40 +1598,38 @@ func (c *Client) migrateRemoteAllocDir(alloc *structs.Allocation, allocID string | |||
stopMigrating, ok := c.migratingAllocs[allocID] | |||
if !ok { | |||
os.RemoveAll(pathToAllocDir) | |||
return nil, fmt.Errorf("couldn't find a migration validity notifier for alloc: %v", alloc.ID) | |||
return fmt.Errorf("couldn't find a migration validity notifier for alloc: %v", allocID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very odd message. "Allocation %q is not marked for remote migration"
2c8e85a
to
33e7d12
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #2053