[SERVER-15299] Bench operation find options skip, batchSize & expected cause an error when set Created: 18/Sep/14  Updated: 10/May/22

Status: Backlog
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Brian Towles Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 0
Labels: 28qa, move-sa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File SERVER-15299-simple-patch.diff    
Issue Links:
Depends
Operating System: ALL
Steps To Reproduce:

var ops=[{ op: "find", query: {}, skip: 1}];
for ( var x = 1; x <= 1; x++) { res = benchRun(

{seconds : 1,ops : ops}

); print( "queries/sec: " + res.query ); }

Participants:

 Description   

The bench find operation options skip, batchSize and expected are throwing an exception when used because they are not being interpreted to BSON with the correct type. They are coming across as float instead of int. The code in bench.cpp (line 438) is using the .Int() conversion which does a check on the data type from the BSON. Limit is working correctly because it does the .numberInt() conversion.

The same thing happens for batchSize and expected.

2014-09-17T19:00:11.618-0500 I -        Assertion: 13111:field not found, expected type 2
2014-09-17T19:00:11.619-0500 I -
 0x1001d5d0a 0x10018610b 0x100174016 0x100173ecc 0x10000afcf 0x100008741 0x100142884 0x100141fad 0x100210df1 0x7fff9564b899 0x7fff9564b72a 0x7fff9564ffc9
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"100000000","o":"1D5D0A"},{"b":"100000000","o":"18610B"},{"b":"100000000","o":"174016"},{"b":"100000000","o":"173ECC"},{"b":"100000000","o":"AFCF"},{"b":"100000000","o":"8741"},{"b":"100000000","o":"142884"},{"b":"100000000","o":"141FAD"},{"b":"100000000","o":"210DF1"},{"b":"7FFF9564A000","o":"1899"},{"b":"7FFF9564A000","o":"172A"},{"b":"7FFF9564A000","o":"5FC9"}],"processInfo":{ "mongodbVersion" : "2.7.7-pre-", "gitVersion" : "8da54bf660d2a5095e0e20c94734f784d49f0aeb", "uname" : { "sysname" : "Darwin", "release" : "13.3.0", "version" : "Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64", "machine" : "x86_64" }, "somap" : [ { "path" : "/Users/brian/Development/MongoDB/mongo/./mongo.broke", "machType" : 2, "b" : "100000000", "buildId" : "FF907BF6864A31E285D6FA237FB51AE6" }, { "path" : "/usr/lib/libSystem.B.dylib", "machType" : 6, "b" : "7FFF8C1A7000", "buildId" : "E303F2F8A8CF3DF384B3F2D0EE41CCF6" }, { "path" : "/usr/lib/libstdc++.6.dylib", "machType" : 6, "b" : "7FFF8E0CC000", "buildId" : "0241E6A4136833BE950BD0A175C41F54" }, { "path" : "/usr/lib/system/libcache.dylib", "machType" : 6, "b" : "7FFF8C369000", "buildId" : "8C1EFC4F3F513DE9A973360B461F3D65" }, { "path" : "/usr/lib/system/libcommonCrypto.dylib", "machType" : 6, "b" : "7FFF91B73000", "buildId" : "79B8E80FE59633028243EC479B9546CA" }, { "path" : "/usr/lib/system/libcompiler_rt.dylib", "machType" : 6, "b" : "7FFF93CC2000", "buildId" : "2A8900040A783E339AC5A7D63BD4F879" }, { "path" : "/usr/lib/system/libcopyfile.dylib", "machType" : 6, "b" : "7FFF93B05000", "buildId" : "CF29DFF605893590834C82E2316612E8" }, { "path" : "/usr/lib/system/libcorecrypto.dylib", "machType" : 6, "b" : "7FFF92364000", "buildId" : "F3973C2814B63006BB2B00DD7F09ABC7" }, { "path" : "/usr/lib/system/libdispatch.dylib", "machType" : 6, "b" : "7FFF93F06000", "buildId" : "C4E4A18D3C3B3C9C8709A4270D998DE7" }, { "path" : "/usr/lib/system/libdyld.dylib", "machType" : 6, "b" : "7FFF93AF5000", "buildId" : "7C9EC3B7DDE333FF953F4067C743951D" }, { "path" : "/usr/lib/system/libkeymgr.dylib", "machType" : 6, "b" : "7FFF91042000", "buildId" : "D7045F25BFA43840847DAF95DF8B6CCA" }, { "path" : "/usr/lib/system/liblaunch.dylib", "machType" : 6, "b" : "7FFF8E2B9000", "buildId" : "A40A0C7B321639B48AE0B5D3BAF1DA8A" }, { "path" : "/usr/lib/system/libmacho.dylib", "machType" : 6, "b" : "7FFF8CF72000", "buildId" : "B2BE3C25CF1F309BAB991F0B54621445" }, { "path" : "/usr/lib/system/libquarantine.dylib", "machType" : 6, "b" : "7FFF92531000", "buildId" : "973BE51D6465392F9099D4AB21BF0D25" }, { "path" : "/usr/lib/system/libremovefile.dylib", "machType" : 6, "b" : "7FFF93F50000", "buildId" : "26266E3FFDDC3CFCB27F78B49BDC9BDC" }, { "path" : "/usr/lib/system/libsystem_asl.dylib", "machType" : 6, "b" : "7FFF8A7FA000", "buildId" : "B983CA60F418317BB14248A6376564FC" }, { "path" : "/usr/lib/system/libsystem_blocks.dylib", "machType" : 6, "b" : "7FFF955A3000", "buildId" : "FB856CD12AEA39078E9B1E54B6827F82" }, { "path" : "/usr/lib/system/libsystem_c.dylib", "machType" : 6, "b" : "7FFF90681000", "buildId" : "6FD3A4004BB23B95B90CBE6E9D0D78FA" }, { "path" : "/usr/lib/system/libsystem_configuration.dylib", "machType" : 6, "b" : "7FFF90B25000", "buildId" : "4998CB6A9D54390A9F575D1AC53C135C" }, { "path" : "/usr/lib/system/libsystem_dnssd.dylib", "machType" : 6, "b" : "7FFF8CF03000", "buildId" : "17B03FFD92C532829981EBB28B456207" }, { "path" : "/usr/lib/system/libsystem_info.dylib", "machType" : 6, "b" : "7FFF899EE000", "buildId" : "395D8CD6616A3BD3A195C6D68EB9AB22" }, { "path" : "/usr/lib/system/libsystem_kernel.dylib", "machType" : 6, "b" : "7FFF95B76000", "buildId" : "873931CED1AF3596AADBD2E63C9AB29F" }, { "path" : "/usr/lib/system/libsystem_m.dylib", "machType" : 6, "b" : "7FFF8A2AD000", "buildId" : "9D96AACD58703A5CB8497F9C0F6EBB09" }, { "path" : "/usr/lib/system/libsystem_malloc.dylib", "machType" : 6, "b" : "7FFF94A0F000", "buildId" : "A695B4E438E9332EA77229D31E3F1385" }, { "path" : "/usr/lib/system/libsystem_network.dylib", "machType" : 6, "b" : "7FFF916BE000", "buildId" : "A499D688916537768C8EC018897B5B13" }, { "path" : "/usr/lib/system/libsystem_notify.dylib", "machType" : 6, "b" : "7FFF92581000", "buildId" : "31F9FEF52897328A8441B7BDFEDB10D4" }, { "path" : "/usr/lib/system/libsystem_platform.dylib", "machType" : 6, "b" : "7FFF9169E000", "buildId" : "3C3D3DA832B9324398ECD89B9A1670B3" }, { "path" : "/usr/lib/system/libsystem_pthread.dylib", "machType" : 6, "b" : "7FFF9564A000", "buildId" : "9DA50FD0D9AC3051AD4BBA0D745BC49C" }, { "path" : "/usr/lib/system/libsystem_sandbox.dylib", "machType" : 6, "b" : "7FFF95391000", "buildId" : "0D0B13EA6B7A3AC8BE60B548543BEB77" }, { "path" : "/usr/lib/system/libsystem_stats.dylib", "machType" : 6, "b" : "7FFF8E01C000", "buildId" : "4E51D5B092A03D0DB90E495A1ED3E391" }, { "path" : "/usr/lib/system/libunc.dylib", "machType" : 6, "b" : "7FFF9343A000", "buildId" : "C3737C9AC06F310CB78C7D8D882A35DE" }, { "path" : "/usr/lib/system/libunwind.dylib", "machType" : 6, "b" : "7FFF8CF7A000", "buildId" : "95D4D11833683474989D271DE18C8365" }, { "path" : "/usr/lib/system/libxpc.dylib", "machType" : 6, "b" : "7FFF924DB000", "buildId" : "AB40CD57F4543FD4B41563B3C0D5C624" }, { "path" : "/usr/lib/libobjc.A.dylib", "machType" : 6, "b" : "7FFF94A4A000", "buildId" : "F21C57427B9C31F1BBAE1717BC6C2F1B" }, { "path" : "/usr/lib/libauto.dylib", "machType" : 6, "b" : "7FFF89974000", "buildId" : "F45C36E8B6063886B5B1B6745E757CA8" }, { "path" : "/usr/lib/libc++abi.dylib", "machType" : 6, "b" : "7FFF89745000", "buildId" : "21A807D367323455B77F743E9F916DF0" }, { "path" : "/usr/lib/libc++.1.dylib", "machType" : 6, "b" : "7FFF955A5000", "buildId" : "2CB96D101E3E39B1B90DC56C3818321E" }, { "path" : "/usr/lib/libDiagnosticMessagesClient.dylib", "machType" : 6, "b" : "7FFF8E2B7000", "buildId" : "4CDB0F7BC0AF3424BC39495696F0DB1E" } ] }}
 mongo.broke(_ZN5mongo15printStackTraceERSo+0x3A) [0x1001d5d0a]
 mongo.broke(_ZN5mongo10logContextEPKc+0xDB) [0x10018610b]
 mongo.broke(_ZN5mongo11msgassertedEiPKc+0x146) [0x100174016]
 mongo.broke(_ZN5mongo11msgassertedEiRKSs+0xC) [0x100173ecc]
 mongo.broke(_ZNK5mongo11BSONElement3chkEi+0x37F) [0x10000afcf]
 mongo.broke(_ZNK5mongo11BSONElement6StringEv+0x21) [0x100008741]
 mongo.broke(_ZN5mongo14BenchRunWorker24generateLoadOnConnectionEPNS_12DBClientBaseE+0x2C4) [0x100142884]
 mongo.broke(_ZN5mongo14BenchRunWorker3runEv+0xCD) [0x100141fad]
 mongo.broke(_ZN5boost12_GLOBAL__N_112thread_proxyEPv+0xB1) [0x100210df1]
 libsystem_pthread.dylib(_pthread_body+0x8A) [0x7fff9564b899]
 libsystem_pthread.dylib(_pthread_struct_init+0x0) [0x7fff9564b72a]
 libsystem_pthread.dylib(thread_start+0xD) [0x7fff9564ffc9]
-----  END BACKTRACE  -----
2014-09-17T19:00:11.620-0500 E -        DBException not handled in benchRun thread :: caused by :: 13111 field not found, expected type 2



 Comments   
Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Generated at Thu Feb 08 03:37:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.