@@ -166,7 +166,7 @@ static boolean isNamespaceError(final Throwable t) {
166166 }
167167 }
168168
169- static boolean shouldAttemptToRetryRead (final RetryState retryState , final Throwable attemptFailure ) {
169+ static boolean loggingShouldAttemptToRetryRead (final RetryState retryState , final Throwable attemptFailure ) {
170170 assertFalse (attemptFailure instanceof ResourceSupplierInternalException );
171171 boolean decision = isRetryableException (attemptFailure )
172172 || (attemptFailure instanceof MongoSecurityException
@@ -178,7 +178,7 @@ static boolean shouldAttemptToRetryRead(final RetryState retryState, final Throw
178178 }
179179
180180 static boolean loggingShouldAttemptToRetryWriteAndAddRetryableLabel (final RetryState retryState , final Throwable attemptFailure ) {
181- Throwable attemptFailureNotToBeRetried = getAttemptFailureNotToRetryOrAddRetryableLabel (retryState , attemptFailure );
181+ Throwable attemptFailureNotToBeRetried = getWriteAttemptFailureNotToBeRetriedOrAddRetryableLabel (retryState , attemptFailure );
182182 boolean decision = attemptFailureNotToBeRetried == null ;
183183 if (!decision && retryState .attachment (AttachmentKeys .retryableCommandFlag ()).orElse (false )) {
184184 logUnableToRetry (
@@ -189,14 +189,14 @@ static boolean loggingShouldAttemptToRetryWriteAndAddRetryableLabel(final RetryS
189189 }
190190
191191 static boolean shouldAttemptToRetryWriteAndAddRetryableLabel (final RetryState retryState , final Throwable attemptFailure ) {
192- return getAttemptFailureNotToRetryOrAddRetryableLabel (retryState , attemptFailure ) != null ;
192+ return getWriteAttemptFailureNotToBeRetriedOrAddRetryableLabel (retryState , attemptFailure ) != null ;
193193 }
194194
195195 /**
196196 * @return {@code null} if the decision is {@code true}. Otherwise, returns the {@link Throwable} that must not be retried.
197197 */
198198 @ Nullable
199- private static Throwable getAttemptFailureNotToRetryOrAddRetryableLabel (final RetryState retryState , final Throwable attemptFailure ) {
199+ private static Throwable getWriteAttemptFailureNotToBeRetriedOrAddRetryableLabel (final RetryState retryState , final Throwable attemptFailure ) {
200200 Throwable failure = attemptFailure instanceof ResourceSupplierInternalException ? attemptFailure .getCause () : attemptFailure ;
201201 boolean decision = false ;
202202 MongoException exceptionRetryableRegardlessOfCommand = null ;
0 commit comments