embulk-output-azure_blob_storage 0.1.6 → 0.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91f151194182d73b78ec9b2b82ab9647b10678d0
|
4
|
+
data.tar.gz: cb78773244114d953c9f5b377fe3cc58ef1d4972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e14c9a755cb3ad1c5fae3ffe0e13cd74a3f926ef97218ab05cc41a990f6de1090c97ed309030615dcd3c6a08788aa90694d427ae37ea50ca0563737af8e62a4
|
7
|
+
data.tar.gz: 79f11b084a54773c1ebb56916f7977fb7714bd8a6dd9166ada5fa12a69e4c9bc0b4ccd13636869057fc985f88dfa66f3f246c00bf8444455bf6f1b76c19d054d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
## 0.1.7 - 2018-10-19
|
2
|
+
* [maintenance] Close BufferedInputStream before delete temporary file [#14](https://github.com/sakama/embulk-output-azure_blob_storage/pull/14)
|
3
|
+
|
1
4
|
## 0.1.6 - 2018-10-18
|
2
|
-
* [maintenance]
|
5
|
+
* [maintenance] Fix bug that happens while deleting temporary files on Windows [#12](https://github.com/sakama/embulk-output-azure_blob_storage/pull/12)
|
3
6
|
|
4
7
|
## 0.1.5 - 2016-04-06
|
5
8
|
|
data/build.gradle
CHANGED
data/src/main/java/org/embulk/output/azure_blob_storage/AzureBlobStorageFileOutputPlugin.java
CHANGED
@@ -162,7 +162,7 @@ public class AzureBlobStorageFileOutputPlugin
|
|
162
162
|
suffix = "." + suffix;
|
163
163
|
}
|
164
164
|
filePath = pathPrefix + String.format(sequenceFormat, taskIndex, fileIndex) + suffix;
|
165
|
-
file = Exec.getTempFileSpace().createTempFile(filePath, "
|
165
|
+
file = Exec.getTempFileSpace().createTempFile(filePath, "tmp");
|
166
166
|
log.info("Writing local file {}", file.getAbsolutePath());
|
167
167
|
output = new BufferedOutputStream(new FileOutputStream(file));
|
168
168
|
}
|
@@ -220,10 +220,14 @@ public class AzureBlobStorageFileOutputPlugin
|
|
220
220
|
CloudBlobContainer container = client.getContainerReference(containerName);
|
221
221
|
CloudBlockBlob blob = container.getBlockBlobReference(filePath);
|
222
222
|
log.info("Upload start {} to {}", file.getAbsolutePath(), filePath);
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
223
|
+
try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(file))) {
|
224
|
+
blob.upload(in, file.length());
|
225
|
+
log.info("Upload completed {} to {}", file.getAbsolutePath(), filePath);
|
226
|
+
}
|
227
|
+
if (file.exists()) {
|
228
|
+
if (!file.delete()) {
|
229
|
+
log.warn("Couldn't delete local file " + file.getAbsolutePath());
|
230
|
+
}
|
227
231
|
}
|
228
232
|
return null;
|
229
233
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-azure_blob_storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Satoshi Akama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,8 +65,8 @@ files:
|
|
65
65
|
- classpath/azure-storage-8.0.0.jar
|
66
66
|
- classpath/guava-20.0.jar
|
67
67
|
- classpath/azure-keyvault-core-1.0.0.jar
|
68
|
+
- classpath/embulk-output-azure_blob_storage-0.1.7.jar
|
68
69
|
- classpath/jackson-core-2.9.4.jar
|
69
|
-
- classpath/embulk-output-azure_blob_storage-0.1.6.jar
|
70
70
|
homepage: https://github.com/embulk/embulk-output-azure_blob_storage
|
71
71
|
licenses:
|
72
72
|
- Apache-2.0
|