[
https://issues.apache.org/jira/browse/BEAM-5496?focusedWorklogId=154590&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-154590
]
ASF GitHub Bot logged work on BEAM-5496:
----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Oct/18 03:38
Start Date: 16/Oct/18 03:38
Worklog Time Spent: 10m
Work Description: flyisland opened a new pull request #6701: [BEAM-5496]
Fixes bug of MqttIO fails to deserialize checkpoint
URL: https://github.com/apache/beam/pull/6701
Hi @lukecwik , I've created the test case for the bug and fixed it, please
check it, thanks!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 154590)
Time Spent: 10m
Remaining Estimate: 0h
> MqttIO fails to deserialize checkpoint
> --------------------------------------
>
> Key: BEAM-5496
> URL: https://issues.apache.org/jira/browse/BEAM-5496
> Project: Beam
> Issue Type: Bug
> Components: io-java-mqtt
> Reporter: Luke Cwik
> Assignee: Island Chen
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Source of bug report:
> [https://lists.apache.org/thread.html/3de5a946bcb539dea9f18a31f712d6af5b66f9fbb6b01eed452c5afb@%3Cdev.beam.apache.org%3E]
>
> There is a bug of the built-in MqttIO, please check the
> <https://github.com/apache/beam/blob/master/sdks/java/io/mqtt/src/main/java/org/apache/beam/sdk/io/mqtt/MqttIO.java#L336>,
> this readObject() method forget to invoke the "stream.defaultReadObject()"
> method.
>
> {code:java}
> // set an empty list to messages when deserialize
> private void readObject(java.io.ObjectInputStream stream)
> throws IOException, ClassNotFoundException {
> messages = new ArrayList<>();
> }{code}
>
> So there is an exception while the runner tried to deserialize the checkpoint
> object.
> {code:java}
> java.lang.RuntimeException: org.apache.beam.sdk.coders.CoderException: 95
> unexpected extra bytes after decoding
> org.apache.beam.sdk.io.mqtt.MqttIO$MqttCheckpointMark@6764e219
> at
> org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:340)
> ...{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)