[SERVER-35341] Invariant failure in logical_session_cache_stats_gen.cpp Created: 01/Jun/18  Updated: 22/Jun/18  Resolved: 22/Jun/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 4.0.0-rc1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Jack Mulrow
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Backports
Duplicate
duplicates SERVER-35706 Fix race in ctor for LogicalSessionCa... Closed
Related
Operating System: ALL
Backport Requested:
v4.0
Sprint: Sharding 2018-07-02
Participants:
Linked BF Score: 50

 Description   

I recently started testing the Tools on Windows against server 4.0 and observed two intermittent failures due to an invariant exception. Here are links to the two cases I saw:

Here is an example of the output:

[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.000+0000 d20510| 2018-06-01T02:45:04.000+0000 F -        [ftdc] Invariant failure _hasLastSessionsCollectionJobTimestamp && _hasLastTransactionReaperJobTimestamp build\cached\mongo\db\logical_session_cache_stats_gen.cpp 228
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.017+0000 d20510| 2018-06-01T02:45:04.018+0000 F -        [ftdc]
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.017+0000 d20510|
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.017+0000 d20510| ***aborting after invariant() failure
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.017+0000 d20510|
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.017+0000 d20510|
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.038+0000 d20510| 2018-06-01T02:45:04.038+0000 F -        [ftdc] Got signal: 22 (SIGABRT).
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.038+0000 d20510| mongod.exe      index_collator_extension+0x13659683x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.038+0000 d20510| mongod.exe      index_collator_extension+0x13672884x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.038+0000 d20510| mongod.exe      index_collator_extension+0x13666981x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.038+0000 d20510| ucrtbase.DLL    raise+0x488x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| ucrtbase.DLL    abort+0x49x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x13696122x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x9860391x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x9860663x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x9623920x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      ???
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x9858434x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x10555100x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x10556063x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x294208x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x390427x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x382419x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      index_collator_extension+0x381015x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| mongod.exe      queryableWtFsCreate+0x37241x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| ucrtbase.DLL    crt_at_quick_exit+0x125x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| kernel32.dll    BaseThreadInitThunk+0x13x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| 2018-06-01T02:45:04.038+0000 I CONTROL  [ftdc] *** unhandled exception 0x0000000E at 0x000007FEFCD4A06D, terminating
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.039+0000 d20510| 2018-06-01T02:45:04.038+0000 I CONTROL  [ftdc] *** stack trace for unhandled exception:
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.043+0000 d20510| 2018-06-01T02:45:04.044+0000 I -        [ftdc] KERNELBASE.dll    RaiseException+0x61x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.043+0000 d20510| mongod.exe        index_collator_extension+0x13667005x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.043+0000 d20510| ucrtbase.DLL      raise+0x488x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.043+0000 d20510| ucrtbase.DLL      abort+0x49x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.043+0000 d20510| mongod.exe        index_collator_extension+0x13696122x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x9860391x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x9860663x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x9623920x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        ???
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x9858434x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x10555100x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x10556063x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x294208x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x390427x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x382419x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        index_collator_extension+0x381015x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| mongod.exe        queryableWtFsCreate+0x37241x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| ucrtbase.DLL      crt_at_quick_exit+0x125x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| kernel32.dll      BaseThreadInitThunk+0x13x
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.045+0000 d20510| 2018-06-01T02:45:04.044+0000 I CONTROL  [ftdc] writing minidump diagnostic file C:\data\mci\5a31afcc8e2f4b3e305d231fbed67da8\src\test\qa-tests\mongod.2018-06-01T02-45-04.mdmp
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:04.063+0000 d20510| 2018-06-01T02:45:04.063+0000 I NETWORK  [listener] connection accepted from 127.0.0.1:54598 #3 (2 connections now open)
[js_test:mode_upsert_id_subdoc] 2018-06-01T02:45:05.187+0000 d20510| 2018-06-01T02:45:05.188+0000 I CONTROL  [ftdc] *** immediate exit due to unhandled exception



 Comments   
Comment by Jack Mulrow [ 22/Jun/18 ]

The failure in this ticket was separately diagnosed and resolved under SERVER-35706, so I'm closing this ticket as a duplicate of that one.

Comment by David Golden [ 01/Jun/18 ]

Another example: mongofiles_put.js (Server 4.0.0-rc1)

Comment by Mark Benvenuto [ 01/Jun/18 ]

There are build failures with the same failure on Linux.

A workaround is to set the default for the timestamp fields in IDL to Date_t::min(). I cannot see the bug from the reading the code. Assigning to sharding.

Generated at Thu Feb 08 04:39:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.