Skip to content

[SPARK-3190][GraphX] fix VertexRDD.count exceed on large graph - #12835

Closed
liyuance wants to merge 1 commit into
apache:masterfrom
liyuance:graphx-VertexRDD-count-exceed
Closed

[SPARK-3190][GraphX] fix VertexRDD.count exceed on large graph#12835
liyuance wants to merge 1 commit into
apache:masterfrom
liyuance:graphx-VertexRDD-count-exceed

Conversation

@liyuance

@liyuanceliyuance commented May 2, 2016

Copy link
Copy Markdown

As [SPARK-3190] and #2106 described, VertexRDDs with more than 4 billion elements are counted incorrectly due to integer overflow when summing partition sizes.
And the PR above expected to fix the issue by converting partition sizes to Longs before summing them. But when the number of vertices in specific partition exceed Integer.MAX_VALUE also can repreduce this issue.
The fundamental cause of this problem is the variable “size” is defined as type Int in class VertexPartitionBase.
def size: Int = mask.cardinality()

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@rxin

rxin commented May 2, 2016

Copy link
Copy Markdown
Contributor

cc @ankurdave

@jiangxb1987jiangxb1987 mentioned this pull request Jun 7, 2017
@asfgitasfgit closed this in b771fedJun 8, 2017
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
# What changes were proposed in this pull request?
This PR proposes to close stale PRs, mostly the same instances with apache#18017Closesapache#11459Closesapache#13833Closesapache#13720Closesapache#12506Closesapache#12456Closesapache#12252Closesapache#17689Closesapache#17791Closesapache#18163Closesapache#17640Closesapache#17926Closesapache#18163Closesapache#12506Closesapache#18044Closesapache#14036Closesapache#15831Closesapache#14461Closesapache#17638Closesapache#18222
Added:
Closesapache#18045Closesapache#18061Closesapache#18010Closesapache#18041Closesapache#18124Closesapache#18130Closesapache#12217
Added:
Closesapache#16291Closesapache#17480Closesapache#14995
Added:
Closesapache#12835Closesapache#17141
## How was this patch tested?
N/A
Author: hyukjinkwon <gurwls223@gmail.com>
Closesapache#18223 from HyukjinKwon/close-stale-prs.
Sign up for freeto 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.

3 participants

@liyuance@AmplabJenkins@rxin