Skip to content

Conversation

@tdas
Copy link
Contributor

@tdas tdas commented Mar 30, 2017

What changes were proposed in this pull request?

  • Encoder's deserializer must be resolved at the driver where the class is defined. Otherwise there are corner cases using nested classes where resolving at the executor can fail.

  • Fixed flaky test related to processing time timeout. The flakiness is caused because the test thread (that adds data to memory source) has a race condition with the streaming query thread. When testing the manual clock, the goal is to add data and increment clock together atomically, such that a trigger sees new data AND updated clock simultaneously (both or none). This fix adds additional synchronization in when adding data; it makes sure that the streaming query thread is waiting on the manual clock to be incremented (so no batch is currently running) before adding data.

  • AddedtestQuietly on some tests that generate a lot of error logs.

How was this patch tested?

Multiple runs on existing unit tests

Copy link
Contributor

@marmbrus marmbrus left a comment

Choose a reason for hiding this comment

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

LGTM

encoderSerializer
}
}
private val stateDeserializer = stateEncoder.resolveAndBind().deserializer
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you comment that this has to happen on the driver so we don't forget why its here and move it?

try {
// Add data and get the source where it was added, and the expected offset of the
// added data.
if (currentStream != null &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you comment here too. I had no idea what this was doing until read the PR description.

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #75408 has finished for PR 17488 at commit 468c037.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #75410 has finished for PR 17488 at commit 9f3fa04.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3623 has finished for PR 17488 at commit e4c5f6b.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3622 has finished for PR 17488 at commit e4c5f6b.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3624 has finished for PR 17488 at commit e4c5f6b.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #75412 has finished for PR 17488 at commit e4c5f6b.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3626 has finished for PR 17488 at commit e4c5f6b.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3625 has finished for PR 17488 at commit e4c5f6b.

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

@tdas
Copy link
Contributor Author

tdas commented Mar 31, 2017

The only failure was in completely unrelated HiveMetadataCatalogSuite

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3627 has finished for PR 17488 at commit e4c5f6b.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3629 has finished for PR 17488 at commit e4c5f6b.

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2017

Test build #3628 has finished for PR 17488 at commit e4c5f6b.

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

@asfgit asfgit closed this in 567a50a Mar 31, 2017
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.

3 participants