summaryrefslogtreecommitdiff
path: root/s/d_migrate.cpp
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-12-27 14:30:41 -0500
committerAlberto Lerner <alerner@10gen.com>2010-12-27 14:30:54 -0500
commit84a30c24e952319ab261895a0c2e2ad94cb0acf2 (patch)
tree3a375d606e36c21541cea344f49013afa0ed56f2 /s/d_migrate.cpp
parent77c9fc26819053b7d8ccd76b760a2ec84a5eb15e (diff)
downloadmongo-84a30c24e952319ab261895a0c2e2ad94cb0acf2.tar.gz
log if moveChunk/splitChunk did not pass admission checks
Diffstat (limited to 's/d_migrate.cpp')
-rw-r--r--s/d_migrate.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp
index e3715a4c8df..0bf1493539d 100644
--- a/s/d_migrate.cpp
+++ b/s/d_migrate.cpp
@@ -690,13 +690,19 @@ namespace mongo {
result.append( "currMax" , currMax );
result.append( "requestedMin" , min );
result.append( "requestedMax" , max );
+
+ log( LL_WARNING ) << errmsg << ": " << min << "->" << max << " is now " << currMin << "->" << currMax << endl;
+
return false;
}
if ( myOldShard != fromShard.getName() ){
- errmsg = "i'm out of date";
+ errmsg = "chunk location is wrong (likely balance or migrate occurred)";
result.append( "from" , fromShard.getName() );
result.append( "official" , myOldShard );
+
+ log( LL_WARNING ) << errmsg << ": chunk is at " << myOldShard << " and not at " << fromShard.getName() << endl;
+
return false;
}
@@ -704,6 +710,9 @@ namespace mongo {
errmsg = "official version less than mine?";
result.appendTimestamp( "officialVersion" , maxVersion );
result.appendTimestamp( "myVersion" , shardingState.getVersion( ns ) );
+
+ log( LL_WARNING ) << errmsg << ": official " << maxVersion << " mine: " << shardingState.getVersion(ns) << endl;
+
return false;
}