Hi Team,
Attempting to advance the clock to January 21, 2038, and testing whether I can establish a new replica set. However, it fails to start up with the following error message.
“t”:{“$date”:“2038-01-21T11:01:04.008+00:00”},“s”:“D1”, “c”:“-”, “id”:23074, “ctx”:“conn1”,“msg”:“User assertion”,“attr”:{“error”:“Location40482: $clusterTime cannot be advanced beyond the maximum logical time value”,“file”:“src/mongo/db/vector_clock_mutable.cpp”,“line”:99}}
{“t”:{“$date”:“2038-01-21T11:01:04.009+00:00”},“s”:“E”, “c”:“REPL”, “id”:21427, “ctx”:“conn1”,“msg”:“replSetInitiate failed to store config document or create the oplog”,“attr”:{“error”:{“code”:40482,“codeName”:“Location40482”,“errmsg”:“$clusterTime cannot be advanced beyond the maximum logical time value”}}}
{“t”:{“$date”:“2038-01-21T11:01:04.009+00:00”},“s”:“D1”, “c”:“-”, “id”:23074, “ctx”:“conn1”,“msg”:“User assertion”,“attr”:{“error”:“Location40482: $clusterTime cannot be advanced beyond the maximum logical time value”,“file”:“src/mongo/db/repl/repl_set_commands.cpp”,“line”:385}}
buildInfo
db.serverBuildInfo()
{
“version” : “5.0.20”,
“gitVersion” : “2cd626d8148120319d7dca5824e760fe220cb0de”,
“modules” : ,
“allocator” : “tcmalloc”,
“javascriptEngine” : “mozjs”,
“sysInfo” : “deprecated”,
“versionArray” : [
5,
0,
20,
0
],
“openssl” : {
“running” : “OpenSSL 1.1.1k FIPS 25 Mar 2021”,
“compiled” : “OpenSSL 1.1.1 FIPS 11 Sep 2018”
},
“buildEnvironment” : {
“distmod” : “rhel80”,
“distarch” : “x86_64”,
“cc” : “/opt/mongodbtoolchain/v3/bin/gcc: gcc (GCC) 8.5.0”,
“ccflags” : “-Werror -include mongo/platform/basic.h -ffp-contract=off -fasynchronous-unwind-tables -ggdb -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O2 -march=sandybridge -mtune=generic -mprefer-vector-width=128 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -Wa,–nocompress-debug-sections -fno-builtin-memcmp”,
“cxx” : “/opt/mongodbtoolchain/v3/bin/g++: g++ (GCC) 8.5.0”,
“cxxflags” : “-Woverloaded-virtual -Wno-maybe-uninitialized -fsized-deallocation -std=c++17”,
“linkflags” : “-Wl,–fatal-warnings -pthread -Wl,-z,now -fuse-ld=gold -fstack-protector-strong -Wl,–no-threads -Wl,–build-id -Wl,–hash-style=gnu -Wl,-z,noexecstack -Wl,–warn-execstack -Wl,-z,relro -Wl,–compress-debug-sections=none -Wl,-z,origin -Wl,–enable-new-dtags”,
“target_arch” : “x86_64”,
“target_os” : “linux”,
“cppdefines” : “SAFEINT_USE_INTRINSICS 0 PCRE_STATIC NDEBUG _XOPEN_SOURCE 700 _GNU_SOURCE _FORTIFY_SOURCE 2 BOOST_THREAD_VERSION 5 BOOST_THREAD_USES_DATETIME BOOST_SYSTEM_NO_DEPRECATED BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS BOOST_ENABLE_ASSERT_DEBUG_HANDLER BOOST_LOG_NO_SHORTHAND_NAMES BOOST_LOG_USE_NATIVE_SYSLOG BOOST_LOG_WITHOUT_THREAD_ATTR ABSL_FORCE_ALIGNED_ACCESS”
},
“bits” : 64,
“debug” : false,
“maxBsonObjectSize” : 16777216,
“storageEngines” : [
“devnull”,
“ephemeralForTest”,
“wiredTiger”
],
“ok” : 1
}
Please inform us if there are any outstanding issues with MongoDB regarding its support for dates beyond 2038 or its susceptibility to the 2038 superbug.
Thanks,
Venkataraman