embulk-output-sftp 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 429f131e8ee696e9543c77900ba06e550b7bf9db
4
- data.tar.gz: e43a2290c0d7e8b18bee5af81656f688d94e5dd4
3
+ metadata.gz: 40a3cc8b06b682fe155dc167c0e0fd997a18b4a5
4
+ data.tar.gz: 1a0ef68bdb08197ce77cb6e4e897fb05121b142a
5
5
  SHA512:
6
- metadata.gz: b126f0b957da348b95622b331e83b62238fccc5ed0768aefa8f626eb895335eee4ed5c1bdb5420655a64fd4ba1cdc43a9c902ec28ba70a09f9d56527c8b5581f
7
- data.tar.gz: c41dd77673baa74ff9aad663ac28ebe71ffae50cafcf921a3970bbbdc57ec5b5e4f989fb571fdf680b5724b6c0482316908ad5be295ee1db95f7021a2edee828
6
+ metadata.gz: 378b46609dffc450f10602326e88676f75f29f05b3436dffebaa6722004cff6799a361beb39de318ffaf076908ee00719cdadcedbb29eee1fac97a1a2b33111b
7
+ data.tar.gz: 2f383b02a595884182b58ebb36ce3c5b4e804d00ce1f6575cd67099094c5c85f48ec33c2b50bdc070c1d6e80d8e7ce29bc4736b71e45ee43107f94b84cc8f0c8
data/build.gradle CHANGED
@@ -14,7 +14,7 @@ configurations {
14
14
  provided
15
15
  }
16
16
 
17
- version = "0.0.3"
17
+ version = "0.0.4"
18
18
  sourceCompatibility = 1.7
19
19
  targetCompatibility = 1.7
20
20
 
@@ -218,11 +218,13 @@ public class SftpFileOutput
218
218
  logger.warn("failed to connect sftp server: " + e.getMessage(), e);
219
219
 
220
220
  try {
221
- Thread.sleep(count * 1000); // milliseconds
221
+ long sleepTime = ((long) Math.pow(2, count) * 1000);
222
+ logger.warn("sleep in next connection retry: {} milliseconds", sleepTime);
223
+ Thread.sleep(sleepTime); // milliseconds
222
224
  }
223
225
  catch (InterruptedException e1) {
224
- // Ignore this exception
225
- logger.warn(e.getMessage(), e);
226
+ // Ignore this exception because this exception is just about `sleep`.
227
+ logger.warn(e1.getMessage(), e1);
226
228
  }
227
229
  logger.warn("retry to connect sftp server: " + count + " times");
228
230
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-sftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Civitaspo
@@ -64,7 +64,7 @@ files:
64
64
  - src/test/resources/id_rsa.pub
65
65
  - classpath/commons-logging-1.2.jar
66
66
  - classpath/commons-vfs2-2.1.1660580.2.jar
67
- - classpath/embulk-output-sftp-0.0.3.jar
67
+ - classpath/embulk-output-sftp-0.0.4.jar
68
68
  - classpath/jsch-0.1.53.jar
69
69
  homepage: https://github.com/civitaspo/embulk-output-sftp
70
70
  licenses:
Binary file