dlmarion commented on code in PR #5170:
URL: https://github.com/apache/accumulo/pull/5170#discussion_r1894237253
##########
server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java:
##########
@@ -458,6 +460,27 @@ private void write(final Collection<CommitSession>
sessions, boolean mincFinish,
// the logs haven't changed.
final int finalCurrent = currentLogId;
if (!success) {
+ final ServiceLock tabletServerLock = tserver.getLock();
+ if (sawWriteFailure && tabletServerLock != null) {
Review Comment:
Looks like I was trying to prevent a NPE and ended up changing the logic. I
will fix.
--
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]