You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/10/09 13:28:54 UTC

[GitHub] [incubator-seatunnel] hailin0 commented on a diff in pull request #3039: [Hotfix][ST-Engine] Fix Serializable error

hailin0 commented on code in PR #3039:
URL: https://github.com/apache/incubator-seatunnel/pull/3039#discussion_r990789121


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/operation/source/SourceNoMoreElementOperation.java:
##########
@@ -60,15 +60,15 @@ public void run() throws Exception {
     @Override
     protected void writeInternal(ObjectDataOutput out) throws IOException {
         super.writeInternal(out);
-        currentTaskID.writeData(out);
-        enumeratorTaskID.writeData(out);
+        out.writeObject(currentTaskID);
+        out.writeObject(enumeratorTaskID);
     }
 
     @Override
     protected void readInternal(ObjectDataInput in) throws IOException {
         super.readInternal(in);
-        currentTaskID.readData(in);
-        enumeratorTaskID.readData(in);

Review Comment:
   update last two lines
   ![image](https://user-images.githubusercontent.com/14371345/194759528-188423dc-8415-4aee-9f90-bc2eeceb2ccf.png)
   



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org