Skip to content

[Bug] [imap] After upgrading to 2.3.12, the IMAP entity class has changed, making it impossible to parse the tasks that were running in the previous version. #9928

Closed

Description

@huomengbo

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Old version: 2.3.10
New version: 2.3.12
Description: We ran a large number of streaming tasks on version 2.3.10. After upgrading to 2.3.12, an error occurred while parsing imap during the startup process.

SeaTunnel Version

2.3.12

SeaTunnel Config

An error occurred during the service startup process

Running Command

/opt/seatunnel/bin/seatunnel-cluster.sh -r master

Error Exception

`[] 2025-10-01 13:45:20,101 WARN  [h.m.i.r.BasicRecordStoreLoader] [hz.main.cached.thread-13] - [172.16.0.2]:5801 [seatunnel] [5.1] Could not load keys from map store
2025-10-01 21:45:20 org.apache.seatunnel.engine.imap.storage.api.exception.IMapStorageException: deserialize data error, class name is {}
2025-10-01 21:45:20     at org.apache.seatunnel.engine.imap.storage.file.common.WALReader.deserializeData(WALReader.java:127) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at org.apache.seatunnel.engine.imap.storage.file.common.WALReader.loadAllData(WALReader.java:108) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at org.apache.seatunnel.engine.imap.storage.file.IMapFileStorage.loadAll(IMapFileStorage.java:238) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at org.apache.seatunnel.engine.server.persistence.FileMapStore.loadAll(FileMapStore.java:87) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.map.impl.MapStoreWrapper.loadAll(MapStoreWrapper.java:175) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.map.impl.mapstore.AbstractMapDataStore.loadAll(AbstractMapDataStore.java:59) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.map.impl.recordstore.BasicRecordStoreLoader.loadAndGet(BasicRecordStoreLoader.java:216) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.map.impl.recordstore.BasicRecordStoreLoader.doBatchLoad(BasicRecordStoreLoader.java:180) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.map.impl.recordstore.BasicRecordStoreLoader.loadValuesInternal(BasicRecordStoreLoader.java:138) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.map.impl.recordstore.BasicRecordStoreLoader.access$100(BasicRecordStoreLoader.java:51) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.map.impl.recordstore.BasicRecordStoreLoader$GivenKeysLoaderTask.call(BasicRecordStoreLoader.java:108) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.internal.util.executor.CompletableFutureTask.run(CompletableFutureTask.java:64) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.internal.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:217) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_342]
2025-10-01 21:45:20     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_342]
2025-10-01 21:45:20     at java.lang.Thread.run(Thread.java:750) [?:1.8.0_342]
2025-10-01 21:45:20     at com.hazelcast.internal.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20     at com.hazelcast.internal.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:102) ~[seatunnel-starter.jar:2.3.12]
2025-10-01 21:45:20 Caused by: java.lang.ClassNotFoundException: org.apache.seatunnel.engine.core.job.JobStatus
2025-10-01 21:45:20     at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[?:1.8.0_342]
2025-10-01 21:45:20     at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_342]
2025-10-01 21:45:20     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[?:1.8.0_342]
2025-10-01 21:45:20     at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_342]
2025-10-01 21:45:20     at java.lang.Class.forName0(Native Method) ~[?:1.8.0_342]
2025-10-01 21:45:20     at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_342]
2025-10-01 21:45:20     at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:993) ~[hive-exec-3.1.3.jar:3.1.3]
2025-10-01 21:45:20     at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:1059) ~[hive-exec-3.1.3.jar:3.1.3]
2025-10-01 21:45:20     at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:1042) ~[hive-exec-3.1.3.jar:3.1.3]
2025-10-01 21:45:20     at org.apache.seatunnel.engine.imap.storage.file.common.WALReader.deserializeData(WALReader.java:116) ~[seatunnel-starter.jar:2.3.12]
`

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. zhangshenghang commented on Oct 9, 2025

    @zhangshenghang
    Member

    Since JobStatus has changed in #9689, I think we need a conversion tool to handle this upgrade issue.

    At the same time, we need some strategies to ensure that similar problems do not occur again in the future.

    @Hisoka-X @hawk9821

  2. Hisoka-X commented on Oct 10, 2025

    @Hisoka-X
    Member

    At the same time, we need some strategies to ensure that similar problems do not occur again in the future.

    Yes, we need test case to avoid it happen. Also we should change state to human readable, so user can convert it or change it.

  3. zhangshenghang commented on Oct 10, 2025

    @zhangshenghang
    Member

    At the same time, we need some strategies to ensure that similar problems do not occur again in the future.

    Yes, we need test case to avoid it happen. Also we should change state to human readable, so user can convert it or change it.

    This is a good idea. Will there be a performance loss if it is changed to a human-readable way?

  4. changed the title [-][Bug] [imap]升级2.3.12后,imap实体类变了,导致无法解析之前版本正在运行的任务[/-] [+][Bug] [imap] After upgrading to 2.3.12, the IMAP entity class has changed, making it impossible to parse the tasks that were running in the previous version.[/+] on Oct 10, 2025
  5. Hisoka-X commented on Oct 13, 2025

    @Hisoka-X
    Member

    Will there be a performance loss

    Not a big deal. The number of serialization and deserialization times will not be too high, and the intervals will not be too short. This is within an acceptable range, also we can add options for users to choose.

  6. zhangshenghang commented on Oct 20, 2025

    @zhangshenghang
    Member

    @huomengbo Hi,Can you provide the serialization file? I'll try to reproduce the problem.

  7. huomengbo commented on Nov 5, 2025

    @huomengbo
    Author

    @huomengbo Hi,Can you provide the serialization file? I'll try to reproduce the problem.

    直接在老版本上运行任务,然后再升级到2.3.12版本,新版本启动的时候,会解析老版本上正在的imap数据,会报错

  8. huomengbo commented on Nov 5, 2025

    @huomengbo
    Author

    Will there be a performance loss

    Not a big deal. The number of serialization and deserialization times will not be too high, and the intervals will not be too short. This is within an acceptable range, also we can add options for users to choose.

    服务启动的时候,会全部反序列化imap数据,然后对运行中的任务进行恢复,这时候就没法恢复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions