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

[SPARK-13170] [STREAMING] Investigate replacing SynchronizedQueue as it is deprecated #11111

Closed
wants to merge 1 commit into from

Conversation

srowen
Copy link
Member

@srowen srowen commented Feb 7, 2016

Replace SynchronizeQueue with synchronized access to a Queue

@@ -66,7 +65,7 @@ class InputStreamsSuite extends TestSuiteBase with BeforeAndAfter {
// Feed data to the server to send to the network receiver
val clock = ssc.scheduler.clock.asInstanceOf[ManualClock]
val expectedOutput = input.map(_.toString)
for (i <- 0 until input.size) {
for (i <- input.indices) {
Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I touched this up in other code I was touching, and then wanted to do it everywhere in this file.

@SparkQA
Copy link

SparkQA commented Feb 7, 2016

Test build #50903 has finished for PR 11111 at commit 5aebf71.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@holdenk
Copy link
Contributor

holdenk commented Feb 8, 2016

This looks good to me, and it looks like we synchronize on the same object that the deprecated SynchronizedQueue did so it should still be ok for peoples code that was written using that.

@jodersky
Copy link
Member

jodersky commented Feb 8, 2016

Agreed, I also just compared it with the SynchronizedQueue sources and behaviour should be identical. looks good

@SparkQA
Copy link

SparkQA commented Feb 9, 2016

Test build #50964 has finished for PR 11111 at commit 75bafe6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member Author

srowen commented Feb 9, 2016

Merged to master

@asfgit asfgit closed this in 68ed363 Feb 9, 2016
@srowen srowen deleted the SPARK-13170 branch February 10, 2016 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants