/** * Determine if a throwable or a cause in its causal chain is a Stale NFS * File Handle * * @param throwable * a {@link java.lang.Throwable} object. * @return a boolean true if the throwable or a cause in its causal chain is * a Stale NFS File Handle * @since 4.7 */ public static boolean isStaleFileHandleInCausalChain(Throwable throwable) { while (throwable != null) { if (throwable instanceof IOException && isStaleFileHandle((IOException) throwable)) { return true; } throwable = throwable.getCause(); } return false; }
return; } catch (IOException e) { if (FileUtils.isStaleFileHandle(e) && retries < maxStaleRetries) { if (LOG.isDebugEnabled()) {
/** * Determine if a throwable or a cause in its causal chain is a Stale NFS * File Handle * * @param throwable * a {@link java.lang.Throwable} object. * @return a boolean true if the throwable or a cause in its causal chain is * a Stale NFS File Handle * @since 4.7 */ public static boolean isStaleFileHandleInCausalChain(Throwable throwable) { while (throwable != null) { if (throwable instanceof IOException && isStaleFileHandle((IOException) throwable)) { return true; } throwable = throwable.getCause(); } return false; }
ObjectId.fromRaw(digest.digest())); } catch (IOException e) { if (FileUtils.isStaleFileHandle(e) && retries < maxStaleRetries) { if (LOG.isDebugEnabled()) { LOG.debug(MessageFormat.format(
removePack(p); } else if (FileUtils.isStaleFileHandle(e)) { warnTmpl = JGitText.get().packHandleIsStale; removePack(p);
return; } catch (IOException e) { if (FileUtils.isStaleFileHandle(e) && retries < maxStaleRetries) { if (LOG.isDebugEnabled()) {