-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support non-disruptive serialization of Network
#417
Comments
The store() operation halts the network before storing, this is by design. The checkpoint() method should be used if halting is not desired. @EronWright For flink-htm, please use the methods outlined in the Gist I sent you which use the SerializerCore specifically. You can refer to them here: https://gist.github.com/cogmission/25c4d5935aa0fc6e65ccafd26a4410a8 Unless there is any further concern, I will close this once I get your feedback. |
@cogmission yep I am using the KryoSerializer from the gist. Basically I need to serialize the network without halting it. Flink has some complicated state management code that uses the supplied serializer to checkpoint at a time of its choosing. I cannot use the checkpoint method, I just need non-destructive serialization. If |
@EronWright Sure... Let me remind myself of what's going on, because I need to see why the KryoSerializer would be using the |
I've prepared a PR to show how flink-htm will be updated to support 0.6.7 incl. checkpointing functionality. Here's the hack needed to keep the network alive after serialization occurs: |
I have a question, since you aren't using Sensors, are you calling |
Correct I am not using sensors, and not calling start. |
@EronWright If I am correct.
|
The issue appears to be that |
Yes but have you tested it? Because |
Yep this came after some investigation; if I override |
I see. Ok, what I'll do is check for a running thread in addition to checking |
I'm going to update the code, and push a new release... stay tuned... ;) |
@EronWright Ok, no problem... I have a question then (please see that issue #418)... |
#Fixed in #419 |
The act of serializing the
Network
causes it to halt becauseshouldDoHalt
is true by default. The ideal would be to not halt the network inpreSerialize
, or to allowshouldDoHalt
to be set by the user.The checkpoint-to-file functionality in HTM.java actually suppresses the halting behavior by briefly setting
shouldDoHalt
to false. In the flink-htm library, Flink takes care of higher-level checkpointing to a Flink-provided storage backend; we desire to use only theSerializerCore
interface for flink-htm.The text was updated successfully, but these errors were encountered: