[SERVER-22099] Remove unreliable check in cleanup_orphaned_basic.js Created: 04/Jan/16  Updated: 18/Nov/16  Resolved: 07/Jan/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.2.3, 3.3.0

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Misha Tyulenev
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding E (01/08/16), Sharding F (01/29/16)
Participants:

 Description   

No need to test cleanupOrphaned when mongod is sharding aware but collection is unsharded as in this case cleanupOrphaned still returns
true. Also this check causes intermittent failures as sometime mongod becomes sharding aware before its executed.



 Comments   
Comment by Misha Tyulenev [ 24/Feb/16 ]

BF has happened again:
https://evergreen.mongodb.com/task/mongodb_mongo_v3.2_enterprise_rhel_62_64_bit_sharding_auth_audit_WT_e749f69d7ecd9e118dfd0610d9812773008b8c20_16_02_24_14_55_57

[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.183+0000 cleanupOrphaned on secondary:
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.183+0000

{ "ok" : 0, "errmsg" : "not master", "code" : 10107 }

[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.184+0000 d20761| 2016-02-24T17:54:51.184+0000 I SHARDING [conn13] remotely refreshing metadata for \/."*<>:|?, current shard version is 0|0||000000000000000000000000, current metadata version is 0|0||000000000000000000000000
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.185+0000 c20766| 2016-02-24T17:54:51.184+0000 I NETWORK [initandlisten] connection accepted from 10.203.164.107:60124 #15 (11 connections now open)
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.204+0000 c20766| 2016-02-24T17:54:51.204+0000 I ACCESS [conn15] Successfully authenticated as principal __system on local
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.205+0000 c20766| { "atype" : "authenticate", "ts" :

{ "$date" : "2016-02-24T17:54:51.204+0000" }

, "local" :

{ "ip" : "10.203.164.107", "port" : 20766 }

, "remote" :

{ "ip" : "10.203.164.107", "port" : 60124 }

, "users" : [

{ "user" : "__system", "db" : "local" }

], "roles" : [], "param" :

{ "user" : "__system", "db" : "local", "mechanism" : "SCRAM-SHA-1" }

, "result" : 0 }
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.206+0000 d20761| 2016-02-24T17:54:51.205+0000 I ASIO [NetworkInterfaceASIO-ShardRegistry-0] Successfully connected to ip-10-203-164-107:20766
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.207+0000 d20761| 2016-02-24T17:54:51.206+0000 I SHARDING [conn13] metadata of collection \/."*<>:|? already up to date (shard version : 0|0||000000000000000000000000, took 22ms)
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.207+0000 d20761| 2016-02-24T17:54:51.206+0000 W COMMAND [conn13] skipping orphaned data cleanup for \/."*<>:|?, collection is not sharded
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.208+0000 assert: command worked when it should have failed:

{ "ok" : 1 }

: undefined
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.208+0000 doassert@src/mongo/shell/assert.js:15:14
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.208+0000 assert.commandFailed@src/mongo/shell/assert.js:274:5
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.208+0000 @jstests/sharding/cleanup_orphaned_basic.js:53:1
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.208+0000 @jstests/sharding/cleanup_orphaned_basic.js:6:2
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.209+0000
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.209+0000 2016-02-24T17:54:51.207+0000 E QUERY [thread1] Error: command worked when it should have failed:

{ "ok" : 1 }

: undefined :
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.209+0000 doassert@src/mongo/shell/assert.js:15:14
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.209+0000 assert.commandFailed@src/mongo/shell/assert.js:274:5
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.209+0000 @jstests/sharding/cleanup_orphaned_basic.js:53:1
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.210+0000 @jstests/sharding/cleanup_orphaned_basic.js:6:2
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.210+0000
[js_test:cleanup_orphaned_basic] 2016-02-24T17:54:51.210+0000 failed to load: jstests/sharding/cleanup_orphaned_basic.js

Comment by Githook User [ 19/Jan/16 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-22099 remove an unreliable check in cleanupOrphaned test

(cherry picked from commit 6b95d2ee131a2b8e40f69106ac3f46921269ab46)
Branch: v3.2
https://github.com/mongodb/mongo/commit/3a1518befdf196859fb99bb38dbaefc7a1f2bd0b

Comment by Githook User [ 07/Jan/16 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-22099 remove an unreliable check in cleanupOrphaned test
Branch: master
https://github.com/mongodb/mongo/commit/6b95d2ee131a2b8e40f69106ac3f46921269ab46

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