You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Rui Wang (Jira)" <ji...@apache.org> on 2021/01/18 21:25:00 UTC
[jira] [Updated] (HDDS-4723) Better handle the case that setting a
trx that is earlier than latest trx in SCMDBTransactionBuffer
[ https://issues.apache.org/jira/browse/HDDS-4723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rui Wang updated HDDS-4723:
---------------------------
Description:
@Override
public void updateLatestTrxInfo(SCMTransactionInfo info) {
if (info.compareTo(this.latestTrxInfo) <= 0) {
throw new IllegalArgumentException(
"Updating DB buffer transaction info by an older transaction info, "
+ "current: " + this.latestTrxInfo + ", updating to: " + info);
}
this.latestTrxInfo = info;
}
Right now we throw an exception when such case happen. We could handle it in another way (e.g. like a fatal case so we stop the process).
> Better handle the case that setting a trx that is earlier than latest trx in SCMDBTransactionBuffer
> ---------------------------------------------------------------------------------------------------
>
> Key: HDDS-4723
> URL: https://issues.apache.org/jira/browse/HDDS-4723
> Project: Hadoop Distributed Data Store
> Issue Type: Sub-task
> Reporter: Rui Wang
> Assignee: Rui Wang
> Priority: Major
>
> @Override
> public void updateLatestTrxInfo(SCMTransactionInfo info) {
> if (info.compareTo(this.latestTrxInfo) <= 0) {
> throw new IllegalArgumentException(
> "Updating DB buffer transaction info by an older transaction info, "
> + "current: " + this.latestTrxInfo + ", updating to: " + info);
> }
> this.latestTrxInfo = info;
> }
> Right now we throw an exception when such case happen. We could handle it in another way (e.g. like a fatal case so we stop the process).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org