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

Views with parallel collections are buggy #5525

Closed
scabug opened this issue Feb 27, 2012 · 5 comments
Closed

Views with parallel collections are buggy #5525

scabug opened this issue Feb 27, 2012 · 5 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Feb 27, 2012

In 2.9.1 REPL, repeating the exact same "find" query twice gives different results. It only does this when using both ".par" and ".view".

See also http://stackoverflow.com/questions/8470490/can-views-be-used-with-parallel-collections/9458613#9458613

scala> val f : Int => Int = _ + 10
f: Int => Int =

scala> List(1,2,3).par.view.map(f).find(_ > 11)
res11: Option[Int] = Some(12)

scala> List(1,2,3).par.view.map(f).find(_ > 11)
res12: Option[Int] = None

@scabug
Copy link
Author

scabug commented Feb 27, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5525?orig=1
Reporter: Luigi Plinge (rbj2001)
Affected Versions: 2.9.1

@scabug
Copy link
Author

scabug commented Feb 27, 2012

@soc said:
Can't reproduce with Scala version 2.10.0-M2-0044-g0c2f493804-2012-02-25 (OpenJDK 64-Bit Server VM, Java 1.7.0_03-icedtea).

@scabug
Copy link
Author

scabug commented May 7, 2012

@xeno-by said:
Is indeed reproducible in 2.9.1 - both in repl and outside repl.

@scabug
Copy link
Author

scabug commented May 15, 2012

@axel22 said:
Yes, I can reproduce in 2.9.1, but I can't reproduce it in 2.10 nightly.

@scabug
Copy link
Author

scabug commented May 22, 2012

@axel22 said:
We accept backports through pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants