Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-736

Un-ordered bulks result in as many round-trips as ordered

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.2.0
    • Component/s: None
    • None

      Unordered bulks are explicitly declared as allowed to be sent in any-order.

      This indicates there is an (at least attempted) optimization to group round-trips by operation to reduce round-trip cost.

      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  bd 00 00 00 01 00 00 00  00 00 00 00 d4 07 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 74 65 73 74  2e 24 63 6d 64 00 00 00  . . . . t e s t  . $ c m d . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  00 00 01 00 00 00 97 00  00 00 02 69 6e 73 65 72  . . . . . . . .  . . . i n s e r
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  74 00 05 00 00 00 62 75  6c 6b 00 03 77 72 69 74  t . . . . . b u  l k . . w r i t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  65 43 6f 6e 63 65 72 6e  00 05 00 00 00 00 08 6f  e C o n c e r n  . . . . . . . o
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  72 64 65 72 65 64 00 00  04 64 6f 63 75 6d 65 6e  r d e r e d . .  . d o c u m e n
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00060:  74 73 00 59 00 00 00 03  30 00 27 00 00 00 02 6d  t s . Y . . . .  0 . ' . . . . m
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00070:  79 00 09 00 00 00 64 6f  63 75 6d 65 6e 74 00 07  y . . . . . d o  c u m e n t . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00080:  5f 69 64 00 55 9c 15 a1  bd 21 b9 3a 5c 2c b5 b1  _ i d . U . . .  . ! . : \ , . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00090:  00 03 30 00 27 00 00 00  02 6d 79 00 09 00 00 00  . . 0 . ' . . .  . m y . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000a0:  64 6f 63 75 6d 65 6e 74  00 07 5f 69 64 00 55 9c  d o c u m e n t  . . _ i d . U .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000b0:  15 a1 bd 21 b9 3a 5c 2c  b5 b2 00 00 00           . . . ! . : \ ,  . . . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  60 00 00 00                                       ` . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  b8 01 00 00 01 00 00 00  01 00 00 00 08 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  3c 00 00 00 10 6f 6b 00  01 00 00 00 10 6e 00 02  < . . . . o k .  . . . . . n . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  00 00 00 11 6c 61 73 74  4f 70 00 02 00 00 00 a1  . . . . l a s t  O p . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  15 9c 55 07 65 6c 65 63  74 69 6f 6e 49 64 00 55  . . U . e l e c  t i o n I d . U
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  9c 15 09 10 96 83 c4 4d  82 b8 f6 00              . . . . . . . M  . . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  fd 00 00 00 02 00 00 00  00 00 00 00 d4 07 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 74 65 73 74  2e 24 63 6d 64 00 00 00  . . . . t e s t  . $ c m d . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  00 00 01 00 00 00 d7 00  00 00 02 75 70 64 61 74  . . . . . . . .  . . . u p d a t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  65 00 05 00 00 00 62 75  6c 6b 00 03 77 72 69 74  e . . . . . b u  l k . . w r i t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  65 43 6f 6e 63 65 72 6e  00 05 00 00 00 00 08 6f  e C o n c e r n  . . . . . . . o
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  72 64 65 72 65 64 00 00  04 75 70 64 61 74 65 73  r d e r e d . .  . u p d a t e s
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00060:  00 9b 00 00 00 03 30 00  48 00 00 00 03 71 00 16  . . . . . . 0 .  H . . . . q . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00070:  00 00 00 02 6d 79 00 09  00 00 00 64 6f 63 75 6d  . . . . m y . .  . . . d o c u m
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00080:  65 6e 74 00 00 03 75 00  16 00 00 00 02 64 6f 63  e n t . . . u .  . . . . . d o c
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00090:  75 6d 65 6e 74 00 03 00  00 00 6d 79 00 00 08 75  u m e n t . . .  . . m y . . . u
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000a0:  70 73 65 72 74 00 00 08  6d 75 6c 74 69 00 00 00  p s e r t . . .  m u l t i . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000b0:  03 31 00 48 00 00 00 03  71 00 16 00 00 00 02 6d  . 1 . H . . . .  q . . . . . . m
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000c0:  79 00 09 00 00 00 64 6f  63 75 6d 65 6e 74 00 00  y . . . . . d o  c u m e n t . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000d0:  03 75 00 16 00 00 00 02  64 6f 63 75 6d 65 6e 74  . u . . . . . .  d o c u m e n t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000e0:  00 03 00 00 00 6d 79 00  00 08 75 70 73 65 72 74  . . . . . m y .  . . u p s e r t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000f0:  00 00 08 6d 75 6c 74 69  00 00 00 00 00           . . . m u l t i  . . . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  6f 00 00 00                                       o . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  bb 01 00 00 02 00 00 00  01 00 00 00 08 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  4b 00 00 00 10 6f 6b 00  01 00 00 00 10 6e 4d 6f  K . . . . o k .  . . . . . n M o
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  64 69 66 69 65 64 00 02  00 00 00 10 6e 00 02 00  d i f i e d . .  . . . . n . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  00 00 11 6c 61 73 74 4f  70 00 04 00 00 00 a1 15  . . . l a s t O  p . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  9c 55 07 65 6c 65 63 74  69 6f 6e 49 64 00 55 9c  . U . e l e c t  i o n I d . U .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00060:  15 09 10 96 83 c4 4d 82  b8 f6 00                 . . . . . . M .  . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  bf 00 00 00 03 00 00 00  00 00 00 00 d4 07 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 74 65 73 74  2e 24 63 6d 64 00 00 00  . . . . t e s t  . $ c m d . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  00 00 01 00 00 00 99 00  00 00 02 64 65 6c 65 74  . . . . . . . .  . . . d e l e t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  65 00 05 00 00 00 62 75  6c 6b 00 03 77 72 69 74  e . . . . . b u  l k . . w r i t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  65 43 6f 6e 63 65 72 6e  00 05 00 00 00 00 08 6f  e C o n c e r n  . . . . . . . o
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  72 64 65 72 65 64 00 00  04 64 65 6c 65 74 65 73  r d e r e d . .  . d e l e t e s
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00060:  00 5d 00 00 00 03 30 00  29 00 00 00 03 71 00 16  . ] . . . . 0 .  ) . . . . q . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00070:  00 00 00 02 6d 79 00 09  00 00 00 64 6f 63 75 6d  . . . . m y . .  . . . d o c u m
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00080:  65 6e 74 00 00 10 6c 69  6d 69 74 00 00 00 00 00  e n t . . . l i  m i t . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00090:  00 03 31 00 29 00 00 00  03 71 00 16 00 00 00 02  . . 1 . ) . . .  . q . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000a0:  6d 79 00 09 00 00 00 64  6f 63 75 6d 65 6e 74 00  m y . . . . . d  o c u m e n t .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000b0:  00 10 6c 69 6d 69 74 00  00 00 00 00 00 00 00     . . l i m i t .  . . . . . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  60 00 00 00                                       ` . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  be 01 00 00 03 00 00 00  01 00 00 00 08 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  3c 00 00 00 10 6f 6b 00  01 00 00 00 10 6e 00 00  < . . . . o k .  . . . . . n . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  00 00 00 11 6c 61 73 74  4f 70 00 04 00 00 00 a1  . . . . l a s t  O p . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  15 9c 55 07 65 6c 65 63  74 69 6f 6e 49 64 00 55  . . U . e l e c  t i o n I d . U
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  9c 15 09 10 96 83 c4 4d  82 b8 f6 00              . . . . . . . M  . . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  b2 00 00 00 04 00 00 00  00 00 00 00 d4 07 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 74 65 73 74  2e 24 63 6d 64 00 00 00  . . . . t e s t  . $ c m d . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  00 00 01 00 00 00 8c 00  00 00 02 75 70 64 61 74  . . . . . . . .  . . . u p d a t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  65 00 05 00 00 00 62 75  6c 6b 00 03 77 72 69 74  e . . . . . b u  l k . . w r i t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  65 43 6f 6e 63 65 72 6e  00 05 00 00 00 00 08 6f  e C o n c e r n  . . . . . . . o
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  72 64 65 72 65 64 00 00  04 75 70 64 61 74 65 73  r d e r e d . .  . u p d a t e s
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00060:  00 50 00 00 00 03 30 00  48 00 00 00 03 71 00 16  . P . . . . 0 .  H . . . . q . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00070:  00 00 00 02 6d 79 00 09  00 00 00 64 6f 63 75 6d  . . . . m y . .  . . . d o c u m
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00080:  65 6e 74 00 00 03 75 00  16 00 00 00 02 64 6f 63  e n t . . . u .  . . . . . d o c
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00090:  75 6d 65 6e 74 00 03 00  00 00 6d 79 00 00 08 75  u m e n t . . .  . . m y . . . u
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000a0:  70 73 65 72 74 00 00 08  6d 75 6c 74 69 00 00 00  p s e r t . . .  m u l t i . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 000b0:  00 00                                             . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  6f 00 00 00                                       o . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  bf 01 00 00 04 00 00 00  01 00 00 00 08 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  4b 00 00 00 10 6f 6b 00  01 00 00 00 10 6e 4d 6f  K . . . . o k .  . . . . . n M o
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  64 69 66 69 65 64 00 00  00 00 00 10 6e 00 00 00  d i f i e d . .  . . . . n . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  00 00 11 6c 61 73 74 4f  70 00 04 00 00 00 a1 15  . . . l a s t O  p . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  9c 55 07 65 6c 65 63 74  69 6f 6e 49 64 00 55 9c  . U . e l e c t  i o n I d . U .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00060:  15 09 10 96 83 c4 4d 82  b8 f6 00                 . . . . . . M .  . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  93 00 00 00 05 00 00 00  00 00 00 00 d4 07 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 74 65 73 74  2e 24 63 6d 64 00 00 00  . . . . t e s t  . $ c m d . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  00 00 01 00 00 00 6d 00  00 00 02 64 65 6c 65 74  . . . . . . m .  . . . d e l e t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  65 00 05 00 00 00 62 75  6c 6b 00 03 77 72 69 74  e . . . . . b u  l k . . w r i t
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  65 43 6f 6e 63 65 72 6e  00 05 00 00 00 00 08 6f  e C o n c e r n  . . . . . . . o
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  72 64 65 72 65 64 00 00  04 64 65 6c 65 74 65 73  r d e r e d . .  . d e l e t e s
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00060:  00 31 00 00 00 03 30 00  29 00 00 00 03 71 00 16  . 1 . . . . 0 .  ) . . . . q . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00070:  00 00 00 02 6d 79 00 09  00 00 00 64 6f 63 75 6d  . . . . m y . .  . . . d o c u m
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00080:  65 6e 74 00 00 10 6c 69  6d 69 74 00 00 00 00 00  e n t . . . l i  m i t . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00090:  00 00 00                                          . . .
      
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  60 00 00 00                                       ` . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00000:  c0 01 00 00 05 00 00 00  01 00 00 00 08 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00010:  00 00 00 00 00 00 00 00  00 00 00 00 01 00 00 00  . . . . . . . .  . . . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00020:  3c 00 00 00 10 6f 6b 00  01 00 00 00 10 6e 00 00  < . . . . o k .  . . . . . n . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00030:  00 00 00 11 6c 61 73 74  4f 70 00 04 00 00 00 a1  . . . . l a s t  O p . . . . . .
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00040:  15 9c 55 07 65 6c 65 63  74 69 6f 6e 49 64 00 55  . . U . e l e c  t i o n I d . U
      [2015-07-07T18:08:33+00:00]     stream: TRACE   > 00050:  9c 15 09 10 96 83 c4 4d  82 b8 f6 00              . . . . . . . M  . . . .
      

      Currently it appears the only difference is "continueOnError" semantics.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: