I followed the exact steps you suggested. Now I am not seeing that error. 

INFO  - 2018-08-10 15:23:58.159; [c:collection_name s:shard2 r:core_node13
x:collection_name_shard2_replica_n10]
org.apache.solr.handler.CdcrReplicator; Forwarded 10 updates to target
collection_name

However, in destination DC, I am seeing different numFounds per retry. Even
after CORE reload it's not showing exact same number.

Source: Total Doc: 1310
Destination: Total Doc :1310
                                 :908
                                 :457

I stopped the indexing and waited for the max autocommit interval for that
collection to expire. Even after that, did not get consistent results. Do I
have to send explicit hard commit? 

Source/Desination DC: I am seeing following error now though a. Not sure if
this is related to an existing CDCR JIRA I saw.

org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
from server at http://host:8983/solr/collection_name_shard1_replica_n2:
Expected mime type application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 require authentication</title>
</head>
<body>
HTTP ERROR 401

<p>Problem accessing /solr/collection_name_shard1_replica_n2/cdcr. Reason:
<pre>    require authentication</pre></p>
</body>
</html>

  at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:607)
  at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:255)
  at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:244)
  at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)
  at org.apache.solr.handler.CdcrUpdateLogSynchronizer$UpdateLogSynchronis

org.apache.solr.common.SolrException: Unable to locate core
collection_name_shard1_replica_n2
  at
org.apache.solr.handler.admin.CoreAdminOperation.lambda$static$5(CoreAdminOperation.java:149)
  at
org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOperation.java:358)
  at
org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:389)


Here is our security.json

{
  "authentication":{
    "blockUnknown":true,
    "class":"solr.BasicAuthPlugin",
    "credentials":{
      "solr":"--REDACTED--",
      "admin":"--REDACTED--",
      "solr_dev":"--REDACTED--",
      "app_2_user":"--REDACTED--",
      "app_1_user":"--REDACTED--"},
    "":{"v":6}},
  "authorization":{
    "class":"solr.RuleBasedAuthorizationPlugin",
    "permissions":[
      {
        "name":"security-edit",
        "role":"admin",
        "index":1},
      {
        "name":"collection-admin-read",
        "role":[
          "read",
          "read_write",
          "admin"],
        "index":2},
      {
        "name":"read",
        "role":[
          "read",
          "read_write",
          "admin"],
        "index":3},
      {
        "name":"core-admin-read",
        "role":[
          "read",
          "read_write",
          "admin"],
        "index":4},
      {
        "name":"schema-read",
        "role":[
          "read",
          "read_write",
          "admin"],
        "index":5},
      {
        "name":"config-read",
        "role":[
          "read",
          "read_write",
          "admin"],
        "index":6},
      {
        "name":"admin-ui",
        "path":"/",
        "role":[
          "read",
          "read_write",
          "admin"],
        "index":7},
      {
        "collection":null,
        "path":"/admin/zookeeper",
        "role":["admin"],
        "index":8},
      {
        "collection":"*",
        "path":"/admin/file",
        "role":["admin"],
        "index":9},
      {
        "collection":"*",
        "path":"/admin/files",
        "role":"admin",
        "index":10},
      {
        "collection":"*",
        "path":"/dataimport",
        "role":["admin"],
        "index":11},
      {
        "name":"collection-admin-edit",
        "role":["admin"],
        "index":12},
      {
        "name":"update",
        "role":[
          "admin",
          "read_write"],
        "index":13},
      {
        "name":"schema-edit",
        "role":["admin"],
        "index":14},
      {
        "name":"config-edit",
        "role":["admin"],
        "index":15},
      {
        "name":"core-admin-edit",
        "role":["admin"],
        "index":16}],
    "user-role":{
      "solr":"admin",
      "app_1_user":"read_write",
      "solr_dev":"read",
      "app_2_user":"read_write",
      "admin":["admin"]},
    "":{"v":19}}}




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to