You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by zh...@apache.org on 2018/08/10 20:38:08 UTC
[mesos] branch master updated: Added `gpus` to failure message.
This is an automated email from the ASF dual-hosted git repository.
zhitao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new 2150f13 Added `gpus` to failure message.
2150f13 is described below
commit 2150f13e856491ef0a5968cd977b16a28f8eae2f
Author: Zhitao Li <zh...@gmail.com>
AuthorDate: Fri Aug 10 11:09:04 2018 -0700
Added `gpus` to failure message.
This message would be propagated all the way to scheduler, so making it
explicit that this is related to gpu can speed up debugging.
Review: https://reviews.apache.org/r/68300
---
src/slave/containerizer/mesos/isolators/gpu/allocator.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/slave/containerizer/mesos/isolators/gpu/allocator.cpp b/src/slave/containerizer/mesos/isolators/gpu/allocator.cpp
index c288ad6..77522ff 100644
--- a/src/slave/containerizer/mesos/isolators/gpu/allocator.cpp
+++ b/src/slave/containerizer/mesos/isolators/gpu/allocator.cpp
@@ -255,7 +255,7 @@ public:
Future<set<Gpu>> allocate(size_t count)
{
if (available.size() < count) {
- return Failure("Requested " + stringify(count) + " but only"
+ return Failure("Requested " + stringify(count) + " gpus but only"
" " + stringify(available.size()) + " available");
}