Skip to content
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

[Core] fix the bug where we failed to read spilled object whose size is greater than max(int32_t) #17187

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

scv119
Copy link
Contributor

@scv119 scv119 commented Jul 19, 2021

we use stoi to parse spilled url which only handles int32_t. change it to stoll which handles long long, which is at least int64_t in C++11.
https://en.cppreference.com/w/cpp/string/basic_string/stol
https://en.cppreference.com/w/cpp/language/types

Test plan:

  • added unit test.

@scv119 scv119 changed the title [Core] handle int64_t in parse spilled url [Core] fix the bug where we failed to read spilled object whose size is greater than max(int32_t) Jul 19, 2021
@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jul 19, 2021
@rkooo567
Copy link
Contributor

good to know atoi is using int32..

@rkooo567 rkooo567 merged commit b26fcd3 into ray-project:master Jul 20, 2021
@rkooo567 rkooo567 added the release-blocker P0 Issue that blocks the release label Jul 20, 2021
jiaodong pushed a commit that referenced this pull request Jul 21, 2021
(cherry picked from commit b26fcd3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. release-blocker P0 Issue that blocks the release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants