[
https://issues.apache.org/jira/browse/BEAM-7035?focusedWorklogId=227662&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-227662
]
ASF GitHub Bot logged work on BEAM-7035:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Apr/19 13:06
Start Date: 15/Apr/19 13:06
Worklog Time Spent: 10m
Work Description: tweise commented on pull request #8300: [BEAM-7035]
Compatible wire representation for timers in Python SDK
URL: https://github.com/apache/beam/pull/8300#discussion_r275350293
##########
File path: sdks/python/apache_beam/runners/worker/bundle_processor.py
##########
@@ -381,8 +381,12 @@ def set(self, ts):
windowed_value.WindowedValue(
(self._key, dict(timestamp=ts)), ts, (self._window,)))
- def clear(self, timestamp):
- self._receiver.receive((self._key, dict(clear=True)))
+ def clear(self):
+ dummy_millis = int(common_urns.constants.MAX_TIMESTAMP_MILLIS.constant) + 1
Review comment:
Long.MAX_VALUE is `9223372036854775807`, which is different from
`MAX_TIMESTAMP_MILLIS`. The resulting timer timestamp is
`Timer{timestamp=294247-01-10T04:00:54.776Z, payload=[B@5aec2a63}`. (The code
in this PR is covered by a test, if there was an overflow the test would fail.)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 227662)
Time Spent: 2h 40m (was: 2.5h)
> Clear() method of OutputTimer is inconsistent
> ---------------------------------------------
>
> Key: BEAM-7035
> URL: https://issues.apache.org/jira/browse/BEAM-7035
> Project: Beam
> Issue Type: Bug
> Components: beam-model
> Reporter: Rakesh Kumar
> Assignee: Thomas Weise
> Priority: Major
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> [Clear()|https://github.com/apache/beam/blob/master/sdks/python/apache_beam/runners/worker/bundle_processor.py#L378]
> method of OutputTimer is not consistent ()
> The timestamp parameter is passed here but never used. Also in the [test
> cases
> |[https://github.com/apache/beam/blob/master/sdks/python/apache_beam/transforms/userstate_test.py#L501]]
> and direct runner timer doesn't pass any parameter in the clear method
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)