@VisibleForTesting boolean notifySharedCacheManager(String checksumVal, String fileName) throws IOException { try { SCMUploaderNotifyRequest request = recordFactory.newRecordInstance(SCMUploaderNotifyRequest.class); request.setResourceKey(checksumVal); request.setFilename(fileName); return scmClient.notify(request).getAccepted(); } catch (YarnException e) { throw new IOException(e); } catch (UndeclaredThrowableException e) { // retrieve the cause of the exception and throw it as an IOException throw new IOException(e.getCause() == null ? e : e.getCause()); } } }
@VisibleForTesting boolean notifySharedCacheManager(String checksumVal, String fileName) throws IOException { try { SCMUploaderNotifyRequest request = recordFactory.newRecordInstance(SCMUploaderNotifyRequest.class); request.setResourceKey(checksumVal); request.setFilename(fileName); return scmClient.notify(request).getAccepted(); } catch (YarnException e) { throw new IOException(e); } catch (UndeclaredThrowableException e) { // retrieve the cause of the exception and throw it as an IOException throw new IOException(e.getCause() == null ? e : e.getCause()); } } }
@VisibleForTesting boolean notifySharedCacheManager(String checksumVal, String fileName) throws IOException { try { SCMUploaderNotifyRequest request = recordFactory.newRecordInstance(SCMUploaderNotifyRequest.class); request.setResourceKey(checksumVal); request.setFilename(fileName); return scmClient.notify(request).getAccepted(); } catch (YarnException e) { throw new IOException(e); } catch (UndeclaredThrowableException e) { // retrieve the cause of the exception and throw it as an IOException throw new IOException(e.getCause() == null ? e : e.getCause()); } } }
@VisibleForTesting boolean notifySharedCacheManager(String checksumVal, String fileName) throws IOException { try { SCMUploaderNotifyRequest request = recordFactory.newRecordInstance(SCMUploaderNotifyRequest.class); request.setResourceKey(checksumVal); request.setFilename(fileName); return scmClient.notify(request).getAccepted(); } catch (YarnException e) { throw new IOException(e); } catch (UndeclaredThrowableException e) { // retrieve the cause of the exception and throw it as an IOException throw new IOException(e.getCause() == null ? e : e.getCause()); } } }