mogilefs-client 3.6.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +214 -1
- data/GIT-VERSION-GEN +1 -1
- data/NEWS +47 -0
- data/lib/mogilefs/mogilefs.rb +12 -4
- data/lib/mogilefs/version.rb +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,5 +1,218 @@
|
|
1
|
-
ChangeLog from http://bogomips.org/mogilefs-client.git (v1.2.1..v3.
|
1
|
+
ChangeLog from http://bogomips.org/mogilefs-client.git (v1.2.1..v3.7.0)
|
2
2
|
|
3
|
+
commit 100f38dadcf472ebf75eb656b53c15071e4f616e
|
4
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
5
|
+
Date: Thu Jul 18 06:37:51 2013 +0000
|
6
|
+
|
7
|
+
Ruby mogilefs-client 3.7.0
|
8
|
+
|
9
|
+
MogileFS::MogileFS#each_key now accepts optional :after and :limit args
|
10
|
+
|
11
|
+
This allows easy iteration while respecting :after and :limit,
|
12
|
+
giving each_key an interface consistent with each_file_info.
|
13
|
+
|
14
|
+
commit 118db9865545c6879128e58390d15c6ba80be405
|
15
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
16
|
+
Date: Tue Jul 9 22:48:43 2013 +0000
|
17
|
+
|
18
|
+
client: each_key: accept optional :after and :limit args
|
19
|
+
|
20
|
+
This allows easy iteration while respecting :after and :limit.
|
21
|
+
This gives each_key an interface consistent with each_file_info.
|
22
|
+
|
23
|
+
commit 9d5770ea12d78c88e5accfbc12b81f8c3af4ed30
|
24
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
25
|
+
Date: Thu Feb 21 20:07:11 2013 +0000
|
26
|
+
|
27
|
+
Ruby mogilefs-client 3.6.0
|
28
|
+
|
29
|
+
We no longer send an empty zone= parameter in create_open
|
30
|
+
calls. Additionally, if we detect send() failure on a socket,
|
31
|
+
assume a tracker has been restarted and restart the request.
|
32
|
+
There are also some minor code cleanups.
|
33
|
+
|
34
|
+
commit 70c516713c2dfdfd4168b175db7b7642833ef585
|
35
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
36
|
+
Date: Thu Feb 21 20:11:54 2013 +0000
|
37
|
+
|
38
|
+
mysql: remove warning for assigned but unused variable
|
39
|
+
|
40
|
+
Note: this mysql component is still largely unmaintained.
|
41
|
+
|
42
|
+
commit e3690296de22902e87901c1dca9b10b4a59b7a44
|
43
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
44
|
+
Date: Thu Feb 21 20:10:43 2013 +0000
|
45
|
+
|
46
|
+
backend: fix variable shadow warning
|
47
|
+
|
48
|
+
This bug was only introduced in
|
49
|
+
commit 3c73f6b434a4c226c09e31c6ba3b034cb314b3fb
|
50
|
+
|
51
|
+
commit 3c73f6b434a4c226c09e31c6ba3b034cb314b3fb
|
52
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
53
|
+
Date: Tue Feb 5 21:57:59 2013 +0000
|
54
|
+
|
55
|
+
backend: retry all trackers on send failure
|
56
|
+
|
57
|
+
In single tracker configurations, a restarted tracker may cause
|
58
|
+
send()/write() failure on the TCP socket. Retry immediately in
|
59
|
+
this case, since there's no danger even for non-idempotent
|
60
|
+
tracker requests.
|
61
|
+
|
62
|
+
commit 3dd52026434fe89a1ef5110fc5fe568cdd4df819
|
63
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
64
|
+
Date: Thu Jan 17 03:55:23 2013 +0000
|
65
|
+
|
66
|
+
create_open: do not set empty zone= parameter
|
67
|
+
|
68
|
+
It's a small waste and adds to visual noise.
|
69
|
+
|
70
|
+
commit c0b3faa0922d895e6aafa9802df69649b1977eae
|
71
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
72
|
+
Date: Mon Dec 24 20:20:00 2012 +0000
|
73
|
+
|
74
|
+
test for size mismatch errors with IO.copy_stream
|
75
|
+
|
76
|
+
IO.copy_stream does not raise EOFError when specified
|
77
|
+
copy length is less than input size. Thus we must rely
|
78
|
+
on the MogileFS tracker to validate the input size.
|
79
|
+
|
80
|
+
commit de18522959de92865bb10582dd02276b3da8ae01
|
81
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
82
|
+
Date: Tue Dec 4 11:08:03 2012 +0000
|
83
|
+
|
84
|
+
mogilefs-client 3.5.0
|
85
|
+
|
86
|
+
client changes:
|
87
|
+
|
88
|
+
* new_file gains :create_open_args and :create_close_args which
|
89
|
+
allows custom arguments to be passed to plugins.
|
90
|
+
(this matches the Perl client behavior)
|
91
|
+
|
92
|
+
* new_file also gains :info hash which can be populated with
|
93
|
+
information normally retrieved with file_info
|
94
|
+
|
95
|
+
* users with net-http-persistent installed will see a small speed
|
96
|
+
boost and reduction of TIME_WAIT sockets when dealing with
|
97
|
+
small data (useful for testing DB-intensive parts of MogileFS).
|
98
|
+
|
99
|
+
No changes for admin.
|
100
|
+
|
101
|
+
commit 34ad5c7b88041d904435d86eb5c8335db5409f88
|
102
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
103
|
+
Date: Thu Nov 8 02:43:38 2012 +0000
|
104
|
+
|
105
|
+
new_file: don't pass private field to create_open
|
106
|
+
|
107
|
+
Avoid needless encoding and data transfer to the tracker.
|
108
|
+
|
109
|
+
commit 462cb6c0fdb2eca95f938a47d33e33691ec65f9a
|
110
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
111
|
+
Date: Wed Oct 31 19:49:47 2012 +0000
|
112
|
+
|
113
|
+
mogilefs-client 3.5.0-rc1
|
114
|
+
|
115
|
+
client changes:
|
116
|
+
|
117
|
+
* new_file gains :create_open_args and :create_close_args which
|
118
|
+
allows custom arguments to be passed to plugins.
|
119
|
+
|
120
|
+
* new_file also gains :info hash which can be populated with
|
121
|
+
information normally retrieved with file_info
|
122
|
+
|
123
|
+
* users with net-http-persistent installed will see a small speed
|
124
|
+
boost and reduction of TIME_WAIT sockets when dealing with
|
125
|
+
small data (useful for testing DB-intensive parts of MogileFS).
|
126
|
+
|
127
|
+
No changes for admin.
|
128
|
+
|
129
|
+
commit a8bc9cd0fce3169eccc67b191fdb40abfae59547
|
130
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
131
|
+
Date: Wed Oct 31 19:38:09 2012 +0000
|
132
|
+
|
133
|
+
net-http-persistent usage respects timeouts
|
134
|
+
|
135
|
+
We now have separate Net::HTTP::Persistent instances
|
136
|
+
between clients that may have different timeouts and
|
137
|
+
also between GET and PUT requests. This hurts our
|
138
|
+
ability to reuse sockets, but correctness is probably
|
139
|
+
more important.
|
140
|
+
|
141
|
+
commit 3e0b092efc2c5a5383a5d2063b830fe5d5e652f9
|
142
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
143
|
+
Date: Wed Oct 31 19:20:53 2012 +0000
|
144
|
+
|
145
|
+
test: fix some warnings found with "ruby -w -c"
|
146
|
+
|
147
|
+
Less noise should be better.
|
148
|
+
|
149
|
+
commit 9d4436bd418e6826372c7f2d05d3f41232d268c2
|
150
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
151
|
+
Date: Wed Oct 31 00:28:39 2012 +0000
|
152
|
+
|
153
|
+
avoid documenting internal constant (NHP)
|
154
|
+
|
155
|
+
Implementation details should remain private.
|
156
|
+
|
157
|
+
commit 9b1339dfe76e04e4a21d39301d2236859dc03bfd
|
158
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
159
|
+
Date: Tue Oct 30 23:12:10 2012 +0000
|
160
|
+
|
161
|
+
new_file: support create_open_args and create_close_args
|
162
|
+
|
163
|
+
This lets us send unsupported/new arguments to plugins
|
164
|
+
and matches the functionality of the Perl client library.
|
165
|
+
|
166
|
+
commit 42abd93b948881afe5c3e9d04ceb5f40fda4472c
|
167
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
168
|
+
Date: Tue Oct 30 21:41:01 2012 +0000
|
169
|
+
|
170
|
+
http_reader: improve robustness of header reading
|
171
|
+
|
172
|
+
It's possible for networks and servers to break up
|
173
|
+
even small HTTP headers. We also better enforce the
|
174
|
+
timeout if we too too long to write the request.
|
175
|
+
|
176
|
+
commit fe0d54c5be260fd1ff5e175869001052a3d379fa
|
177
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
178
|
+
Date: Wed Oct 24 08:18:21 2012 +0000
|
179
|
+
|
180
|
+
test: remove assert_nothing_raised checks
|
181
|
+
|
182
|
+
Tests fail anyways on uncaught exceptions, so
|
183
|
+
assert_nothing_raised only makes it harder to debug the problem
|
184
|
+
by swallowing the backtrace.
|
185
|
+
|
186
|
+
commit 2ce0b4a31bfae0b632d7ca031a52b24db7cc1b26
|
187
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
188
|
+
Date: Wed Oct 24 08:13:13 2012 +0000
|
189
|
+
|
190
|
+
new_file: delay keepalive sockopts until read
|
191
|
+
|
192
|
+
We don't need to set socket keepalive until we've successfully
|
193
|
+
written the request out and are awaiting a response.
|
194
|
+
|
195
|
+
commit 2cbeef0f29be4de815b802e705528b6f05d1bb29
|
196
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
197
|
+
Date: Wed Oct 24 07:27:18 2012 +0000
|
198
|
+
|
199
|
+
optionally use net-http-persistent for StringIO
|
200
|
+
|
201
|
+
Given StringIO objects are already in memory, NHP can make
|
202
|
+
small uploads which fit into memory faster. Large uploads
|
203
|
+
(using big_io or :largefile => :stream still go through
|
204
|
+
IO.copy_stream for now)
|
205
|
+
|
206
|
+
commit 231d1a91292f39d42df2317a2fe4eaa96fd68f41
|
207
|
+
Author: Eric Wong <normalperson@yhbt.net>
|
208
|
+
Date: Mon Oct 22 20:18:06 2012 +0000
|
209
|
+
|
210
|
+
new_file allows optional :info hash to be populated
|
211
|
+
|
212
|
+
This allows clients to avoid calling #file_info or #get_uris
|
213
|
+
immediate after uploading a file to MogileFS. This can speed
|
214
|
+
things up for cache-using clients with write-through caching.
|
215
|
+
|
3
216
|
commit c5d000337cdcbb15827258d6fd6b6830e8afcd59
|
4
217
|
Author: Eric Wong <normalperson@yhbt.net>
|
5
218
|
Date: Tue Oct 9 02:41:05 2012 +0000
|
data/GIT-VERSION-GEN
CHANGED
data/NEWS
CHANGED
@@ -1,3 +1,50 @@
|
|
1
|
+
=== Ruby mogilefs-client 3.7.0 / 2013-07-18 06:40 UTC
|
2
|
+
|
3
|
+
MogileFS::MogileFS#each_key now accepts optional :after and :limit args
|
4
|
+
|
5
|
+
This allows easy iteration while respecting :after and :limit,
|
6
|
+
giving each_key an interface consistent with each_file_info.
|
7
|
+
|
8
|
+
=== Ruby mogilefs-client 3.6.0 / 2013-02-21 20:33 UTC
|
9
|
+
|
10
|
+
We no longer send an empty zone= parameter in create_open
|
11
|
+
calls. Additionally, if we detect send() failure on a socket,
|
12
|
+
assume a tracker has been restarted and restart the request.
|
13
|
+
There are also some minor code cleanups.
|
14
|
+
|
15
|
+
=== mogilefs-client 3.5.0 / 2012-12-04 11:09 UTC
|
16
|
+
|
17
|
+
client changes:
|
18
|
+
|
19
|
+
* new_file gains :create_open_args and :create_close_args which
|
20
|
+
allows custom arguments to be passed to plugins.
|
21
|
+
(this matches the Perl client behavior)
|
22
|
+
|
23
|
+
* new_file also gains :info hash which can be populated with
|
24
|
+
information normally retrieved with file_info
|
25
|
+
|
26
|
+
* users with net-http-persistent installed will see a small speed
|
27
|
+
boost and reduction of TIME_WAIT sockets when dealing with
|
28
|
+
small data (useful for testing DB-intensive parts of MogileFS).
|
29
|
+
|
30
|
+
No changes for admin.
|
31
|
+
|
32
|
+
=== mogilefs-client 3.5.0-rc1 / 2012-10-31 19:53 UTC
|
33
|
+
|
34
|
+
client changes:
|
35
|
+
|
36
|
+
* new_file gains :create_open_args and :create_close_args which
|
37
|
+
allows custom arguments to be passed to plugins.
|
38
|
+
|
39
|
+
* new_file also gains :info hash which can be populated with
|
40
|
+
information normally retrieved with file_info
|
41
|
+
|
42
|
+
* users with net-http-persistent installed will see a small speed
|
43
|
+
boost and reduction of TIME_WAIT sockets when dealing with
|
44
|
+
small data (useful for testing DB-intensive parts of MogileFS).
|
45
|
+
|
46
|
+
No changes for admin.
|
47
|
+
|
1
48
|
=== Ruby mogilefs-client 3.4.0 / 2012-10-09 03:06 UTC
|
2
49
|
|
3
50
|
Admin speedups for get_domains, get_hosts, and get_devices.
|
data/lib/mogilefs/mogilefs.rb
CHANGED
@@ -84,11 +84,19 @@ class MogileFS::MogileFS < MogileFS::Client
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Enumerates keys, limited by optional +prefix+
|
87
|
-
|
88
|
-
|
87
|
+
# +args+ may also be specified for an optional +:limit+
|
88
|
+
# and +:after+ (default: nil)
|
89
|
+
def each_key(prefix = "", args = nil, &block)
|
90
|
+
after = limit = nil
|
91
|
+
if args
|
92
|
+
after = args[:after]
|
93
|
+
limit = args[:limit]
|
94
|
+
end
|
89
95
|
begin
|
90
|
-
keys, after = list_keys(prefix, after, 1000, &block)
|
91
|
-
|
96
|
+
keys, after = list_keys(prefix, after, limit || 1000, &block)
|
97
|
+
return unless keys && keys[0]
|
98
|
+
limit -= keys.size if limit
|
99
|
+
end while limit == nil || limit > 0
|
92
100
|
nil
|
93
101
|
end
|
94
102
|
|
data/lib/mogilefs/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
MogileFS::VERSION = '3.
|
1
|
+
MogileFS::VERSION = '3.7.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mogilefs-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|