sumitagrawl commented on code in PR #7722:
URL: https://github.com/apache/ozone/pull/7722#discussion_r1969040855
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/execution/flowcontrol/ExecutionContext.java:
##########
@@ -27,10 +27,15 @@ public final class ExecutionContext {
private final TermIndex termIndex;
private ExecutionContext(long index, TermIndex termIndex) {
- this.index = index;
if (null == termIndex) {
termIndex = TermIndex.valueOf(-1, index);
}
+ if (index == -1) {
Review Comment:
termIndex will be null in new flow, pre-execute case which is before
pre-ratis transaction at leader node.
So to avoid any null pointer case, precaution check is added. This will be
cleaned-up after movement to new flow
--
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]