sumitagrawl commented on PR #5857: URL: https://github.com/apache/ozone/pull/5857#issuecomment-1868754360
> @sumitagrawl , when `applyTransaction(..)` completes could we just update the index at the moment? > > In `notifyTermIndexUpdated(..)`, it can keep track with another index, say `notifiedTermIndex`, which will be used in the `prepare` command. > > The goal is to simplify the update last applied index logic and remove both `applyTransactionMap` and `ratisTransactionMap`. @szetszwo We are doing all these to keep update transactionInfo in DB and update lastApplied transaction. - We can avoid applyTransactionMap, passing both term and logIndex to response object, but this needs to change to pass to all response, is it ok to change all request/response? Can be handled with separate JIRA if required. - we need update ratis and applyTransaction Id in db as well in lastAppliedIndex in synch, But with above, there may be wrong view what is actually applied to db and what snapshot we are taking. Please share move view how this can be achieved ... if we have some better solution .. can handle with another JIRA for this. -- like HDDS-9960 continuing this. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
