JasperFx / marten

.NET Transactional Document DB and Event Store on PostgreSQL
https://martendb.io
MIT License
2.74k stars 428 forks source link

Tombstone processing needs to track tenant id #3281

Closed jeremydmiller closed 1 week ago

jeremydmiller commented 2 weeks ago

Here's the culprit:

    private async Task executeTombstoneBlock(UpdateBatch batch, CancellationToken cancellationToken)
    {
        await using var session = (DocumentSessionBase)_store.LightweightSession();
        await session.ExecuteBatchAsync(batch, cancellationToken).ConfigureAwait(false);
    }

That method needs to be tenant aware

jeremydmiller commented 1 week ago

This was fixed, lost sight of when exactly