Skip to content

[SPARK-28142][SS][TEST][FOLLOWUP] Add configuration check test on Kafka continuous stream#24999

Closed
HeartSaVioR wants to merge 8 commits intoapache:masterfrom
HeartSaVioR:SPARK-28142-FOLLOWUP
Closed

[SPARK-28142][SS][TEST][FOLLOWUP] Add configuration check test on Kafka continuous stream#24999
HeartSaVioR wants to merge 8 commits intoapache:masterfrom
HeartSaVioR:SPARK-28142-FOLLOWUP

Conversation

@HeartSaVioR
Copy link
Contributor

What changes were proposed in this pull request?

This patch adds missing UT which tests the changed behavior of original patch #24942.

How was this patch tested?

Newly added UT.

@HeartSaVioR
Copy link
Contributor Author

cc. @gatorsmile @gaborgsomogyi @HyukjinKwon

@gaborgsomogyi Please feel free to leverage this and add a new test for micro-batch case in #24967.

@gaborgsomogyi
Copy link
Contributor

@HeartSaVioR thanks for pulling me in, reviewing it through...

@SparkQA
Copy link

SparkQA commented Jun 28, 2019

Test build #106994 has finished for PR 24999 at commit d7e4112.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class KafkaSourceProviderSuite extends SparkFunSuite with PrivateMethodTester

Copy link
Contributor

@gaborgsomogyi gaborgsomogyi left a comment

Choose a reason for hiding this comment

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

Basically look good and works properly.

@SparkQA
Copy link

SparkQA commented Jun 28, 2019

Test build #107000 has finished for PR 24999 at commit 8417fbe.

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

Copy link
Contributor

@gaborgsomogyi gaborgsomogyi left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the change.

@HeartSaVioR
Copy link
Contributor Author

@gaborgsomogyi Ah, I think I just realized what you meant. The last commit reflects it. Sorry about confusion.

@gaborgsomogyi
Copy link
Contributor

@HeartSaVioR that said I'm happy with 2 ways. Either generalize or split creation and value fetch.

@SparkQA
Copy link

SparkQA commented Jun 28, 2019

Test build #107006 has finished for PR 24999 at commit 3d56605.

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

@SparkQA
Copy link

SparkQA commented Jun 28, 2019

Test build #107007 has finished for PR 24999 at commit 86c4002.

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

@HeartSaVioR
Copy link
Contributor Author

Assuming @gaborgsomogyi thinks the recent change is also good as well...
@gatorsmile @HyukjinKwon Could you please review this and merge this in? Thanks in advance.

@HyukjinKwon
Copy link
Member

Looks fine to me but I think we better have a confirmation from @gatorsmile since the comment is his.

@HeartSaVioR
Copy link
Contributor Author

OK we can wait @gatorsmile . Thanks @HyukjinKwon for reviewing!

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-28142][SS][FOLLOWUP] Use CaseInsensitiveStringMap for KafkaContinuousStream [SPARK-28142][SS][TEST][FOLLOWUP] Use CaseInsensitiveStringMap for KafkaContinuousStream Jul 3, 2019
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-28142][SS][TEST][FOLLOWUP] Use CaseInsensitiveStringMap for KafkaContinuousStream [SPARK-28142][SS][TEST][FOLLOWUP] Add KafkaSourceProviderSuite Jul 3, 2019
@dongjoon-hyun
Copy link
Member

We had better use a meaningful title and description for every commits. Please don't use the same title in the follow-up PRs.

@HeartSaVioR HeartSaVioR changed the title [SPARK-28142][SS][TEST][FOLLOWUP] Add KafkaSourceProviderSuite [SPARK-28142][SS][TEST][FOLLOWUP] Add configuration check test on Kafka continuous stream Jul 3, 2019
@HeartSaVioR
Copy link
Contributor Author

We had better use a meaningful title and description for every commits. Please don't use the same title in the follow-up PRs.

Thanks for the note! I just rewrote the title of this PR to be self-described.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

I'm not a big fan of the assumption for reusing of the upcoming PRs. But, I believe @HeartSaVioR 's suggestion. However, we should remove the repetition.

@HeartSaVioR
Copy link
Contributor Author

Got it. I respect the direction on avoiding redundant code whenever possible, and try to inline if it's only used once. Here's an update.

I just added UT on what can be tested on micro-batch stream without #24967, and try to inline, deduplicate, etc. I guess @gaborgsomogyi wants to add new test which inspects other part of KafkaMicroBatchStream (which newly added UT doesn't cover), so once this gets merged, @gaborgsomogyi could extract some methods if he needs to reuse some parts of test.

@HeartSaVioR
Copy link
Contributor Author

Sorry let me refine once more. I found missing piece on review comment.

@SparkQA
Copy link

SparkQA commented Jul 3, 2019

Test build #107158 has finished for PR 24999 at commit 77da828.

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

@SparkQA
Copy link

SparkQA commented Jul 3, 2019

Test build #107160 has finished for PR 24999 at commit b1ccf87.

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

@SparkQA
Copy link

SparkQA commented Jul 3, 2019

Test build #107162 has finished for PR 24999 at commit 28a057d.

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

@dongjoon-hyun
Copy link
Member

Thank you for updating, @HeartSaVioR . I'll review today again.

@SparkQA
Copy link

SparkQA commented Jul 4, 2019

Test build #107212 has finished for PR 24999 at commit 04b9374.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class KafkaSourceProviderSuite extends SparkFunSuite with PrivateMethodTester

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Merged to master.

Thank you, @HeartSaVioR and @gaborgsomogyi .

@HeartSaVioR
Copy link
Contributor Author

Thanks all for reviewing and merging!

@HeartSaVioR HeartSaVioR deleted the SPARK-28142-FOLLOWUP branch July 4, 2019 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants