-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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-13203] Add scalastyle rule banning use of mutable.SynchronizedBuffer #11082
Conversation
Jenkins, test this please. |
can you add one for |
Since SynchronizedMap is used, should I open another JIRA ? |
Should the above be cleaned as addendum to #11059 or, using this PR ? |
Test build #50773 has finished for PR 11082 at commit
|
Jenkins, test this please. |
Logged SPARK-13204 for replacing mutable.SynchronizedMap |
Test build #50776 has finished for PR 11082 at commit
|
Jenkins, test this please. |
Test build #50778 has finished for PR 11082 at commit
|
Jenkins, test this please. |
I think there's some overlap between this patch and #11067 |
Test build #50781 has finished for PR 11082 at commit
|
Jenkins, test this please. |
Test build #50785 has finished for PR 11082 at commit
|
Jenkins, test this please |
I'd probably just wait for the streaming PR to also get merged in - makes it simpler. |
Jenkins, test this please |
Test build #50796 has finished for PR 11082 at commit
|
Jenkins, test this please |
Test build #50800 has finished for PR 11082 at commit
|
Jenkins, test this please |
Test build #50801 has finished for PR 11082 at commit
|
Jenkins, test this please |
Test build #50814 has finished for PR 11082 at commit
|
I am trying to add an Array to ConcurrentLinkedQueue (collectedData) in Scala 2.11:
I got the following compilation error:
|
@ted-yu you can use Arrays.asList with the splat syntax along with the ConcurrentLinkedQueues add all method:
|
Jenkins, test this please. |
Test build #50839 has finished for PR 11082 at commit
|
Jenkins, test this please. |
Test build #50841 has finished for PR 11082 at commit
|
There is no error in DirectKafkaStreamSuite.scala Once @holdenk's PR goes in, I will rebase. |
@ted-yu please close this PR, or go ahead and make it only about the issue you filed: a scalastyle rule. |
Of course, this depends on the new rule passing for the whole project. If an existing PR means to catch all occurrences of the issue the rule would flag, then it needs to cover this case too. You should comment on #11067, not here. I see no reason you would open another PR. |
bq. If an existing PR means to catch all occurrences of the issue the rule would flag, then it needs to cover this case too In this case, looks like SPARK-13151 should cover all occurrences. |
See discussion at the tail of #11059
@andrewor14
Please review