bsm / bfs.rb Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
When writing a file for upload to S3 exceptions in the file writing process are ignored, causing incomplete files to be uploaded to S3. Unless specifically requested otherwise, e.g. for a stream writer where getting some data up is better than no data, any exception in the Tempwriter should cause feed upload to be abandoned.
https://github.com/bsm/bfs.rb/blob/master/s3/lib/bfs/bucket/s3.rb#L94
There is also similar logic in FeedX so it may be that this needs to be fixed in 2 places.
https://github.com/bsm/bfs.rb/blob/master/s3/lib/bfs/bucket/s3.rb#L159
BFS.register('s3') do |url|
params = CGI.parse(url.query.to_s)
BFS::Bucket::S3.new url.host,
region: params.key?('region') ? params['region'].first : nil,
sse: params.key?('sse') ? params['sse'].first : nil,
access_key_id: params.key?('access_key_id') ? params['access_key_id'].first : nil,
secret_access_key: params.key?('secret_access_key') ? params['secret_access_key'].first : nil,
acl: params.key?('acl') ? params['acl'].first : nil,
storage_class: params.key?('storage_class') ? params['storage_class'].first : nil
end
I'd say, let's do smth like attrs.compact
there?
This way, it will be consistent with AWS gem(s), which can accept ENV vars like access/secret key.
I can PR it (but without the .compact
method unless activesupport is included here), should I?
When stdout returns a large amount of data it may be split into multiple on_data
responses. When that happens a line may be split between 2 on_data calls. We're processing each of these blocks individually, which causes us to have unexpected data at the boundaries. We will likely need to buffer the data and only process based on newline boundaries.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.