Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30920

Starting MongoDB 3.4 where previously collections were created with FCV 3.6 result in an abort.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.2, 3.4.7
    • Component/s: None
    • None
    • Fully Compatible
    • ALL

      I have been playing with 3.6 (well, writing code for it). And the tests for this created collections with the UUID fields:

      		"info" : {
      			"readOnly" : false,
      			"uuid" : UUID("13e11009-5e17-4d26-9d58-f71fb72434ec")
      		},
      

      If you start a 3.4(.2) binary with the same data, I get an abort:

      2017-09-01T15:47:52.253+0100 I -        [initandlisten] Fatal assertion 18523 InvalidOptions: The field 'uuid' is not a valid collection option. Options: { uuid: BinData(4, 2BD63EE54DEE4018B515375917164657) } at src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp 876
      2017-09-01T15:47:52.253+0100 I -        [initandlisten] 
      
      ***aborting after fassert() failure
      
      
      2017-09-01T15:47:52.277+0100 F -        [initandlisten] Got signal: 6 (Aborted).
      
       0x559b7e22a03a 0x559b7e229179 0x559b7e229646 0x7f7910d6e0c0 0x7f79109f0fcf 0x7f79109f23fa 0x559b7d4ceb6b 0x559b7deefacb 0x559b7de9bda6 0x559b7d6a4f35 0x559b7d6bd355 0x559b7d6c40e6 0x559b7d6c7f8c 0x559b7d4bc6e4 0x559b7d4d9647 0x7f79109de2b1 0x559b7d535dea
      ----- BEGIN BACKTRACE -----
      {"backtrace":[{"b":"559B7CD66000","o":"14C403A","s":"_ZN5mongo15printStackTraceERSo"},{"b":"559B7CD66000","o":"14C3179"},{"b":"559B7CD66000","o":"14C3646"},{"b":"7F7910D5D000","o":"110C0"},{"b":"7F79109BE000","o":"32FCF","s":"gsignal"},{"b":"7F79109BE000","o":"343FA","s":"abort"},{"b":"559B7CD66000","o":"768B6B","s":"_ZN5mongo42fassertFailedWithStatusNoTraceWithLocationEiRKNS_6StatusEPKcj"},{"b":"559B7CD66000","o":"1189ACB","s":"_ZNK5mongo26MMAPV1DatabaseCatalogEntry20getCollectionOptionsEPNS_16OperationContextENS_8RecordIdE"},{"b":"559B7CD66000","o":"1135DA6","s":"_ZNK5mongo38NamespaceDetailsCollectionCatalogEntry20getCollectionOptionsEPNS_16OperationContextE"},{"b":"559B7CD66000","o":"93EF35","s":"_ZN5mongo10CollectionC2EPNS_16OperationContextENS_10StringDataEPNS_22CollectionCatalogEntryEPNS_11RecordStoreEPNS_20DatabaseCatalogEntryE"},{"b":"559B7CD66000","o":"957355","s":"_ZN5mongo8Database30_getOrCreateCollectionInstanceEPNS_16OperationContextENS_10StringDataE"},{"b":"559B7CD66000","o":"95E0E6","s":"_ZN5mongo8DatabaseC1EPNS_16OperationContextENS_10StringDataEPNS_20DatabaseCatalogEntryE"},{"b":"559B7CD66000","o":"961F8C","s":"_ZN5mongo14DatabaseHolder6openDbEPNS_16OperationContextENS_10StringDataEPb"},{"b":"559B7CD66000","o":"7566E4"},{"b":"559B7CD66000","o":"773647","s":"main"},{"b":"7F79109BE000","o":"202B1","s":"__libc_start_main"},{"b":"559B7CD66000","o":"7CFDEA","s":"_start"}],"processInfo":{ "mongodbVersion" : "3.4.2", "gitVersion" : "3f76e40c105fc223b3e5aac3e20dcd026b83b38b", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "4.11.0-1-amd64", "version" : "#1 SMP Debian 4.11.6-1 (2017-06-19)", "machine" : "x86_64" }, "somap" : [ { "b" : "559B7CD66000", "elfType" : 3, "buildId" : "2102A555C906F5ECDEB23A07140EAED76EDC9572" }, { "b" : "7FFDBF9E0000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "2599E5C063EEB45C3B0068E66A8251A66F313AFA" }, { "b" : "7F7911A1A000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "FB5E4E59A041C98A248C57FB632FEF8CAAB578D9" }, { "b" : "7F7911816000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "34876D72793831D3D6CD3D147B8FC0EA75449176" }, { "b" : "7F7911495000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "D5AB2A600249A2ADEB3F382122D65E71A5BAA551" }, { "b" : "7F7911191000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "855CA149F0DD22571619ED74C4AFE02B8CAD566C" }, { "b" : "7F7910F7A000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "80951BF2C5B73B2DA6626271DC1C29F803A289B6" }, { "b" : "7F7910D5D000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "CB6D088FFF325890F77A76F5149C24FBFA451FEB" }, { "b" : "7F79109BE000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "CC80584889DB7A969292959A46C718A2B1500702" }, { "b" : "7F7911C22000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "406841A557B6674C3E8BF7C8C6BE4D23183B6088" } ] }}
       mongod(_ZN5mongo15printStackTraceERSo+0x3A) [0x559b7e22a03a]
       mongod(+0x14C3179) [0x559b7e229179]
       mongod(+0x14C3646) [0x559b7e229646]
       libpthread.so.0(+0x110C0) [0x7f7910d6e0c0]
       libc.so.6(gsignal+0xCF) [0x7f79109f0fcf]
       libc.so.6(abort+0x16A) [0x7f79109f23fa]
       mongod(_ZN5mongo42fassertFailedWithStatusNoTraceWithLocationEiRKNS_6StatusEPKcj+0x0) [0x559b7d4ceb6b]
       mongod(_ZNK5mongo26MMAPV1DatabaseCatalogEntry20getCollectionOptionsEPNS_16OperationContextENS_8RecordIdE+0x3BB) [0x559b7deefacb]
       mongod(_ZNK5mongo38NamespaceDetailsCollectionCatalogEntry20getCollectionOptionsEPNS_16OperationContextE+0x36) [0x559b7de9bda6]
       mongod(_ZN5mongo10CollectionC2EPNS_16OperationContextENS_10StringDataEPNS_22CollectionCatalogEntryEPNS_11RecordStoreEPNS_20DatabaseCatalogEntryE+0x155) [0x559b7d6a4f35]
       mongod(_ZN5mongo8Database30_getOrCreateCollectionInstanceEPNS_16OperationContextENS_10StringDataE+0xA5) [0x559b7d6bd355]
       mongod(_ZN5mongo8DatabaseC1EPNS_16OperationContextENS_10StringDataEPNS_20DatabaseCatalogEntryE+0x6E6) [0x559b7d6c40e6]
       mongod(_ZN5mongo14DatabaseHolder6openDbEPNS_16OperationContextENS_10StringDataEPb+0xDBC) [0x559b7d6c7f8c]
       mongod(+0x7566E4) [0x559b7d4bc6e4]
       mongod(main+0x15C7) [0x559b7d4d9647]
       libc.so.6(__libc_start_main+0xF1) [0x7f79109de2b1]
       mongod(_start+0x2A) [0x559b7d535dea]
      -----  END BACKTRACE  -----
      

      Even after setting FCV to 3.4 with:

      MongoDB Enterprise > db.getSiblingDB("admin").system.version.update({}, {$set: {"version": "3.4"}})
      WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
      MongoDB Enterprise > db.system.version.find()
      { "_id" : "featureCompatibilityVersion", "version" : "3.4" }
      

      the abort persisted.

      Eric and Dan G. recommended I filed this report.

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: