3ioOBHOy6o9Eb8NtTFOXGF changeset

Changeset396330373234 (b)
ParentNone (a)
ab
0+make[1]: Leaving directory `/tmp/couchdb-upgrade-1.0-to-1.1/src/couchdb'
0++ cd ../..
0++ cd 1.0
0++ echo [couchdb]
0++ echo delayed_commits=false
0++ echo
0++ ./bin/couchdb -b -a llocal.ini
0+Apache CouchDB has started, time to relax.
0++ cd ..
0++ cd 1.1
0++ echo [couchdb]
0++ echo delayed_commits=false
0++ echo [httpd]
0++ echo port=5985
0++ echo
0++ ./bin/couchdb -b -a llocal.ini
0+Apache CouchDB has started, time to relax.
0++ sleep 2
0++ cd ..
0++ COUCH10=http://127.0.0.1:5984
0++ curl -X PUT http://127.0.0.1:5984/test-db
0+{"error":"file_exists","reason":"The database could not be created, the file already exists."}
0++ SIZES=1k 2k 3k 4095 4096 4097 8191 8192 8193 1M 10M 20M 25M 50M 75M 100M
0++ dd if=/dev/urandom of=1k bs=1 count=1k
0+1024+0 records in
0+1024+0 records out
0+1024 bytes (1.0 kB) copied, 0.0043219 s, 237 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-1k/1k -H Content-Type: application/octet-stream --data-binary @1k
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=2k bs=1 count=2k
0+2048+0 records in
0+2048+0 records out
0+2048 bytes (2.0 kB) copied, 0.00876951 s, 234 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-2k/2k -H Content-Type: application/octet-stream --data-binary @2k
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=3k bs=1 count=3k
0+3072+0 records in
0+3072+0 records out
0+3072 bytes (3.1 kB) copied, 0.0167801 s, 183 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-3k/3k -H Content-Type: application/octet-stream --data-binary @3k
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=4095 bs=1 count=4095
0+4095+0 records in
0+4095+0 records out
0+4095 bytes (4.1 kB) copied, 0.0177462 s, 231 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-4095/4095 -H Content-Type: application/octet-stream --data-binary @4095
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=4096 bs=1 count=4096
0+4096+0 records in
0+4096+0 records out
0+4096 bytes (4.1 kB) copied, 0.0156096 s, 262 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-4096/4096 -H Content-Type: application/octet-stream --data-binary @4096
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=4097 bs=1 count=4097
0+4097+0 records in
0+4097+0 records out
0+4097 bytes (4.1 kB) copied, 0.015329 s, 267 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-4097/4097 -H Content-Type: application/octet-stream --data-binary @4097
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=8191 bs=1 count=8191
0+8191+0 records in
0+8191+0 records out
0+8191 bytes (8.2 kB) copied, 0.0314981 s, 260 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-8191/8191 -H Content-Type: application/octet-stream --data-binary @8191
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=8192 bs=1 count=8192
0+8192+0 records in
0+8192+0 records out
0+8192 bytes (8.2 kB) copied, 0.0314052 s, 261 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-8192/8192 -H Content-Type: application/octet-stream --data-binary @8192
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=8193 bs=1 count=8193
0+8193+0 records in
0+8193+0 records out
0+8193 bytes (8.2 kB) copied, 0.030666 s, 267 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-8193/8193 -H Content-Type: application/octet-stream --data-binary @8193
0+{"error":"conflict","reason":"Document update conflict."}
0++ dd if=/dev/urandom of=1M bs=1 count=1M
0+1048576+0 records in
0+1048576+0 records out
0+1048576 bytes (1.0 MB) copied, 3.91318 s, 268 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-1M/1M -H Content-Type: application/octet-stream --data-binary @1M
0+{"ok":true,"id":"test-doc-1M","rev":"1-3fe394b17b188a62ed8ece80ec532595"}
0++ dd if=/dev/urandom of=10M bs=1 count=10M
0+10485760+0 records in
0+10485760+0 records out
0+10485760 bytes (10 MB) copied, 38.8289 s, 270 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-10M/10M -H Content-Type: application/octet-stream --data-binary @10M
0+{"ok":true,"id":"test-doc-10M","rev":"1-48747f6c56b0c835a83a9f1901023a0b"}
0++ dd if=/dev/urandom of=20M bs=1 count=20M
0+20971520+0 records in
0+20971520+0 records out
0+20971520 bytes (21 MB) copied, 78.7688 s, 266 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-20M/20M -H Content-Type: application/octet-stream --data-binary @20M
0+{"ok":true,"id":"test-doc-20M","rev":"1-7f711fd836f59101cb173629a281842e"}
0++ dd if=/dev/urandom of=25M bs=1 count=25M
0+26214400+0 records in
0+26214400+0 records out
0+26214400 bytes (26 MB) copied, 96.8492 s, 271 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-25M/25M -H Content-Type: application/octet-stream --data-binary @25M
0+{"ok":true,"id":"test-doc-25M","rev":"1-5bbc1b13e8f7ddecacadb7fa4acfdcdf"}
0++ dd if=/dev/urandom of=50M bs=1 count=50M
0+52428800+0 records in
0+52428800+0 records out
0+52428800 bytes (52 MB) copied, 193.507 s, 271 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-50M/50M -H Content-Type: application/octet-stream --data-binary @50M
0+{"ok":true,"id":"test-doc-50M","rev":"1-9258ad64a72ab09098281d38929703ee"}
0++ dd if=/dev/urandom of=75M bs=1 count=75M
0+78643200+0 records in
0+78643200+0 records out
0+78643200 bytes (79 MB) copied, 291.859 s, 269 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-75M/75M -H Content-Type: application/octet-stream --data-binary @75M
0+{"ok":true,"id":"test-doc-75M","rev":"1-b48a5a0f111e4dfa654cbbaf3fba6d3f"}
0++ dd if=/dev/urandom of=100M bs=1 count=100M
0+104857600+0 records in
0+104857600+0 records out
0+104857600 bytes (105 MB) copied, 387.119 s, 271 kB/s
0++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-100M/100M -H Content-Type: application/octet-stream --data-binary @100M
0+{"ok":true,"id":"test-doc-100M","rev":"1-c5a7134f4b7bfbd98e12897fe6794e18"}
0++ cp 1.0/var/lib/couchdb/test-db.couch 1.1/var/lib/couchdb/test-db.couch
0++ COUCH11=http://127.0.0.1:5985
0++ curl -X POST http://127.0.0.1:5985/test-db/_compact -H Content-Type: application/json
0+{"ok":true}
0++ TEST_PASSED=true
0++ mkdir results
0++ cd results
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-1k/1k
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  27834      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../1k
0++ awk {print $2}
0++ BEFORE=7c3081e976d187e2332f031e073f850bfc0e44c1
0++ /usr/bin/openssl sha 1k
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 7c3081e976d187e2332f031e073f850bfc0e44c1 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-2k/2k
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  26955      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../2k
0++ awk {print $2}
0++ BEFORE=f2074144682ff957cfa840add422d8ce78efe80b
0++ /usr/bin/openssl sha 2k
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ f2074144682ff957cfa840add422d8ce78efe80b != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-3k/3k
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  27152      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../3k
0++ awk {print $2}
0++ BEFORE=10d41629f3f65469bdf8b027f8681d8df3fd4cad
0++ /usr/bin/openssl sha 3k
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 10d41629f3f65469bdf8b027f8681d8df3fd4cad != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-4095/4095
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0   7712      0 --:--:-- --:--:-- --:--:--  8200
0++ /usr/bin/openssl sha ../4095
0++ awk {print $2}
0++ BEFORE=987d412e77c0f96500be71dfc7cb31b21892a8a9
0++ /usr/bin/openssl sha 4095
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 987d412e77c0f96500be71dfc7cb31b21892a8a9 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-4096/4096
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  25199      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../4096
0++ awk {print $2}
0++ BEFORE=01f47f6451525e0c4d635c67b84e8bd4eb7f4187
0++ /usr/bin/openssl sha 4096
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 01f47f6451525e0c4d635c67b84e8bd4eb7f4187 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-4097/4097
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  27758      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../4097
0++ awk {print $2}
0++ BEFORE=f865b0fce1501f1d7b1b407567acf5d138488263
0++ /usr/bin/openssl sha 4097
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ f865b0fce1501f1d7b1b407567acf5d138488263 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-8191/8191
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  25137      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../8191
0++ awk {print $2}
0++ BEFORE=d00b97508e30432de380fd5567b0ec71706db43e
0++ /usr/bin/openssl sha 8191
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ d00b97508e30432de380fd5567b0ec71706db43e != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-8192/8192
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  27260      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../8192
0++ awk {print $2}
0++ BEFORE=f25e23da7474f310d879c86eeb8a9daa1066e29a
0++ /usr/bin/openssl sha 8192
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ f25e23da7474f310d879c86eeb8a9daa1066e29a != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-8193/8193
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  31037      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../8193
0++ awk {print $2}
0++ BEFORE=552a043f3f467f19aa215b530f7f4a80bc9543b9
0++ /usr/bin/openssl sha 8193
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 552a043f3f467f19aa215b530f7f4a80bc9543b9 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-1M/1M
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  23892      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../1M
0++ awk {print $2}
0++ BEFORE=84582454dd6446002743875ff3cce3ea8c8be93a
0++ /usr/bin/openssl sha 1M
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 84582454dd6446002743875ff3cce3ea8c8be93a != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-10M/10M
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0   8297      0 --:--:-- --:--:-- --:--:-- 10250
0++ /usr/bin/openssl sha ../10M
0++ awk {print $2}
0++ BEFORE=58372da7ff303b5b412b2e9030a496cf57ab8922
0++ /usr/bin/openssl sha 10M
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 58372da7ff303b5b412b2e9030a496cf57ab8922 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-20M/20M
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  27702      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../20M
0++ awk {print $2}
0++ BEFORE=91b2ecdc7793f44f11ca8b9604b78ca6cb1f0273
0++ /usr/bin/openssl sha 20M
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 91b2ecdc7793f44f11ca8b9604b78ca6cb1f0273 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-25M/25M
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  29560      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../25M
0++ awk {print $2}
0++ BEFORE=67ea2c5edb2bb8807f59d9e690e83683d0f95a54
0++ /usr/bin/openssl sha 25M
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 67ea2c5edb2bb8807f59d9e690e83683d0f95a54 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-50M/50M
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  26417      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../50M
0++ awk {print $2}
0++ BEFORE=1cc42be78490deb4e696428c4e5d6f48af00dc1d
0++ /usr/bin/openssl sha 50M
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ 1cc42be78490deb4e696428c4e5d6f48af00dc1d != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-75M/75M
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  24103      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../75M
0++ awk {print $2}
0++ BEFORE=c9ce5960d56dffafab77946c3a2ca30cad1ddd10
0++ /usr/bin/openssl sha 75M
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ c9ce5960d56dffafab77946c3a2ca30cad1ddd10 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ curl -O http://127.0.0.1:5985/test-db/test-doc-100M/100M
0+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0+                                 Dload  Upload   Total   Spent    Left  Speed
0+100    41  100    41    0     0  30058      0 --:--:-- --:--:-- --:--:-- 41000
0++ /usr/bin/openssl sha ../100M
0++ awk {print $2}
0++ BEFORE=d6af484f8d03f162ec27df912b1809aee0c6eb50
0++ /usr/bin/openssl sha 100M
0++ awk {print $2}
0++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
0++ [ d6af484f8d03f162ec27df912b1809aee0c6eb50 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
0++ TEST_PASSED=false
0++ cd ..
0++ cd /tmp/couchdb-upgrade-1.0-to-1.1
0++ cd 1.0
0++ ./bin/couchdb -d
0+Apache CouchDB has been shutdown.
0++ cd ..
0++ cd 1.1
0++ ./bin/couchdb -d
0+Apache CouchDB has been shutdown.
0++ rm -f 1k 2k 3k 4095 4096 4097 8191 8192 8193 1M 10M 20M 25M 50M 75M 100M
0++ [ false = false ]
0++ echo UPGRADE FAILED
0+UPGRADE FAILED
0+fdmanana 10:36:07 ~/tmp >
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
--- Revision None
+++ Revision 396330373234
@@ -0,0 +1,332 @@
+make[1]: Leaving directory `/tmp/couchdb-upgrade-1.0-to-1.1/src/couchdb'
++ cd ../..
++ cd 1.0
++ echo [couchdb]
++ echo delayed_commits=false
++ echo
++ ./bin/couchdb -b -a llocal.ini
+Apache CouchDB has started, time to relax.
++ cd ..
++ cd 1.1
++ echo [couchdb]
++ echo delayed_commits=false
++ echo [httpd]
++ echo port=5985
++ echo
++ ./bin/couchdb -b -a llocal.ini
+Apache CouchDB has started, time to relax.
++ sleep 2
++ cd ..
++ COUCH10=http://127.0.0.1:5984
++ curl -X PUT http://127.0.0.1:5984/test-db
+{"error":"file_exists","reason":"The database could not be created, the file already exists."}
++ SIZES=1k 2k 3k 4095 4096 4097 8191 8192 8193 1M 10M 20M 25M 50M 75M 100M
++ dd if=/dev/urandom of=1k bs=1 count=1k
+1024+0 records in
+1024+0 records out
+1024 bytes (1.0 kB) copied, 0.0043219 s, 237 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-1k/1k -H Content-Type: application/octet-stream --data-binary @1k
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=2k bs=1 count=2k
+2048+0 records in
+2048+0 records out
+2048 bytes (2.0 kB) copied, 0.00876951 s, 234 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-2k/2k -H Content-Type: application/octet-stream --data-binary @2k
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=3k bs=1 count=3k
+3072+0 records in
+3072+0 records out
+3072 bytes (3.1 kB) copied, 0.0167801 s, 183 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-3k/3k -H Content-Type: application/octet-stream --data-binary @3k
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=4095 bs=1 count=4095
+4095+0 records in
+4095+0 records out
+4095 bytes (4.1 kB) copied, 0.0177462 s, 231 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-4095/4095 -H Content-Type: application/octet-stream --data-binary @4095
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=4096 bs=1 count=4096
+4096+0 records in
+4096+0 records out
+4096 bytes (4.1 kB) copied, 0.0156096 s, 262 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-4096/4096 -H Content-Type: application/octet-stream --data-binary @4096
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=4097 bs=1 count=4097
+4097+0 records in
+4097+0 records out
+4097 bytes (4.1 kB) copied, 0.015329 s, 267 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-4097/4097 -H Content-Type: application/octet-stream --data-binary @4097
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=8191 bs=1 count=8191
+8191+0 records in
+8191+0 records out
+8191 bytes (8.2 kB) copied, 0.0314981 s, 260 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-8191/8191 -H Content-Type: application/octet-stream --data-binary @8191
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=8192 bs=1 count=8192
+8192+0 records in
+8192+0 records out
+8192 bytes (8.2 kB) copied, 0.0314052 s, 261 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-8192/8192 -H Content-Type: application/octet-stream --data-binary @8192
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=8193 bs=1 count=8193
+8193+0 records in
+8193+0 records out
+8193 bytes (8.2 kB) copied, 0.030666 s, 267 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-8193/8193 -H Content-Type: application/octet-stream --data-binary @8193
+{"error":"conflict","reason":"Document update conflict."}
++ dd if=/dev/urandom of=1M bs=1 count=1M
+1048576+0 records in
+1048576+0 records out
+1048576 bytes (1.0 MB) copied, 3.91318 s, 268 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-1M/1M -H Content-Type: application/octet-stream --data-binary @1M
+{"ok":true,"id":"test-doc-1M","rev":"1-3fe394b17b188a62ed8ece80ec532595"}
++ dd if=/dev/urandom of=10M bs=1 count=10M
+10485760+0 records in
+10485760+0 records out
+10485760 bytes (10 MB) copied, 38.8289 s, 270 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-10M/10M -H Content-Type: application/octet-stream --data-binary @10M
+{"ok":true,"id":"test-doc-10M","rev":"1-48747f6c56b0c835a83a9f1901023a0b"}
++ dd if=/dev/urandom of=20M bs=1 count=20M
+20971520+0 records in
+20971520+0 records out
+20971520 bytes (21 MB) copied, 78.7688 s, 266 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-20M/20M -H Content-Type: application/octet-stream --data-binary @20M
+{"ok":true,"id":"test-doc-20M","rev":"1-7f711fd836f59101cb173629a281842e"}
++ dd if=/dev/urandom of=25M bs=1 count=25M
+26214400+0 records in
+26214400+0 records out
+26214400 bytes (26 MB) copied, 96.8492 s, 271 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-25M/25M -H Content-Type: application/octet-stream --data-binary @25M
+{"ok":true,"id":"test-doc-25M","rev":"1-5bbc1b13e8f7ddecacadb7fa4acfdcdf"}
++ dd if=/dev/urandom of=50M bs=1 count=50M
+52428800+0 records in
+52428800+0 records out
+52428800 bytes (52 MB) copied, 193.507 s, 271 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-50M/50M -H Content-Type: application/octet-stream --data-binary @50M
+{"ok":true,"id":"test-doc-50M","rev":"1-9258ad64a72ab09098281d38929703ee"}
++ dd if=/dev/urandom of=75M bs=1 count=75M
+78643200+0 records in
+78643200+0 records out
+78643200 bytes (79 MB) copied, 291.859 s, 269 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-75M/75M -H Content-Type: application/octet-stream --data-binary @75M
+{"ok":true,"id":"test-doc-75M","rev":"1-b48a5a0f111e4dfa654cbbaf3fba6d3f"}
++ dd if=/dev/urandom of=100M bs=1 count=100M
+104857600+0 records in
+104857600+0 records out
+104857600 bytes (105 MB) copied, 387.119 s, 271 kB/s
++ curl -X PUT http://127.0.0.1:5984/test-db/test-doc-100M/100M -H Content-Type: application/octet-stream --data-binary @100M
+{"ok":true,"id":"test-doc-100M","rev":"1-c5a7134f4b7bfbd98e12897fe6794e18"}
++ cp 1.0/var/lib/couchdb/test-db.couch 1.1/var/lib/couchdb/test-db.couch
++ COUCH11=http://127.0.0.1:5985
++ curl -X POST http://127.0.0.1:5985/test-db/_compact -H Content-Type: application/json
+{"ok":true}
++ TEST_PASSED=true
++ mkdir results
++ cd results
++ curl -O http://127.0.0.1:5985/test-db/test-doc-1k/1k
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 27834 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../1k
++ awk {print $2}
++ BEFORE=7c3081e976d187e2332f031e073f850bfc0e44c1
++ /usr/bin/openssl sha 1k
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 7c3081e976d187e2332f031e073f850bfc0e44c1 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-2k/2k
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 26955 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../2k
++ awk {print $2}
++ BEFORE=f2074144682ff957cfa840add422d8ce78efe80b
++ /usr/bin/openssl sha 2k
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ f2074144682ff957cfa840add422d8ce78efe80b != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-3k/3k
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 27152 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../3k
++ awk {print $2}
++ BEFORE=10d41629f3f65469bdf8b027f8681d8df3fd4cad
++ /usr/bin/openssl sha 3k
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 10d41629f3f65469bdf8b027f8681d8df3fd4cad != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-4095/4095
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 7712 0 --:--:-- --:--:-- --:--:-- 8200
++ /usr/bin/openssl sha ../4095
++ awk {print $2}
++ BEFORE=987d412e77c0f96500be71dfc7cb31b21892a8a9
++ /usr/bin/openssl sha 4095
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 987d412e77c0f96500be71dfc7cb31b21892a8a9 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-4096/4096
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 25199 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../4096
++ awk {print $2}
++ BEFORE=01f47f6451525e0c4d635c67b84e8bd4eb7f4187
++ /usr/bin/openssl sha 4096
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 01f47f6451525e0c4d635c67b84e8bd4eb7f4187 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-4097/4097
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 27758 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../4097
++ awk {print $2}
++ BEFORE=f865b0fce1501f1d7b1b407567acf5d138488263
++ /usr/bin/openssl sha 4097
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ f865b0fce1501f1d7b1b407567acf5d138488263 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-8191/8191
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 25137 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../8191
++ awk {print $2}
++ BEFORE=d00b97508e30432de380fd5567b0ec71706db43e
++ /usr/bin/openssl sha 8191
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ d00b97508e30432de380fd5567b0ec71706db43e != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-8192/8192
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 27260 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../8192
++ awk {print $2}
++ BEFORE=f25e23da7474f310d879c86eeb8a9daa1066e29a
++ /usr/bin/openssl sha 8192
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ f25e23da7474f310d879c86eeb8a9daa1066e29a != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-8193/8193
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 31037 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../8193
++ awk {print $2}
++ BEFORE=552a043f3f467f19aa215b530f7f4a80bc9543b9
++ /usr/bin/openssl sha 8193
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 552a043f3f467f19aa215b530f7f4a80bc9543b9 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-1M/1M
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 23892 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../1M
++ awk {print $2}
++ BEFORE=84582454dd6446002743875ff3cce3ea8c8be93a
++ /usr/bin/openssl sha 1M
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 84582454dd6446002743875ff3cce3ea8c8be93a != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-10M/10M
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 8297 0 --:--:-- --:--:-- --:--:-- 10250
++ /usr/bin/openssl sha ../10M
++ awk {print $2}
++ BEFORE=58372da7ff303b5b412b2e9030a496cf57ab8922
++ /usr/bin/openssl sha 10M
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 58372da7ff303b5b412b2e9030a496cf57ab8922 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-20M/20M
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 27702 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../20M
++ awk {print $2}
++ BEFORE=91b2ecdc7793f44f11ca8b9604b78ca6cb1f0273
++ /usr/bin/openssl sha 20M
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 91b2ecdc7793f44f11ca8b9604b78ca6cb1f0273 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-25M/25M
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 29560 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../25M
++ awk {print $2}
++ BEFORE=67ea2c5edb2bb8807f59d9e690e83683d0f95a54
++ /usr/bin/openssl sha 25M
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 67ea2c5edb2bb8807f59d9e690e83683d0f95a54 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-50M/50M
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 26417 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../50M
++ awk {print $2}
++ BEFORE=1cc42be78490deb4e696428c4e5d6f48af00dc1d
++ /usr/bin/openssl sha 50M
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ 1cc42be78490deb4e696428c4e5d6f48af00dc1d != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-75M/75M
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 24103 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../75M
++ awk {print $2}
++ BEFORE=c9ce5960d56dffafab77946c3a2ca30cad1ddd10
++ /usr/bin/openssl sha 75M
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ c9ce5960d56dffafab77946c3a2ca30cad1ddd10 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ curl -O http://127.0.0.1:5985/test-db/test-doc-100M/100M
+ % Total % Received % Xferd Average Speed Time Time Time Current
+ Dload Upload Total Spent Left Speed
+100 41 100 41 0 0 30058 0 --:--:-- --:--:-- --:--:-- 41000
++ /usr/bin/openssl sha ../100M
++ awk {print $2}
++ BEFORE=d6af484f8d03f162ec27df912b1809aee0c6eb50
++ /usr/bin/openssl sha 100M
++ awk {print $2}
++ AFTER=2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b
++ [ d6af484f8d03f162ec27df912b1809aee0c6eb50 != 2cd2e91a9cbd2bcaec2d3599d35cb7aaae645f0b ]
++ TEST_PASSED=false
++ cd ..
++ cd /tmp/couchdb-upgrade-1.0-to-1.1
++ cd 1.0
++ ./bin/couchdb -d
+Apache CouchDB has been shutdown.
++ cd ..
++ cd 1.1
++ ./bin/couchdb -d
+Apache CouchDB has been shutdown.
++ rm -f 1k 2k 3k 4095 4096 4097 8191 8192 8193 1M 10M 20M 25M 50M 75M 100M
++ [ false = false ]
++ echo UPGRADE FAILED
+UPGRADE FAILED
+fdmanana 10:36:07 ~/tmp >