Skip to content

Conversation

@tdas
Copy link
Contributor

@tdas tdas commented Nov 12, 2015

Bug: Timestamp is not updated if there is data but the corresponding state is not updated. This is wrong, and timeout is defined as "no data for a while", not "not state update for a while".

Fix: Update timestamp when timestamp when timeout is specified, otherwise no need.
Also refactored the code for better testability and added unit tests.

@tdas
Copy link
Contributor Author

tdas commented Nov 12, 2015

@zsxwing Could you please take a look at this PR

@SparkQA
Copy link

SparkQA commented Nov 12, 2015

Test build #45702 has finished for PR 9648 at commit 53a7c2c.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):\n * case class Pivot(\n

@zsxwing
Copy link
Member

zsxwing commented Nov 12, 2015

retest this please

@zsxwing
Copy link
Member

zsxwing commented Nov 12, 2015

LGTM

@SparkQA
Copy link

SparkQA commented Nov 12, 2015

Test build #45708 has finished for PR 9648 at commit 53a7c2c.

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

@tdas
Copy link
Contributor Author

tdas commented Nov 13, 2015

Thanks for the review @zsxwing, merging this to master and 1.6

@tdas
Copy link
Contributor Author

tdas commented Nov 13, 2015

Oops there are conflicts. Fixing them and then merging.

@SparkQA
Copy link

SparkQA commented Nov 13, 2015

Test build #45805 has finished for PR 9648 at commit 7b345cc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):\n * class JavaTrackStateDStream[KeyType, ValueType, StateType, EmittedType](\n

asfgit pushed a commit that referenced this pull request Nov 13, 2015
…tate is not updated

Bug: Timestamp is not updated if there is data but the corresponding state is not updated. This is wrong, and timeout is defined as "no data for a while", not "not state update for a while".

Fix: Update timestamp when timestamp when timeout is specified, otherwise no need.
Also refactored the code for better testability and added unit tests.

Author: Tathagata Das <[email protected]>

Closes #9648 from tdas/SPARK-11681.

(cherry picked from commit e4e46b2)
Signed-off-by: Tathagata Das <[email protected]>
@asfgit asfgit closed this in e4e46b2 Nov 13, 2015
dskrvk pushed a commit to dskrvk/spark that referenced this pull request Nov 13, 2015
…tate is not updated

Bug: Timestamp is not updated if there is data but the corresponding state is not updated. This is wrong, and timeout is defined as "no data for a while", not "not state update for a while".

Fix: Update timestamp when timestamp when timeout is specified, otherwise no need.
Also refactored the code for better testability and added unit tests.

Author: Tathagata Das <[email protected]>

Closes apache#9648 from tdas/SPARK-11681.
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