fluent-plugin-aliyunoss 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-aliyunoss.gemspec +1 -1
- data/lib/fluent/plugin/out_aliyunoss.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a0950bff68f15bd78b770624c723b83aeb28271
|
4
|
+
data.tar.gz: df8e802b39896614b4f90f916dd61e3349fbeb87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e582441fa75a1546df89e21d4953f1187d514b6c7b7452ad1b0ae4f84bd31923e8cd434e15e9e1f622ddaffa3d79808aec22f1d1c35bd7bf22cb8bd4607fef88
|
7
|
+
data.tar.gz: a5d7f8cae1002f4d8941b24fde46528474dfb0ccceb09ec72a823acdb426bf664a8d9a9d4a18f5e3aae89233fb6c1d84cc54fb1ea89e05414a8fa876caf8dab1
|
@@ -72,7 +72,6 @@ module Fluent
|
|
72
72
|
File::symlink(chunk_path, fake_path)
|
73
73
|
|
74
74
|
command = "java -jar /orc-tools.jar convert -o #{output_path} #{fake_path}"
|
75
|
-
log.debug "cmd: #{command}"
|
76
75
|
res = system command
|
77
76
|
unless res
|
78
77
|
raise "failed to execute java -jar /orc-tools.jar command. status = #{$?}"
|
@@ -130,10 +129,10 @@ module Fluent
|
|
130
129
|
def write(chunk)
|
131
130
|
begin
|
132
131
|
f = Tempfile.new('oss-')
|
132
|
+
output_path = f.path
|
133
133
|
compress(chunk, f)
|
134
134
|
path = process_object_key_format(chunk, "#{@oss_path}.#{@store_as}")
|
135
|
-
|
136
|
-
raise "Upload #{f.path} failed" unless @bucket.resumable_upload(path, f.path)
|
135
|
+
raise "Upload #{output_path} failed" unless @bucket.resumable_upload(path, output_path)
|
137
136
|
ensure
|
138
137
|
f.close(true)
|
139
138
|
end
|