real-logic / aeron

Efficient reliable UDP unicast, UDP multicast, and IPC message transport
Apache License 2.0
7.37k stars 888 forks source link

When cluster and client is running, delete xxx.rec file has no error or exception #1456

Closed xiangjiangnan closed 1 year ago

xiangjiangnan commented 1 year ago

At aeron cluster I create an aeronArchive connect (localchannel) and use publication to write messages to xxx.rec file. An aeron client (another physical machine)create an aeronArchive connect to cluster archive and use subscription to cousume messages. When cluster and client is running, I delete xxx.rec file from the disk, the cluster publication.offer() has nothing error or excepiton, aeron client still can consumer the archive message. Is it an expected scene? Why publication.offer() and subscription cannot find xxx.rec file not exit?

mjpt777 commented 1 year ago

It makes no sense to delete files from under a running system and expect it to function as expected.