Skip to content

Conversation

@koeninger
Copy link
Contributor

…f the existing java direct stream api

@SparkQA
Copy link

SparkQA commented Jun 16, 2015

Test build #34997 has finished for PR 6846 at commit 3f3c57a.

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

@srowen
Copy link
Member

srowen commented Jun 16, 2015

LGTM

Copy link
Member

Choose a reason for hiding this comment

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

Nit, not worth fixing unless you make another change: space after the cast.
Was the intent of the JIRA to add something to an example? this is an addition a test which is even better, but I also read that it's users who want to know about this too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, there's a separate JIRA for updating the doc. Will probably do that
on the plane back from spark conf, at least for the java/scala side
On Jun 17, 2015 12:30 AM, "Sean Owen" notifications@github.com wrote:

In
external/kafka/src/test/java/org/apache/spark/streaming/kafka/JavaDirectKafkaStreamSuite.java
#6846 (comment):

@@ -89,6 +90,16 @@ public void testKafkaStream() throws InterruptedException {
StringDecoder.class,
kafkaParams,
topicToSet(topic1)

  • ).transformToPair(
  •    // Make sure you can get offset ranges from the rdd
    
  •    new Function<JavaPairRDD<String, String>, JavaPairRDD<String, String>>() {
    
  •      @Override
    
  •      public JavaPairRDD<String, String> call(JavaPairRDD<String, String> rdd) throws Exception {
    
  •        OffsetRange[] offsets = ((HasOffsetRanges)rdd.rdd()).offsetRanges();
    

Nit, not worth fixing unless you make another change: space after the cast.
Was the intent of the JIRA to add something to an example? this is an
addition a test which is even better, but I also read that it's users who
want to know about this too.


Reply to this email directly or view it on GitHub
https://github.com/apache/spark/pull/6846/files#r32601142.

@srowen
Copy link
Member

srowen commented Jun 19, 2015

LGTM; do you consider this to resolve SPARK-8389 or is there more coming?

@asfgit asfgit closed this in 47af7c1 Jun 19, 2015
@koeninger
Copy link
Contributor Author

Thanks. Not sure if the python side of things is going to continue on SPARK-8389 or on SPARK-8337, but I think this takes care of the java side for now.

@tdas
Copy link
Contributor

tdas commented Jun 20, 2015

Was this committed to branch-1.4?

@koeninger
Copy link
Contributor Author

My original pr was against master

On Fri, Jun 19, 2015 at 7:27 PM, Tathagata Das notifications@github.com
wrote:

Was this committed to branch-1.4?


Reply to this email directly or view it on GitHub
#6846 (comment).

@tdas
Copy link
Contributor

tdas commented Jun 20, 2015

@srowen This was not committed to branch-1.4 even though the target version of Spark 1.4.1 in the JIRA. Causing merge conflicts for other PR #6863 in branch-1.4

Also the JIRA should have been 8390 as this PR is not about exposing offsets in Java API (8389, offsets were already exposed, my JIRA title in 8389 was incorrect, I will fix that), but more about documenting (8390).

@tdas
Copy link
Contributor

tdas commented Jun 20, 2015

@koeninger naah, not your fault, we backport stuff at the time of merging.
@srowen dont worry about it, i am cherry-picking this PR and #6863 to branch 1.4

asfgit pushed a commit that referenced this pull request Jun 20, 2015
…f the existing java direct stream api

Author: cody koeninger <cody@koeninger.org>

Closes #6846 from koeninger/SPARK-8389 and squashes the following commits:

3f3c57a [cody koeninger] [Streaming][Kafka][SPARK-8389] Example of getting offset ranges out of the existing java direct stream api
@srowen
Copy link
Member

srowen commented Jun 20, 2015

Ok it looked like something that did not require a back port to me but yes please go ahead. It is really fixes and docs that go back right?

@tdas
Copy link
Contributor

tdas commented Jun 22, 2015

Yeah, it wasnt obvious from the patch that it should be backported. Well, if it is not related to a new feature, then I generally back port it, especially when it is so close to the 1.4 release where we might still be merging stuff to branch-1.4 heavily.

Isnt it a good idea to generally follow a policy that if JIRA target version is set to have versions in past branches, whoever is merging should try to merge it to the previous branch as well? If we dont have a policy, then shouldnt we have something as a way to better way to communicate intent between committers?

@srowen
Copy link
Member

srowen commented Jun 22, 2015

Yes, assuming Target Version is meaningful, and it was here since you set it. I just overlooked it.

@tdas
Copy link
Contributor

tdas commented Jun 22, 2015

That is a valid question. We all arent super rigorous about updating
Targetting version for all JIRAs timely. On one hand we should try to do
that. On another hand, if it seems to be set properly at the current time,
we should try to do it.

May be these should be in the guidelines for committers :)

On Mon, Jun 22, 2015 at 1:29 AM, Sean Owen notifications@github.com wrote:

Yes, assuming Target Version is meaningful, and it was here since you set
it. I just overlooked it.


Reply to this email directly or view it on GitHub
#6846 (comment).

nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 22, 2015
…f the existing java direct stream api

Author: cody koeninger <cody@koeninger.org>

Closes apache#6846 from koeninger/SPARK-8389 and squashes the following commits:

3f3c57a [cody koeninger] [Streaming][Kafka][SPARK-8389] Example of getting offset ranges out of the existing java direct stream api
Sign up for free to 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.

4 participants