Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1411708

Summary: s390x wiredtiger unittests failure
Product: [Fedora] Fedora Reporter: Marek Skalický <mskalick>
Component: mongodbAssignee: Marek Skalický <mskalick>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, bugproxy, chris, dan, hannsj_uhl, hhorak, johan.o.hedin, jpacner, mskalick, strobert, tdawson, trepik
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-13 12:14:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    
Attachments:
Description Flags
Log from running failing unittests none

Description Marek Skalický 2017-01-10 11:08:06 UTC
Created attachment 1239047 [details]
Log from running failing unittests

Description of problem:
On s390x machine some MongoDB storage driver unittests are failing.

Version-Release number of selected component (if applicable):
mongodb-3.4.1-2 RPM from Fedora rawhide - http://pkgs.fedoraproject.org/cgit/rpms/mongodb.git/tree/
(building without using system libraries and using bundled one, result in same failure)

How reproducible:
- rebuilding RPM from Fedora Rawhide

- build MongoDB 3.4.1 from source with these commands:
$ cat > variables.list
CFLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=z9-109 -mtune=z10"
LINKFLAGS="-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory"
CPPDEFINES="BOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE "
VERBOSE=1


$ scons all -j4 --ssl --nostrip --disable-warnings-as-errors --variables-files=variables.list

and run unittest testsuite:
$./buildscripts/resmoke.py --dbpathPrefix ./var --continueOnFailure --nopreallocj --suites unittests --storageEngine=wiredTiger



Actual results:
[resmoke] 2017-01-09T10:45:13.523+0000 Summary of unittests suite: 306 test(s) ran in 826.50 seconds (302 succeeded, 0 were skipped, 4 failed, 0 errored)
    cpp_unit_tests: 306 test(s) ran in 826.50 seconds (302 succeeded, 0 were skipped, 4 failed, 0 errored)
        The following tests failed (with exit code):
            build/opt/mongo/db/storage/wiredtiger/storage_wiredtiger_index_test (-4)
            build/opt/mongo/db/storage/wiredtiger/storage_wiredtiger_kv_engine_test (-4)
            build/opt/mongo/db/storage/wiredtiger/storage_wiredtiger_record_store_test (-4)
            build/opt/mongo/db/storage/wiredtiger/storage_wiredtiger_util_test (-4)


Expected results:
All unittests in testsuite passes

Additional info:
Upstream bug - https://jira.mongodb.org/browse/SERVER-27620

Comment 1 IBM Bug Proxy 2017-01-12 07:41:07 UTC
------- Comment From hannsj_uhl.com 2017-01-12 02:32 EDT-------
Comment from  Cindy Lee 2017-01-11 12:58:39 CST

Upstream bug at https://jira.mongodb.org/browse/SERVER-27620
has latest update from mongoDB now, they seem to be aware of it too,
they provide solution there.
Looks like all you need to do is put a flag of --use-s390x-crc32=off

Comment 2 Marek Skalický 2017-01-13 12:14:28 UTC
Thanks. It is working with this flag.
However it would be nice to be able to detect presence of z13 (~having CRC32 instructions) on runtime...

Closing this bugs - it is fixed in Fedora Rawhide.