Ticket #329: dict.2.txt

File dict.2.txt, 19.5 KB (added by kevan, at 2009-07-05T01:14:09Z)
Line 
1Sat Jul  4 17:59:41 PDT 2009  kevan@isnotajoke.com
2  * Add CachingDict dictionary subclass to dirnode.py
3
4New patches:
5
6[Add CachingDict dictionary subclass to dirnode.py
7kevan@isnotajoke.com**20090705005941
8 Ignore-this: 2959ab86af5a6a4aa81227c4a6c391d8
9] hunk ./src/allmydata/dirnode.py 24
10 from allmydata.uri import NewDirectoryURI, LiteralFileURI, from_string
11 from pycryptopp.cipher.aes import AES
12 
13+class CachingDict(dict):
14+    def __init__(self, *args):
15+        super(CachingDict, self).__init__(args)
16+        self.serialized = {}
17+
18+    def __setitem__(self, k, v):
19+        super(CachingDict, self).__setitem__(k, v)
20+        self.serialized[k] = None
21+
22+    def get_both_items(self, k):
23+        return (self.serialized.setdefault(k, None),
24+                super(CachingDict, self).__getitem__(k))
25+
26+    def set_both_items(self, key, serialized, t):
27+        self.serialized[key] = serialized
28+        super(CachingDict, self).__setitem__(key, t)
29+
30 class Deleter:
31     def __init__(self, node, name, must_exist=True):
32         self.node = node
33
34Context:
35
36[update NEWS to cover all recent changes, sort by end-user importance
37Brian Warner <warner@lothar.com>**20090703014303
38 Ignore-this: 6ddac78075d7547a19712d505818949c
39]
40[Tolerate unknown URI types in directory structures. Part of #683.
41Brian Warner <warner@lothar.com>**20090703010749
42 Ignore-this: afd0e15e2e39d3b87743ec7ccd87054d
43 
44 The idea is that future versions of Tahoe will add new URI types that this
45 version won't recognize, but might store them in directories that we *can*
46 read. We should handle these "objects from the future" as best we can.
47 Previous releases of Tahoe would just explode. With this change, we'll
48 continue to be able to work with everything else in the directory.
49 
50 The code change is to wrap anything we don't recognize as an UnknownNode
51 instance (as opposed to a FileNode or DirectoryNode). Then webapi knows how
52 to render these (mostly by leaving fields blank), deep-check knows to skip
53 over them, deep-stats counts them in "count-unknown". You can rename and
54 delete these things, but you can't add new ones (because we wouldn't know how
55 to generate a readcap to put into the dirnode's rocap slot, and because this
56 lets us catch typos better).
57]
58[test_client.py: minor refactoring of BASECONFIG usage
59Brian Warner <warner@lothar.com>**20090703005450
60 Ignore-this: bf19b9ae7edeab293068cce2368f9364
61]
62[create_node_from_uri: take both writecap+readcap, move logic out of dirnode.py
63Brian Warner <warner@lothar.com>**20090702222537
64 Ignore-this: 93051498076e90d3f1dc85161ce8247a
65]
66[dirnode.py: prepare to preserve both rwcap+rocap when copying
67Brian Warner <warner@lothar.com>**20090702211254
68 Ignore-this: f128c02da32f86d7e39527a35dfc2e02
69 
70 This will make it easier to tolerate unknown nodes safely.
71]
72[interfaces.py: wrap some lines to 80cols
73Brian Warner <warner@lothar.com>**20090702015728
74 Ignore-this: e2c777c1e89a684b43ceabeb0042456c
75]
76[cli: webopen: when called with no arguments, open the Welcome page
77Brian Warner <warner@lothar.com>**20090701200548
78 Ignore-this: ae7d6cb42165d0c751926065378343dd
79]
80[mutable repairer: skip repair of readcaps instead of throwing an exception.
81Brian Warner <warner@lothar.com>**20090701011343
82 Ignore-this: 2c24493426cdc1db8f0e3815ee2c5f87
83 This should improve the behavior of #625 a bit: at least all the files will
84 get repaired.
85]
86[interfaces.py: improve ICheckAndRepairResults docs a bit
87Brian Warner <warner@lothar.com>**20090701001925
88 Ignore-this: 3a57acfee3487c1e071e135743e42c2a
89]
90[repairer.py: wrap to 80cols. No code changes.
91Brian Warner <warner@lothar.com>**20090701000047
92 Ignore-this: 4a84ac95a849be0656d362882876082a
93]
94[setup: require pycryptopp>=0.5.14 if on Windows and with Python>=2.6
95zooko@zooko.com**20090630184807
96 Ignore-this: f7e9beeb5d5613a7c0ffed14d1dda3c6
97]
98[edit NEWS
99Brian Warner <warner@lothar.com>**20090630174115
100 Ignore-this: c4461a2304fcd45bee95e11418693a18
101]
102[NEWS: list all user-visible changes since 1.4.1 . Needs lots of editing.
103Brian Warner <warner@lothar.com>**20090630170734
104 Ignore-this: f606a5d678d0db8065b9f84e796d59b0
105]
106[* find-trailing-spaces.py: exit rc=1 if whitespace found, to be a pre-commit hook
107Brian Warner <warner@lothar.com>**20090629224658
108 Ignore-this: 1465becc923ee04d170e5ee791cf605e
109]
110[use 522-bit RSA keys in all unit tests (except one)
111Brian Warner <warner@lothar.com>**20090629223124
112 Ignore-this: 7a4c3685683ff9da5ceb2d8cb7b19b7
113 
114 This reduces the total test time on my laptop from 400s to 283s.
115 * src/allmydata/test/test_system.py (SystemTest.test_mutable._test_debug):
116   Remove assertion about container_size/data_size, this changes with keysize
117   and was too variable anyways.
118 * src/allmydata/mutable/filenode.py (MutableFileNode.create): add keysize=
119 * src/allmydata/dirnode.py (NewDirectoryNode.create): same
120 * src/allmydata/client.py (Client.DEFAULT_MUTABLE_KEYSIZE): add default,
121   this overrides the one in MutableFileNode
122]
123[remove trailing whitespace
124Brian Warner <warner@lothar.com>**20090629200358
125 Ignore-this: 7a3756618dcfca0a40acb4c3d15f6440
126]
127[remove trailing whitespace from some util classes
128Brian Warner <warner@lothar.com>**20090629200341
129 Ignore-this: ded84c38885d6aabf2691957dde82bf3
130]
131[repairer: raise a better exception when faced with a readonly filenode. Still
132Brian Warner <warner@lothar.com>**20090626063230
133 Ignore-this: a100005b973a6a57566b943073352828
134 produces an error, though.
135]
136[mutable/filenode.py: set _writekey to None, rather than leaving it missing
137Brian Warner <warner@lothar.com>**20090626062022
138 Ignore-this: be111c37dabd6c7aa47abd7bf160926e
139 
140 This will at least turn the really really weird error when a repair of a
141 readonly mutable file is attempted into a merely really weird assertion that
142 mentions "repair currently requires a writecap".
143]
144[one last tweak
145Brian Warner <warner@lothar.com>**20090626052627
146 Ignore-this: 8d9d045a1ebe774aeed6f7e1cdd36973
147]
148[more 'tahoe cp' docs tweaks
149Brian Warner <warner@lothar.com>**20090626051652
150 Ignore-this: f594c395007af64da3d7302943ef8855
151]
152[cli.py: minor tweaks to test posthooks
153"Brian Warner <warner@lothar.com>"**20090626024557]
154[cli.py: update comments on 'tahoe cp' --help a bit
155Brian Warner <warner@lothar.com>**20090626023837
156 Ignore-this: 4090b06896542fbf260d808e8a991cea
157]
158[cli: add some --help text to 'tahoe cp'
159warner@lothar.com**20090625235751]
160[make it possible to add/renew-lease from the WUI
161Brian Warner <warner@lothar.com>**20090626061824
162 Ignore-this: 6fb6a0e8ecfc630464ac37a779078e5
163 add add/renew-lease checkbox on the "more info" page check/deep-check forms
164]
165[hush pyflakes
166warner@lothar.com**20090625021809]
167[Split out NoSharesError, stop adding attributes to NotEnoughSharesError, change humanize_failure to include the original exception string, update tests, behave better if humanize_failure fails.
168warner@lothar.com**20090625021707]
169[remove introducer/old.py, will create something similar when the RIIntroducer changes
170warner@lothar.com**20090624194038]
171[Basically just a trivial platform detection patch for NetBSD.
172midnightmagic@example.com**20090617233647]
173[check_grid.py: print stderr when a subcommand fails
174warner@lothar.com**20090623022833]
175[big rework of introducer client: change local API, split division of responsibilites better, remove old-code testing, improve error logging
176warner@lothar.com**20090623021047]
177[web/welcome.xhtml: remove trailing whitespace
178warner@lothar.com**20090623020909]
179[rrefutil: add trap_deafref utility, to make the callRemote-plus-ignore-DeadReferenceError-plug-log-other-errors pattern easier
180warner@lothar.com**20090623020826]
181[PollMixin: snoop trial's error observer to halt the test early if an error is seen. This turns a lot of timeouts into fast failures.
182warner@lothar.com**20090623020731]
183[clean up storage_broker interface: should fix #732
184warner@lothar.com**20090621235119
185 Ignore-this: fb93cd670e809eed2bc123142dd8d4ff
186]
187[hush pyflakes with recent FileTooLarge removal
188warner@lothar.com**20090621231757
189 Ignore-this: 4231b38c7e9091b0577b07ec99ac2df0
190]
191[add docs/proposed/GridID.txt (cleaning out some of my old branches)
192warner@lothar.com**20090621191204]
193[docs: remove warning about inability to build modules on py2.6 on Windows with mingw, differentiate between clients and servers, reflow to a consistent column width (79), add hint about firewall/NAT docs.
194zooko@zooko.com**20090621175005
195 Ignore-this: 85e7c1ccb258317ca4dd37917afb48f5
196]
197[setup: copy in misc/show-tools-version.py from zfec -- it prints out platform and setuptools versions
198zooko@zooko.com**20090621055846
199 Ignore-this: 4e144886ab02414bbaaf0295ce2b337
200]
201[docs: start updating the NEWS and relnotes.txt files, add Kevan to CREDITS
202zooko@zooko.com**20090621055114
203 Ignore-this: 35e05a5739549ffa693d55df51ffcfd
204]
205[change max filesize limit tests
206kevan@isnotajoke.com**20090620212822
207 Ignore-this: 38e7c62a308c3c93e79df4bf72f4f675
208 
209 Instead of testing to see that the previous SDMF filesize limit was being
210 obeyed, we now test to make sure that we can insert files larger than that
211 limit.
212]
213[remove upper limit on SDMF filesize
214kevan@isnotajoke.com**20090620213130
215 Ignore-this: 5bc48c7421c73827909a17e651799d0c
216]
217[immutable/download: instrument do-you-have-block responses to investigate #732
218warner@lothar.com**20090621041209]
219[Makefile: add jaunty support, rearrange debian sections in order of release
220warner@lothar.com**20090618050502]
221[test_util: add known-answer tests for hashutil tags
222warner@lothar.com**20090618045709]
223[tests: bump up a timeout that expired on Zandr's box
224zooko@zooko.com**20090613195703
225 Ignore-this: 853000f43665396b3734a99f72bd472d
226]
227[util: hooray!  A clean implementation of this simple utility!  Black Dew pointed out that the inverse of time.gmtime() is hidden in the "calendar" module.
228zooko@zooko.com**20090613160112
229 Ignore-this: 8359cc48ca1b8e2793e8b2afe2050cf4
230]
231[util: Brian's horrible hack to figure out how much localtime and utctime differ.  Now we'll see if it works on Windows.
232zooko@zooko.com**20090612204556
233 Ignore-this: 8c36431da4707da76472956c7750ecbd
234]
235[util: oops, time.tzset() doesn't work on Windows -- hopefully the new "London" unit test passes on Windows when we skip tzset() on platforms that don't have it
236zooko@zooko.com**20090612000920
237 Ignore-this: 7d314b8334cfa3f65f9635e3d3eb727e
238]
239[setup: edit install.html to warn Windows users away from Python v2.6
240zooko@zooko.com**20090611225506
241 Ignore-this: 89ad63eab49ede883ef92f2de5b5fc54
242]
243[util: fix time_format.iso_utc_time_to_seconds() so that it works even in London
244zooko@zooko.com**20090611221129
245 Ignore-this: 14dbb9840587797f848226fdb3645c08
246]
247[setup: run the same "make quicktest" on Windows as on non-Windows
248zooko@zooko.com**20090611193214
249 Ignore-this: d0c78377d3892373ec3d91e9e98bd8bd
250 I checked and it behaves about as well on Windows as the previous version did.
251]
252[tests: significantly increase timeouts that triggered on Zandr's ARM box
253zooko@zooko.com**20090610161043
254 Ignore-this: 2b3c556c5166a8267b4b15664d3aadfb
255]
256[test: multiple by 10 or so all timeouts that Zandr's ARM box just overran
257zooko@zooko.com**20090610125639
258 Ignore-this: bf62f063ab46814fd78de55a5fbc9d84
259]
260[tests: bump up timeout on a test that timed out on draco
261zooko@zooko.com**20090610044628
262 Ignore-this: f598b98cbae44dc947937c6ca54c10cb
263]
264[tests: raise the timeout for test_cli since Zandr's ARM machine totally burst through the old one
265zooko@zooko.com**20090609210509]
266[test_cli.Backup: increase timeout massively, it takes 1200s on zandr's ARM linkstation
267warner@lothar.com**20090609052801]
268[tests: double the timeouts on some tests which time-out on Francois's box
269zooko@zooko.com**20090609021753
270 Ignore-this: b2727b04402f24a9b9123d2f84068106
271]
272[tests: bump up timeouts so that the tests can finish before timeout on Francois's little arm box
273zooko@zooko.com**20090608225557
274 Ignore-this: fb83698338b2f12546cd3e1dcb896d34
275]
276[tests: increase timeouts on some other tests that timed-out on Francois's arm box
277zooko@zooko.com**20090605143437
278 Ignore-this: 2903cc20d914fc074c8d7a6c47740ba6
279]
280[tests: bump up the timeout on a bunch of tests that took longer than the default timeout (120s) on François Lenny-armv5tel
281zooko@zooko.com**20090605031444
282 Ignore-this: 84d67849b1f8edc88bf7001e31b5f7f3
283]
284[backup: remove the --no-backupdb command, the handling of "can't import sqlite", and the related tests, and change an error message to more correctly indicate failure to load the database from disk rather than failure to import sqlite module
285zooko@zooko.com**20090604173131
286 Ignore-this: 8200a9fdfc49243c280ecd1d0c44fa19
287 Fixes #728.
288]
289[setup: require pysqlite >= v2.0.5. if we are running on Python < 2.5
290zooko@zooko.com**20090604154548
291 Ignore-this: cf04f46079821df209d01dad2e24b40b
292]
293[setup: add pysqlite and sqlite to get_package_versions()
294zooko@zooko.com**20090604153728
295 Ignore-this: a1dea7fabeab2b08fb0d8d462facdb4d
296]
297[more refactoring: move get_all_serverids() and get_nickname_for_serverid() from Client to storage_broker
298warner@lothar.com**20090602030750]
299[more storage_broker refactoring: downloader gets a broker instead of a client,
300warner@lothar.com**20090602022511
301 use Client.get_storage_broker() accessor instead of direct attribute access.
302]
303[test_runner.py: remove test_client_no_noise: the issue in question is
304warner@lothar.com**20090601225007
305 ticketed in http://divmod.org/trac/ticket/2830 and doesn't need a Tahoe-side
306 change, plus this test fails on win32 for unrelated reasons (and test_client
307 is the place to think about the win32 issue).
308]
309[remove plaintext-hashing code from the helper interface, to close #722
310warner@lothar.com**20090601224916
311 and deny the Helper the ability to mount a partial-information-guessing
312 attack. This will probably break compatibility between new clients and very
313 old (pre-1.0) helpers.
314]
315[start to factor server-connection-management into a distinct 'StorageServerFarmBroker' object, separate from the client and the introducer. This is the starting point for #467: static server selection
316warner@lothar.com**20090601210604]
317[mutable: catch and display first error, so code bugs which break all servers get displayed better
318warner@lothar.com**20090601210407]
319[misc/run-with-pythonpath.py: exec() the child (on unix), to remove the intermediate process
320warner@lothar.com**20090601210137]
321[docs: small edit to about.html
322zooko@zooko.com**20090528233422
323 Ignore-this: 1cfbb1f8426ed6d63b2d3952e4464ddc
324]
325[docs: add links to Tahoe-LAFS for Paranoids and Tahoe-LAFS for Corporates in about.html
326zooko@zooko.com**20090528232717
327 Ignore-this: 7b70baa700d6b6f6e9ceec4132efe5
328]
329[docs: edit about.html and include network-and-reliance-topology.png (loaded from http://allmydata.org )
330zooko@zooko.com**20090527150916
331 Ignore-this: 44adc61cde8ced8be2f0a7dfc7d95dad
332]
333[docs: a few more edits to network-and-reliance-topology.svg
334zooko@zooko.com**20090527150458
335 Ignore-this: 2eac8c33fe71be25ff809b399c6193c1
336]
337[docs: update network-and-reliance-topology.svg for beauty and clarity
338zooko@zooko.com**20090527031123
339 Ignore-this: 5510914849771900ac29b4312470d84
340]
341[docs: update NEWS, relnotes.txt, CREDITS to mention WUI Style
342zooko@zooko.com**20090526233654
343 Ignore-this: 72d16ec833bc4a22af23d29ea1d5ff8b
344]
345[Modify markup of Tahoe web pages to be more amenable to styling; some minor changes of wording.
346Kevin Reid <kpreid@mac.com>**20090526232545
347 Ignore-this: 8845937f0df6c7ddc07abe3211428a6f
348]
349[Tweak wording in directory page: not-read-only is "modifiable", mention creating a directory _in this directory_.
350Kevin Reid <kpreid@mac.com>**20090526232414
351 Ignore-this: f006ec52ba2051802e025a60bcface56
352]
353[Comment on duplication of code/markup found during styling project.
354Kevin Reid <kpreid@mac.com>**20090503203442
355 Ignore-this: a4b7f9f0ab57d2c03be9ba761be8d854
356]
357[Add CSS styles to spiff up the Tahoe WUI's appearance, particularly the welcome page and directories.
358Kevin Reid <kpreid@mac.com>**20090503203142
359 Ignore-this: 5c50af241c1a958b5180ef2b6a49f626
360]
361[Link all Tahoe web pages to the /tahoe_css stylesheet which already exists.
362Kevin Reid <kpreid@mac.com>**20090503202533
363 Ignore-this: 2ea8d14d3168b9502cf39d5ea3f2f2a8
364]
365[Fix broken link from Provisioning to Reliability page.
366Kevin Reid <kpreid@mac.com>**20090501191050
367 Ignore-this: 56dc1a5e659b70cc02dc4df7b5d518cd
368]
369[docs: network-and-reliance-topology.svg: nicer server icons, mv out of the "specifications" subdir
370zooko@zooko.com**20090526165842
371 Ignore-this: 8f47ab3a0ab782c1f0d46e10bcaebe5b
372]
373[docs: update network-and-reliance-topology.svg
374zooko@zooko.com**20090526163105
375 Ignore-this: 2b864b4ed8743d4a15dfbb7eff3fa561
376]
377[accounting-overview.txt: more edits
378warner@lothar.com**20090523190359]
379[accounting-overview.txt: small edits
380warner@lothar.com**20090523184011]
381[_auto_deps.py: require foolscap-0.4.1, which adds an important fix for py2.4
382warner@lothar.com**20090523011103]
383[immutable/encode.py: tolerate immediate _remove_shareholder by copying the
384warner@lothar.com**20090522184424
385 landlord list before iterating over it. This can probably only happen in unit
386 tests, but cleaning it up makes certain test failures easier to analyze.
387]
388[switch to using RemoteException instead of 'wrapped' RemoteReferences. Should fix #653, the rref-EQ problem
389warner@lothar.com**20090522004632]
390[switch all foolscap imports to use foolscap.api or foolscap.logging
391warner@lothar.com**20090522003823]
392[_auto_deps.py: bump our foolscap dependency to 0.4.0, since I'm about to start using its new features
393warner@lothar.com**20090522002100]
394[test_runner.py: fix minor typo
395warner@lothar.com**20090520033620]
396[setup: fix bug (wrong import) in error message, as noticed by pyflakes
397zooko@zooko.com**20090519195642
398 Ignore-this: f1b9f8c00b46c1b5f2f20e5fc424f341
399]
400[setup: fix trivial bug in recent patch to test base64.py at startup
401zooko@zooko.com**20090519195129
402 Ignore-this: f6be038f74b53ca69e7109fe34adfbc
403]
404[setup: make Tahoe exit at startup with a useful error message if the base64.py module is buggy (fixes part of #710)
405zooko@zooko.com**20090519194555
406 Ignore-this: aa4d398235ddca8d417d61c9688e154
407]
408[test_introducer.py: add a test for the python2.4.0/2.4.1 bug in base64.b32decode
409warner@lothar.com**20090519034101]
410[immutable WriteBucketProxy: use pipeline to speed up uploads by overlapping roundtrips, for #392
411warner@lothar.com**20090518234422]
412[util/pipeline.py: new utility class to manage size-limited work pipelines, for #392
413warner@lothar.com**20090518234326]
414[docs: add a diagram that I'm about to show to the Boulder Linux Users Group: network-and-reliance-topology.svg
415zooko@zooko.com**20090514232059
416 Ignore-this: 2420c0a7c254c9f0f2349d9130490d33
417]
418[tests: mark test_runner as coded in utf-8 instead of ascii
419zooko@zooko.com**20090507223151
420 Ignore-this: ccf1ba9e5a9b53602701a36f9fdb545e
421]
422[tests: raise timeout on test_runner.RunNode.test_introducer from 120s to 240s, since it hit the 120s time-out on François Lenny-armv5tel
423zooko@zooko.com**20090507215012
424 Ignore-this: ba18fe6832ba255d4971e8f623ed7da5
425]
426[setup: fix comment in setup.py
427zooko@zooko.com**20090507215003
428 Ignore-this: c46ef664630d52733138ef7fbc551c1c
429]
430[docs: how_to_make_a_tahoe_release.txt: a couple of small edits
431zooko@zooko.com**20090507214932
432 Ignore-this: ae92aa835ad369f4b9e6e49d681957a3
433]
434[.darcs-boringfile: also ignore .gitignore
435warner@allmydata.com**20090415210550
436 Ignore-this: d29db314a1e506f6240859559436b4c3
437]
438[.darcs-boringfile: ignore .git, I'm starting to play around with it
439warner@allmydata.com**20090415205929
440 Ignore-this: 89234453516483c9586cd6e1351e88b5
441]
442[fix quicktest: stop using setuptools, add misc/run-with-pythonpath.py, to make it run faster
443warner@lothar.com**20090414201400]
444[TAG allmydata-tahoe-1.4.1
445zooko@zooko.com**20090414025636
446 Ignore-this: de78fc32364c83e9f4e26b5abcfdea4a
447]
448Patch bundle hash:
4497760514b53dbcc061cb16228d909a395551721fd