Hello,
I observed a rather weird issue with SolrCloud.
Using Solr 4.0 GA code.
Started with a 3-node Zookeeper ensemble (standalone) and a single Solr
instance running single collection. numShards was set to 1 during collection
creation (don't want sharding, just replication).
Everything worked fine.
Started another Solr instance for the same collection. Properly went through
the steps realizing it needed to sync up (actual url values replaced with
):
12:50:59.152 INFO [o.apache.solr.cloud.RecoveryStrategy] Starting recovery
process. core=users recoveringAfterStartup=true [RecoveryThread]
12:50:59.152 INFO [o.a.solr.servlet.SolrDispatchFilter ] user.dir=/home/seg
[localhost-startStop-1]
12:50:59.153 INFO [o.a.solr.servlet.SolrDispatchFilter ]
SolrDispatchFilter.init() done [localhost-startStop-1]
12:50:59.189 INFO [o.apache.solr.cloud.RecoveryStrategy] ##
startupVersions=[] [RecoveryThread]
12:50:59.198 INFO [o.apache.solr.cloud.RecoveryStrategy] Attempting to
PeerSync from core=users - recoveringAfterStartup=true [RecoveryThread]
12:50:59.201 INFO [o.a.s.c.solrj.impl.HttpClientUtil ] Creating new http
client,
config:maxConnectionsPerHost=20&maxConnections=1&connTimeout=3&socketTimeout=3&retry=false
[RecoveryThread]
12:50:59.377 INFO [org.apache.solr.update.PeerSync ] PeerSync: core=users
url= START replicas=[] nUpdates=100 [RecoveryThread]
12:50:59.377 DEBUG [org.apache.solr.update.PeerSync ] PeerSync: core=users
url=solr startingVersions=0 [] [RecoveryThread]
12:50:59.390 WARN [org.apache.solr.update.PeerSync ] no frame of reference
to tell of we've missed updates [RecoveryThread]
12:50:59.390 INFO [o.apache.solr.cloud.RecoveryStrategy] PeerSync Recovery was
not successful - trying replication. core=users [RecoveryThread]
12:50:59.390 INFO [o.apache.solr.cloud.RecoveryStrategy] Starting Replication
Recovery. core=users [RecoveryThread]
12:50:59.422 INFO [o.a.solr.common.cloud.ZkStateReader ] A cluster state
change has occurred - updating... [localhost-startStop-1-EventThread]
12:50:59.575 INFO [o.a.s.c.solrj.impl.HttpClientUtil ] Creating new http
client,
config:maxConnections=128&maxConnectionsPerHost=32&followRedirects=false
[RecoveryThread]
12:51:02.742 INFO [o.apache.solr.cloud.RecoveryStrategy] Begin buffering
updates. core=users [RecoveryThread]
12:51:02.742 INFO [org.apache.solr.update.UpdateLog] Starting to buffer
updates. FSUpdateLog{state=ACTIVE, tlog=null} [RecoveryThread]
12:51:02.743 INFO [o.apache.solr.cloud.RecoveryStrategy] Attempting to
replicate from . core=users [RecoveryThread]
12:51:02.743 INFO [o.a.s.c.solrj.impl.HttpClientUtil ] Creating new http
client,
config:maxConnections=128&maxConnectionsPerHost=32&followRedirects=false
[RecoveryThread]
12:51:02.762 INFO [o.a.s.c.solrj.impl.HttpClientUtil ] Creating new http
client,
config:connTimeout=5000&socketTimeout=2&allowCompression=false&maxConnections=1&maxConnectionsPerHost=1
[RecoveryThread]
12:51:02.774 INFO [org.apache.solr.handler.SnapPuller ] No value set for
'pollInterval'. Timer Task not started. [RecoveryThread]
12:51:02.781 INFO [org.apache.solr.core.SolrCore ]
SolrDeletionPolicy.onInit: commits:num=1
commit{dir=NRTCachingDirectory(org.apache.lucene.store.MMapDirectory@/solr/users/data/index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@6e28575;
maxCacheMB=48.0
maxMergeSizeMB=4.0),segFN=segments_1,generation=1,filenames=[segments_1]
[RecoveryThread]
12:51:02.782 INFO [org.apache.solr.core.SolrCore ] newest commit = 1
[RecoveryThread]
12:51:02.782 DEBUG [o.apache.solr.update.SolrIndexWriter] Opened Writer
DirectUpdateHandler2 [RecoveryThread]
12:51:02.784 INFO [org.apache.solr.update.UpdateHandler] start
commit{flags=0,_version_=0,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false}
[RecoveryThread]
12:51:02.785 DEBUG [org.apache.solr.update.UpdateLog] TLOG: preCommit
[RecoveryThread]
12:51:02.823 INFO [org.apache.solr.core.SolrCore ]
SolrDeletionPolicy.onCommit: commits:num=2
commit{dir=NRTCachingDirectory(org.apache.lucene.store.MMapDirectory@/solr/users/data/index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@6e28575;
maxCacheMB=48.0
maxMergeSizeMB=4.0),segFN=segments_1,generation=1,filenames=[segments_1]
commit{dir=NRTCachingDirectory(org.apache.lucene.store.MMapDirectory@/solr/users/data/index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@6e28575;
maxCacheMB=48.0
maxMergeSizeMB=4.0),segFN=segments_2,generation=2,filenames=[segments_2]
[RecoveryThread]
12:51:02.824 INFO [org.apache.solr.core.SolrCore ] newest commit = 2
[RecoveryThread]
12:51:02.828 INFO [o.a.solr.search.SolrIndexSearcher ] Opening
Searcher@5947fe65 main [RecoveryThread]
12:51:02.837 DEBUG [org.apache.solr.update.UpdateLog] TLOG: postCommit
[RecoveryThread]
12:51:02.837 INFO [org.apach