-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarking-scheme-v2.txt
More file actions
533 lines (438 loc) · 28.6 KB
/
marking-scheme-v2.txt
File metadata and controls
533 lines (438 loc) · 28.6 KB
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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
Total mark: [53/100]
---------------------------------------------------
Late penalty: 0
RPC wrapped errors penalty: -8
Connected operation [45/60]
* Simple open: Client mounts DFS, opens a file, closes it, and then unmounts DFS [3/3]
* Simple read: Client mounts DFS, opens a file, reads it, closes it, and then unmounts DFS [3/3]
* Simple write: Client mounts DFS, opens a file, writes to it, reads it, closes it, and then unmounts DFS. [3/3]
* Simple LocalFileExists: Client mounts DFS, opens a file, closes it, calls LocalFileExists on the file name, and then unmounts DFS [3/3]
* Simple GlobalFileExists: Client mounts DFS, opens a file, closes it, calls GlobalFileExists on the file name, and then unmounts DFS [3/3]
* Single client: Client A mounts DFS, opens an invalid file, opens a valid file, reads it, writes it, reads the content back, closes it, and unmounts DFS; client B mounts DFS, calls GlobalFileExists on the file name, cals LocalFileExists on the file name, opens the file, and then unmounts DFS [0/5]
* One client is able to observe writes from another client (single write operation) [7/7]
* One client is able to observe writes from another client (double write operation) [8/8]
* Handling multiple clients attempting to open a file for writing [5/5]
* Multiple reader clients and one writer client; One client opens for writing, other clients check global file exists [5/5]
* Multiple reader clients and one writer client; One client opens for writing, other clients open for reading. First client performs three writes, other clients read after each write. [5/5]
* Multiple reader clients and one writer client; First client writes file, other clients read the changes, first client closes the file. Repeated for each client [0/10]
Disconnected operation [16/40]
* Client writes file, disconnects; can use DREAD while disconnected [0/5]
* Client writes file, disconnects; can LocalFileExists while disconnected [0/5]
* Unobservable transitory disconnections [10/10]
* Client A opens file F for writing, disconnects. Client B connects and opens F for writing, succeeds [2/2]
* Client B opens file. Client A writes/closes file, disconnects. Client B writes file. Client A re-connects, reads, observes B changes [0/4]
* Client A writes file. Client B opens file. Client A writes file, disconnects. Client B observe changes [4/4]
* Multiple reader clients and one writer client; A opens, A writes, B opens, A disconnects, C opens, C reads [0/3]
* Multiple reader clients and one writer client; client A opens, B opens, A writes, B reads, A disconnects, C opens, C reads [0/3]
* Multiple reader clients and one writer client; client A opens, A writes, A closes, B opens, A disconnects, B reads, B writes, B closes, C opens, B disconnects, C reads, C writes, C closes [0/4]
===================
Test execution logs
===================
Commit used: 517355c 2018-01-29 16:26:53 -0800
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 20:45:56][Master] Starting test 'DISCONNECTED -- Client writes file, disconnects; can use DREAD while disconnected'
[2018-03-08 20:45:56][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 20:45:56][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 20:45:56][Client A] DFS mounted
[2018-03-08 20:45:56][Client A] Opening file 'thefile' for WRITE
[2018-03-08 20:45:56][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 20:45:56][Client A] Closing file 'thefile'
[2018-03-08 20:45:56][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 20:45:58][Client A] Sleeping for 5 seconds
[2018-03-08 20:46:03][Client A] Opening file 'thefile' for DREAD
[2018-03-08 20:46:03][Client A] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 20:46:03][Client A] Closing file 'thefile'
[2018-03-08 20:46:03][Client A] Disconnecting [error expected: DisconnectedError]
[2018-03-08 20:46:13][Master] Requesting Client A to stop
Test ended abruptly with error: Operation UMountDFS on client A timed out
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:44:37][Master] Starting test 'DISCONNECTED -- Client writes file, disconnects; can use LocalFileExists while disconnected'
[2018-03-08 02:44:37][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:44:37][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:44:37][Client A] DFS mounted
[2018-03-08 02:44:37][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:44:37][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 02:44:37][Client A] Closing file 'thefile'
[2018-03-08 02:44:37][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:44:39][Client A] Sleeping for 5 seconds
[2018-03-08 02:44:44][Client A] Checking if file 'thefile' exists locally (expects: true)
[2018-03-08 02:44:44][Client A] Disconnecting [error expected: DisconnectedError]
[2018-03-08 02:44:54][Master] Requesting Client A to stop
Test ended abruptly with error: Operation UMountDFS on client A timed out
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:45:03][Master] Starting test 'DISCONNECTED -- Three Clients - Each client writes and disconnects'
[2018-03-08 02:45:03][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:45:03][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:45:03][Client A] DFS mounted
[2018-03-08 02:45:03][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:45:03][Client B] DFS mounted
[2018-03-08 02:45:03][Client C] Mounting DFS at /tmp/clientC/
[2018-03-08 02:45:03][Client C] DFS mounted
[2018-03-08 02:45:03][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:45:03][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 02:45:03][Client A] Closing file 'thefile'
[2018-03-08 02:45:03][Client B] Opening file 'thefile' for WRITE
[2018-03-08 02:45:03][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:45:05][Client C] Sleeping for 5 seconds
[2018-03-08 02:45:10][Client B] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:45:10][Master] Requesting Client A to stop
[2018-03-08 02:45:12][Master] Requesting Client B to stop
[2018-03-08 02:45:14][Master] Requesting Client C to stop
Test ended abruptly with error: Error processing 'Read' by Client B: DFS: Latest verson of chunk [] unavailable
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:45:26][Master] Starting test 'DISCONNECTED -- Three Clients - A Opens, A Writes, B Opens, A disconnects, C Opens, C Reads'
[2018-03-08 02:45:26][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:45:26][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:45:26][Client A] DFS mounted
[2018-03-08 02:45:26][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:45:26][Client B] DFS mounted
[2018-03-08 02:45:26][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:45:26][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 02:45:26][Client B] Opening file 'thefile' for READ
[2018-03-08 02:45:26][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:45:28][Client C] Sleeping for 5 seconds
[2018-03-08 02:45:33][Client C] Mounting DFS at /tmp/clientC/
[2018-03-08 02:45:33][Client C] DFS mounted
[2018-03-08 02:45:33][Client C] Opening file 'thefile' for READ
[2018-03-08 02:45:33][Master] Requesting Client A to stop
[2018-03-08 02:45:35][Master] Requesting Client B to stop
[2018-03-08 02:45:37][Master] Requesting Client C to stop
Test ended abruptly with error: Error processing 'Open' by Client C: DFS: Filename [thefile] is unavailable
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:45:48][Master] Starting test 'DISCONNECTED -- Three Clients: A Opens, B Opens, A Writes, B Reads, A disconnects, C Opens, C Reads'
[2018-03-08 02:45:48][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:45:48][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:45:48][Client A] DFS mounted
[2018-03-08 02:45:48][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:45:48][Client B] DFS mounted
[2018-03-08 02:45:48][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:45:48][Client B] Opening file 'thefile' for READ
[2018-03-08 02:45:48][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 02:45:48][Client B] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:45:48][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:45:50][Client C] Sleeping for 5 seconds
[2018-03-08 02:45:55][Client C] Mounting DFS at /tmp/clientC/
[2018-03-08 02:45:55][Client C] DFS mounted
[2018-03-08 02:45:55][Client C] Opening file 'thefile' for READ
[2018-03-08 02:45:55][Master] Requesting Client C to stop
[2018-03-08 02:45:57][Master] Requesting Client A to stop
[2018-03-08 02:46:00][Master] Requesting Client B to stop
Test ended abruptly with error: Error processing 'Open' by Client C: DFS: Filename [thefile] is unavailable
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:46:11][Master] Starting test 'Disconnected -- One reader/writer client and one writer client[3]'
[2018-03-08 02:46:11][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:46:11][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:46:11][Client A] DFS mounted
[2018-03-08 02:46:11][Client A] Opening file 'drww3' for WRITE
[2018-03-08 02:46:11][Client A] Writing 'drww3data1' on chunk 2 of file 'drww3'
[2018-03-08 02:46:11][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:46:11][Client B] DFS mounted
[2018-03-08 02:46:11][Client B] Opening file 'drww3' for READ
[2018-03-08 02:46:11][Client A] Writing 'drww3data' on chunk 2 of file 'drww3'
[2018-03-08 02:46:11][Client A] Closing file 'drww3'
[2018-03-08 02:46:11][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:46:13][Client B] Sleeping for 5 seconds
[2018-03-08 02:46:18][Client B] Reading chunk 2 from file 'drww3' (expects: 'drww3data')
[2018-03-08 02:46:18][Master] Requesting Client A to stop
[2018-03-08 02:46:20][Master] Requesting Client B to stop
Test ended abruptly with error: Error processing 'Read' by Client B: DFS: Latest verson of chunk [] unavailable
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:46:30][Master] Starting test 'Disconnected -- One reader/writer client and one writer client[1]'
[2018-03-08 02:46:30][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:46:30][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:46:30][Client A] DFS mounted
[2018-03-08 02:46:30][Client A] Opening file 'drww1' for WRITE
[2018-03-08 02:46:30][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:46:32][Client B] Sleeping for 5 seconds
[2018-03-08 02:46:37][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:46:37][Client B] DFS mounted
[2018-03-08 02:46:37][Client B] Opening file 'drww1' for WRITE
[2018-03-08 02:46:37][Client B] Writing 'drww1data2' on chunk 3 of file 'drww1'
[2018-03-08 02:46:37][Client B] Reading chunk 3 from file 'drww1' (expects: 'drww1data2')
[2018-03-08 02:46:37][Client B] Closing file 'drww1'
[2018-03-08 02:46:37][Client B] Disconnecting
[2018-03-08 02:46:37][Master] Requesting Client A to stop
[2018-03-08 02:46:39][Master] Requesting Client B to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:46:49][Master] Starting test 'Disconnected -- One reader/writer client and one writer client[2]'
[2018-03-08 02:46:49][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:46:49][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:46:49][Client B] DFS mounted
[2018-03-08 02:46:49][Client B] Opening file 'drww2' for WRITE
[2018-03-08 02:46:49][Client B] Closing file 'drww2'
[2018-03-08 02:46:49][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:46:49][Client A] DFS mounted
[2018-03-08 02:46:49][Client A] Opening file 'drww2' for WRITE
[2018-03-08 02:46:49][Client A] Writing 'drww2data1' on chunk 2 of file 'drww2'
[2018-03-08 02:46:49][Client A] Closing file 'drww2'
[2018-03-08 02:46:49][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:46:51][Client B] Sleeping for 5 seconds
[2018-03-08 02:46:56][Client B] Opening file 'drww2' for WRITE
[2018-03-08 02:46:56][Master] Requesting Client A to stop
[2018-03-08 02:46:58][Master] Requesting Client B to stop
Test ended abruptly with error: Error processing 'Open' by Client B: DFS: Filename [drww2] is unavailable
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:47:08][Master] Starting test 'Disconnected -- One reader/writer client and one writer client[3]'
[2018-03-08 02:47:08][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:47:08][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:47:08][Client A] DFS mounted
[2018-03-08 02:47:08][Client A] Opening file 'drww3' for WRITE
[2018-03-08 02:47:08][Client A] Writing 'drww3data1' on chunk 2 of file 'drww3'
[2018-03-08 02:47:08][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:47:08][Client B] DFS mounted
[2018-03-08 02:47:08][Client B] Opening file 'drww3' for READ
[2018-03-08 02:47:08][Client A] Writing 'drww3data' on chunk 2 of file 'drww3'
[2018-03-08 02:47:08][Client A] Closing file 'drww3'
[2018-03-08 02:47:08][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:47:10][Client B] Sleeping for 5 seconds
[2018-03-08 02:47:15][Client B] Reading chunk 2 from file 'drww3' [error expected: ChunkUnavailableError]
[2018-03-08 02:47:15][Client B] Warning: use of wrapped errors
[2018-03-08 02:47:15][Client B] Closing file 'drww3'
[2018-03-08 02:47:15][Client B] Disconnecting
[2018-03-08 02:47:15][Master] Requesting Client A to stop
[2018-03-08 02:47:17][Master] Requesting Client B to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:47:27][Master] Starting test 'CONNECTED -- Three Clients Read And Write File'
[2018-03-08 02:47:27][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:47:27][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:47:27][Client A] DFS mounted
[2018-03-08 02:47:27][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:47:27][Client B] DFS mounted
[2018-03-08 02:47:27][Client C] Mounting DFS at /tmp/clientC/
[2018-03-08 02:47:27][Client C] DFS mounted
[2018-03-08 02:47:27][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:47:27][Client B] Opening file 'thefile' for READ
[2018-03-08 02:47:27][Client C] Opening file 'thefile' for READ
[2018-03-08 02:47:27][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 02:47:27][Client B] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:47:27][Client C] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:47:27][Client A] Closing file 'thefile'
[2018-03-08 02:47:27][Client B] Closing file 'thefile'
[2018-03-08 02:47:27][Client B] Opening file 'thefile' for WRITE
[2018-03-08 02:47:27][Client B] Writing 'Not a Hello anymore' on chunk 3 of file 'thefile'
[2018-03-08 02:47:27][Master] Requesting Client A to stop
[2018-03-08 02:47:29][Master] Requesting Client B to stop
[2018-03-08 02:47:31][Master] Requesting Client C to stop
Test ended abruptly with error: Error processing 'Write' by Client B: write /tmp/clientB/thefile.dfs: bad file descriptor
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:47:43][Master] Starting test 'CONNECTED -- Three Clients: One Client Writes, Other Clients Read'
[2018-03-08 02:47:43][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:47:43][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:47:43][Client A] DFS mounted
[2018-03-08 02:47:43][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:47:43][Client B] DFS mounted
[2018-03-08 02:47:43][Client C] Mounting DFS at /tmp/clientC/
[2018-03-08 02:47:43][Client C] DFS mounted
[2018-03-08 02:47:43][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:47:43][Client B] Opening file 'thefile' for READ
[2018-03-08 02:47:43][Client C] Opening file 'thefile' for READ
[2018-03-08 02:47:43][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 02:47:43][Client B] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:47:43][Client C] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:47:43][Client A] Writing 'Not a Hello anymore' on chunk 3 of file 'thefile'
[2018-03-08 02:47:43][Client B] Reading chunk 3 from file 'thefile' (expects: 'Not a Hello anymore')
[2018-03-08 02:47:43][Client C] Reading chunk 3 from file 'thefile' (expects: 'Not a Hello anymore')
[2018-03-08 02:47:43][Client A] Writing 'No it's not' on chunk 3 of file 'thefile'
[2018-03-08 02:47:43][Client B] Reading chunk 3 from file 'thefile' (expects: 'No it's not')
[2018-03-08 02:47:43][Client C] Reading chunk 3 from file 'thefile' (expects: 'No it's not')
[2018-03-08 02:47:43][Client A] Closing file 'thefile'
[2018-03-08 02:47:43][Client B] Closing file 'thefile'
[2018-03-08 02:47:43][Client C] Closing file 'thefile'
[2018-03-08 02:47:43][Client A] Disconnecting
[2018-03-08 02:47:43][Client B] Disconnecting
[2018-03-08 02:47:43][Client C] Disconnecting
[2018-03-08 02:47:43][Master] Requesting Client B to stop
[2018-03-08 02:47:45][Master] Requesting Client C to stop
[2018-03-08 02:47:47][Master] Requesting Client A to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:47:59][Master] Starting test 'CONNECTED -- Clients open files and other clients check file exists'
[2018-03-08 02:47:59][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:47:59][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:47:59][Client A] DFS mounted
[2018-03-08 02:47:59][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:47:59][Client B] DFS mounted
[2018-03-08 02:47:59][Client C] Mounting DFS at /tmp/clientC/
[2018-03-08 02:47:59][Client C] DFS mounted
[2018-03-08 02:47:59][Client A] Opening file 'thefilea' for Write
[2018-03-08 02:47:59][Client C] Checking if file 'thefileb' exists globally (expects: false)
[2018-03-08 02:47:59][Client B] Opening file 'thefileb' for Write
[2018-03-08 02:47:59][Client B] Checking if file 'thefilea' exists globally (expects: true)
[2018-03-08 02:47:59][Client C] Checking if file 'thefileb' exists globally (expects: true)
[2018-03-08 02:47:59][Client A] Checking if file 'thefileb' exists globally (expects: true)
[2018-03-08 02:47:59][Master] Requesting Client A to stop
[2018-03-08 02:48:01][Master] Requesting Client B to stop
[2018-03-08 02:48:03][Master] Requesting Client C to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:48:14][Master] Starting test 'CONNECTED -- Observing writes (double write)'
[2018-03-08 02:48:14][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:48:14][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:48:14][Client A] DFS mounted
[2018-03-08 02:48:14][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:48:14][Client B] DFS mounted
[2018-03-08 02:48:14][Client A] Opening file 'myfile' for WRITE
[2018-03-08 02:48:14][Client A] Writing 'Written by A' on chunk 3 of file 'myfile'
[2018-03-08 02:48:14][Client A] Closing file 'myfile'
[2018-03-08 02:48:14][Client B] Opening file 'myfile' for WRITE
[2018-03-08 02:48:14][Client B] Writing 'Written by B' on chunk 3 of file 'myfile'
[2018-03-08 02:48:14][Client B] Closing file 'myfile'
[2018-03-08 02:48:14][Client A] Opening file 'myfile' for READ
[2018-03-08 02:48:14][Client A] Reading chunk 3 from file 'myfile' (expects: 'Written by B')
[2018-03-08 02:48:14][Client A] Closing file 'myfile'
[2018-03-08 02:48:14][Client A] Disconnecting
[2018-03-08 02:48:14][Client B] Disconnecting
[2018-03-08 02:48:14][Master] Requesting Client A to stop
[2018-03-08 02:48:16][Master] Requesting Client B to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:48:26][Master] Starting test 'CONNECTED -- Observing writes (single write)'
[2018-03-08 02:48:26][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:48:26][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:48:26][Client A] DFS mounted
[2018-03-08 02:48:26][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:48:26][Client B] DFS mounted
[2018-03-08 02:48:26][Client A] Opening file 'myfile' for WRITE
[2018-03-08 02:48:26][Client B] Opening file 'myfile' for READ
[2018-03-08 02:48:26][Client A] Writing 'Writing some content' on chunk 3 of file 'myfile'
[2018-03-08 02:48:26][Client B] Reading chunk 3 from file 'myfile' (expects: 'Writing some content')
[2018-03-08 02:48:26][Client A] Closing file 'myfile'
[2018-03-08 02:48:26][Client B] Closing file 'myfile'
[2018-03-08 02:48:26][Client A] Disconnecting
[2018-03-08 02:48:26][Client B] Disconnecting
[2018-03-08 02:48:26][Master] Requesting Client A to stop
[2018-03-08 02:48:28][Master] Requesting Client B to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:48:38][Master] Starting test 'CONNECTED -- Two Clients Open Same File for Writing'
[2018-03-08 02:48:38][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:48:38][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:48:38][Client A] DFS mounted
[2018-03-08 02:48:38][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:48:38][Client B] DFS mounted
[2018-03-08 02:48:38][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:48:38][Client B] Opening file 'thefile' for WRITE [error expected: OpenWriteConflictError]
[2018-03-08 02:48:38][Client B] Warning: use of wrapped errors
[2018-03-08 02:48:38][Client A] Closing file 'thefile'
[2018-03-08 02:48:38][Client A] Disconnecting
[2018-03-08 02:48:38][Client B] Disconnecting
[2018-03-08 02:48:38][Master] Requesting Client A to stop
[2018-03-08 02:48:40][Master] Requesting Client B to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:48:50][Master] Starting test 'CONNECTED -- Simple GlobalFileExists'
[2018-03-08 02:48:50][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:48:50][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:48:50][Client A] DFS mounted
[2018-03-08 02:48:50][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:48:50][Client B] DFS mounted
[2018-03-08 02:48:50][Client A] Opening file 'myfile' for READ
[2018-03-08 02:48:50][Client A] Closing file 'myfile'
[2018-03-08 02:48:50][Client B] Checking if file 'myfile' exists globally (expects: true)
[2018-03-08 02:48:50][Client A] Disconnecting
[2018-03-08 02:48:50][Client B] Disconnecting
[2018-03-08 02:48:50][Master] Requesting Client A to stop
[2018-03-08 02:48:52][Master] Requesting Client B to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:49:01][Master] Starting test 'CONNECTED -- Simple LocalFileExists'
[2018-03-08 02:49:01][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:49:01][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:49:01][Client A] DFS mounted
[2018-03-08 02:49:01][Client A] Opening file 'myfile' for READ
[2018-03-08 02:49:01][Client A] Closing file 'myfile'
[2018-03-08 02:49:01][Client A] Checking if file 'myfile' exists locally (expects: true)
[2018-03-08 02:49:01][Client A] Disconnecting
[2018-03-08 02:49:01][Master] Requesting Client A to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:49:10][Master] Starting test 'CONNECTED -- Simple open'
[2018-03-08 02:49:10][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:49:10][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:49:10][Client A] DFS mounted
[2018-03-08 02:49:10][Client A] Opening file 'myfile' for READ
[2018-03-08 02:49:10][Client A] Closing file 'myfile'
[2018-03-08 02:49:10][Client A] Disconnecting
[2018-03-08 02:49:10][Master] Requesting Client A to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:49:18][Master] Starting test 'CONNECTED -- Simple read'
[2018-03-08 02:49:18][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:49:18][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:49:18][Client A] DFS mounted
[2018-03-08 02:49:18][Client A] Opening file 'myfile' for READ
[2018-03-08 02:49:18][Client A] Reading chunk 3 from file 'myfile' (expects empty chunk)
[2018-03-08 02:49:18][Client A] Closing file 'myfile'
[2018-03-08 02:49:18][Client A] Disconnecting
[2018-03-08 02:49:18][Master] Requesting Client A to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:49:27][Master] Starting test 'CONNECTED -- Simple write'
[2018-03-08 02:49:27][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:49:27][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:49:27][Client A] DFS mounted
[2018-03-08 02:49:27][Client A] Opening file 'myfile' for WRITE
[2018-03-08 02:49:27][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'myfile'
[2018-03-08 02:49:27][Client A] Reading chunk 3 from file 'myfile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:49:27][Client A] Closing file 'myfile'
[2018-03-08 02:49:27][Client A] Disconnecting
[2018-03-08 02:49:27][Master] Requesting Client A to stop
SUCCESS
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:49:35][Master] Starting test 'CONNECTED -- Single Client'
[2018-03-08 02:49:35][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:49:35][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:49:35][Client A] DFS mounted
[2018-03-08 02:49:35][Client A] Opening file 'Invalid name!' for WRITE [error expected: BadFilenameError]
[2018-03-08 02:49:35][Client A] Opening file 'myfile' for WRITE
[2018-03-08 02:49:35][Client A] Reading chunk 3 from file 'myfile' (expects empty chunk)
[2018-03-08 02:49:35][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'myfile'
[2018-03-08 02:49:35][Client A] Reading chunk 3 from file 'myfile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:49:35][Client A] Closing file 'myfile'
[2018-03-08 02:49:35][Client A] Disconnecting
[2018-03-08 02:49:35][Client B] Mounting DFS at /tmp/clientB/
[2018-03-08 02:49:35][Client B] DFS mounted
[2018-03-08 02:49:35][Client B] Checking if file 'myfile' exists globally (expects: true)
[2018-03-08 02:49:35][Client B] Checking if file 'somefile' exists locally (expects: false)
[2018-03-08 02:49:35][Master] Requesting Client A to stop
[2018-03-08 02:49:37][Master] Requesting Client B to stop
Test ended abruptly with error: Error processing 'LocalFileExists' by Client B: DFS: Cannot open file [somefile] in D mode as it does not exist locally
===================
[TESTS] Running command [~/master -server 10.1.1.15:4444 -test test.json] on Azure VM
[2018-03-08 02:49:47][Master] Starting test 'DISCONNECTED -- transitory disconnections should be unobservable'
[2018-03-08 02:49:47][Master] Setting up RPC interface at 10.1.1.13:8484
[2018-03-08 02:49:47][Client A] Mounting DFS at /tmp/clientA/
[2018-03-08 02:49:47][Client A] DFS mounted
[2018-03-08 02:49:47][Client A] Opening file 'thefile' for WRITE
[2018-03-08 02:49:47][Client A] Writing 'Hello from CPSC 416!' on chunk 3 of file 'thefile'
[2018-03-08 02:49:47][Client A] Going offline (losing connection with server at 10.1.1.15)
[2018-03-08 02:49:49][Client A] Going online (able to talk to server at 10.1.1.15)
[2018-03-08 02:49:49][Client A] Sleeping for 5 seconds
[2018-03-08 02:49:54][Client A] Reading chunk 3 from file 'thefile' (expects: 'Hello from CPSC 416!')
[2018-03-08 02:49:54][Client A] Closing file 'thefile'
[2018-03-08 02:49:54][Client A] Disconnecting
[2018-03-08 02:49:54][Master] Requesting Client A to stop
SUCCESS