To reproduce, run "test sharding" with Valgrind
Might be part of the cause for http://buildbot.mongodb.org/builders/Linux%2032-bit%20debug/builds/1763/steps/test_1/logs/stdio
==32699== Invalid write of size 8 ==32699== at 0x14D3821: mongo::DBClientConnection::setSoTimeout(double) (dbclientinterface.h:1025) ==32699== by 0x14D337A: mongo::ScopedDbConnection::_setSocketTimeout() (connpool.cpp:391) ==32699== by 0x12300E4: mongo::ScopedDbConnection::ScopedDbConnection(std::string const&, double) (connpool.h:206) ==32699== by 0x15AA081: mongo::ChunkManager::calcInitSplitsAndShards(mongo::Shard const&, std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj> > const*, std::vector<mongo::Shard, std::allocator<mongo::Shard> > const*, std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj> >*, std::vector<mongo::Shard, std::allocator<mongo::Shard> >*) const (chunk.cpp:913) ==32699== by 0x15AA5CD: mongo::ChunkManager::createFirstChunks(std::string const&, mongo::Shard const&, std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj> > const*, std::vector<mongo::Shard, std::allocator<mongo::Shard> > const*) (chunk.cpp:960) ==32699== by 0x1142872: ShardingTests::ChunkManagerCreateBasicTest::run() (sharding.cpp:101) ==32699== by 0x114AE3E: mongo::unittest::TestHolderBase<ShardingTests::ChunkManagerCreateBasicTest>::run() (unittest.h:86) ==32699== by 0x1220DC0: mongo::unittest::Suite::run(std::string const&) (unittest.cpp:121) ==32699== by 0x1221511: mongo::unittest::Suite::run(std::vector<std::string, std::allocator<std::string> > const&, std::string const&) (unittest.cpp:183) ==32699== by 0x15EBF8D: mongo::dbtests::runDbTests(int, char**, std::string) (framework.cpp:254) ==32699== by 0xF03134: main (dbtests.cpp:29) ==32699== Address 0x6cf8be0 is 14 bytes after a block of size 34 free'd ==32699== at 0x4A06336: operator delete(void*) (vg_replace_malloc.c:457) ==32699== by 0x3AB6AA2FD2: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() (basic_string.h:235) ==32699== by 0x1651995: mongo::ConnectionString::connect(std::string&, double) const (dbclient.cpp:87) ==32699== by 0x14D1E77: mongo::DBConnectionPool::get(std::string const&, double) (connpool.cpp:197) ==32699== by 0x12300C1: mongo::ScopedDbConnection::ScopedDbConnection(std::string const&, double) (connpool.h:205) ==32699== by 0x15AA081: mongo::ChunkManager::calcInitSplitsAndShards(mongo::Shard const&, std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj> > const*, std::vector<mongo::Shard, std::allocator<mongo::Shard> > const*, std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj> >*, std::vector<mongo::Shard, std::allocator<mongo::Shard> >*) const (chunk.cpp:913) ==32699== by 0x15AA5CD: mongo::ChunkManager::createFirstChunks(std::string const&, mongo::Shard const&, std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj> > const*, std::vector<mongo::Shard, std::allocator<mongo::Shard> > const*) (chunk.cpp:960) ==32699== by 0x1142872: ShardingTests::ChunkManagerCreateBasicTest::run() (sharding.cpp:101) ==32699== by 0x114AE3E: mongo::unittest::TestHolderBase<ShardingTests::ChunkManagerCreateBasicTest>::run() (unittest.h:86) ==32699== by 0x1220DC0: mongo::unittest::Suite::run(std::string const&) (unittest.cpp:121) ==32699== by 0x1221511: mongo::unittest::Suite::run(std::vector<std::string, std::allocator<std::string> > const&, std::string const&) (unittest.cpp:183) ==32699== by 0x15EBF8D: mongo::dbtests::runDbTests(int, char**, std::string) (framework.cpp:254) ==32699==
- is depended on by
-
SERVER-4262 when dropping collections need to invalidate all conn sharding state
- Closed