From 1d51e57b6ef2a80f7224e8cec2c2a592c9f9a348 Mon Sep 17 00:00:00 2001 From: Yuhong Guo Date: Thu, 5 Jul 2018 04:35:51 +0800 Subject: [PATCH] Fix Plasma starting failure when specify the memory in float value. (#2337) --- python/ray/plasma/plasma.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/ray/plasma/plasma.py b/python/ray/plasma/plasma.py index 36498ea4c..f6beeef14 100644 --- a/python/ray/plasma/plasma.py +++ b/python/ray/plasma/plasma.py @@ -60,6 +60,9 @@ def start_plasma_store(plasma_store_memory=DEFAULT_PLASMA_STORE_MEMORY, raise Exception("If huge_pages is True, then the " "plasma_directory argument must be provided.") + if not isinstance(plasma_store_memory, int): + raise Exception("plasma_store_memory should be an integer.") + plasma_store_executable = os.path.join( os.path.abspath(os.path.dirname(__file__)), "../core/src/plasma/plasma_store")