Skip to content

[java] fix a bug that cache result isn't set in FunctionManager#3000

Merged
robertnishihara merged 1 commit into
ray-project:masterfrom
antgroup:fix_functionManager_cache
Oct 3, 2018
Merged

[java] fix a bug that cache result isn't set in FunctionManager#3000
robertnishihara merged 1 commit into
ray-project:masterfrom
antgroup:fix_functionManager_cache

Conversation

@bibabolynn

Copy link
Copy Markdown
Contributor

What do these changes do?

before fix,RAY_FUN_CACHE use only get method ,can only get null, LambdaUtils.getSerializedLambda will always run
fix : put in RAY_FUN_CACHE after create FunctionDescriptor ,LambdaUtils.getSerializedLambda will only run if can't get from cache

Related issue number

not that i know of

  before fix,RAY_FUN_CACHE use only get method ,can only get null
  fix : put after create
@raulchen raulchen changed the title fix bug:RAY_FUNC_CACHE in FunctionManager [java] fix a bug that cache result isn't set in FunctionManager Sep 30, 2018
@jovany-wang

Copy link
Copy Markdown
Contributor

tks.
Could u plz add a test to cover this change?

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/8476/
Test PASSed.

@raulchen raulchen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will merge when CI passes.

@jovany-wang

Copy link
Copy Markdown
Contributor

@robertnishihara
I think this could be merged firstly.

@robertnishihara robertnishihara merged commit 9c606ea into ray-project:master Oct 3, 2018
@bibabolynn bibabolynn deleted the fix_functionManager_cache branch October 18, 2018 02:47
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.

5 participants