Latest version of Sonic, when issuing a RPC request immediately after receiving a new block notification, I sometimes receive an error that the new block is "not present in the archive".
F.i. for block 8,666,621 the newHeads notifcation has been received at 15:13:52.401, immediately afterwards some RPC queries have been sent, which received the following error at 15:13:52.405, so 4ms later:
block 8666621 is not present in the archive (non-empty archive, last block 8666620
I guess there's a race condition that the block is not actually writen to the database before the newHeads notification is sent.