[BUG] TransactionIndex fetch out of bound
Closed this issue · 0 comments
superhx commented
Concurrent Problem:
- [Thread1] ElasticTransactionIndex#append invoke stream.append , update the nextOffset=12478 but not assigned to lastAppend yet
- [Thread2] ElasticTransactionIndex#iterator read the transaction index, get endPosition=12478 and lastAppend=12444 future
- [Thread2] stream fetch out of bound