Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexName is lost after server restart #62

Closed
clintongormley opened this issue Mar 12, 2010 · 2 comments
Closed

indexName is lost after server restart #62

clintongormley opened this issue Mar 12, 2010 · 2 comments

Comments

@clintongormley
Copy link

Hiya

My server is set up to use gateway.type=fs

Put a mapping as follows:

curl -XPUT 'http://192.168.5.100:9200/foo/bar/_mapping?ignoreConflicts=false'  -d '
{
   "properties" : {
      "single" : {
         "type" : "long"
      },
      "multis" : {
         "type" : "long",
         "indexName" : "multi"
      }
   }
}
'
# {
#    "ok" : true,
#    "acknowledged" : true
# }

Set a record:

curl -XPOST 'http://192.168.5.100:9200/foo/bar'  -d '
{
   "single" : 123,
   "multis" : 123
}
'
# {
#    "ok" : true,
#    "_index" : "foo",
#    "_id" : "fe82aef3-8af4-4e7b-8e83-46278481c4e4",
#    "_type" : "bar"
# }

Check the terms:

curl -XGET 'http://192.168.5.100:9200/_terms?fields=single,multi,multis&toInclusive=true' 
# {
#    "fields" : {
#       "single" : {
#          "terms" : [
#             {
#                "docFreq" : 1,
#                "term" : " \u0001\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000\u0000{"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "$\b\u0000\u0000\u0000\u0000\u0000\u0000\
# >                u0000\u0007"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "(@\u0000\u0000\u0000\u0000\u0000\u0000\u
# >                0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : ",\u0004\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "0 \u0000\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "4\u0002\u0000\u0000\u0000\u0000\u0000\u0
# >                000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "8\u0010\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "<\u0001\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "@\b\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "D@\u0000\u0000\u0000"
#             }
#          ]
#       },
#       "multis" : {
#          "terms" : [
#             {
#                "docFreq" : 1,
#                "term" : " \u0001\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000\u0000{"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "$\b\u0000\u0000\u0000\u0000\u0000\u0000\
# >                u0000\u0007"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "(@\u0000\u0000\u0000\u0000\u0000\u0000\u
# >                0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : ",\u0004\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "0 \u0000\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "4\u0002\u0000\u0000\u0000\u0000\u0000\u0
# >                000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "8\u0010\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "<\u0001\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "@\b\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "D@\u0000\u0000\u0000"
#             }
#          ]
#       },
#       "multi" : {
#          "terms" : [
#             {
#                "docFreq" : 1,
#                "term" : " \u0001\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000\u0000{"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "$\b\u0000\u0000\u0000\u0000\u0000\u0000\
# >                u0000\u0007"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "(@\u0000\u0000\u0000\u0000\u0000\u0000\u
# >                0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : ",\u0004\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "0 \u0000\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "4\u0002\u0000\u0000\u0000\u0000\u0000\u0
# >                000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "8\u0010\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "<\u0001\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "@\b\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "D@\u0000\u0000\u0000"
#             }
#          ]
#       }
#    },
#    "_shards" : {
#       "failed" : 0,
#       "successful" : 5,
#       "total" : 5
#    },
#    "docs" : {
#       "deletedDocs" : 0,
#       "numDocs" : 1,
#       "maxDoc" : 1
#    }
# }

Then restart the server.

curl -XGET 'http://192.168.5.100:9200/_terms?fields=single,multi,multis&toInclusive=true' 
# {
#    "fields" : {
#       "single" : {
#          "terms" : [
#             {
#                "docFreq" : 1,
#                "term" : " \u0001\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000\u0000{"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "$\b\u0000\u0000\u0000\u0000\u0000\u0000\
# >                u0000\u0007"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "(@\u0000\u0000\u0000\u0000\u0000\u0000\u
# >                0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : ",\u0004\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "0 \u0000\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "4\u0002\u0000\u0000\u0000\u0000\u0000\u0
# >                000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "8\u0010\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "<\u0001\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "@\b\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "D@\u0000\u0000\u0000"
#             }
#          ]
#       },
#       "multis" : {
#          "terms" : [
#             {
#                "docFreq" : 1,
#                "term" : " \u0001\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000\u0000{"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "$\b\u0000\u0000\u0000\u0000\u0000\u0000\
# >                u0000\u0007"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "(@\u0000\u0000\u0000\u0000\u0000\u0000\u
# >                0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : ",\u0004\u0000\u0000\u0000\u0000\u0000\u0
# >                000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "0 \u0000\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "4\u0002\u0000\u0000\u0000\u0000\u0000\u0
# >                000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "8\u0010\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "<\u0001\u0000\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "@\b\u0000\u0000\u0000\u0000"
#             },
#             {
#                "docFreq" : 1,
#                "term" : "D@\u0000\u0000\u0000"
#             }
#          ]
#       },
#       "multi" : {
#          "terms" : []
#       }
#    },
#    "_shards" : {
#       "failed" : 0,
#       "successful" : 5,
#       "total" : 5
#    },
#    "docs" : {
#       "deletedDocs" : 0,
#       "numDocs" : 1,
#       "maxDoc" : 1
#    }
# }

Note that now multi is [], and search requests no longer understand the fieldname multi

@kimchy
Copy link
Member

kimchy commented Mar 13, 2010

I hope I sorted it out (seems like its working for me). It was a race condition with the index creation and mapping definitions (my previous fix was not good enough, test still passed because of timing). Can you please test it?

@clintongormley
Copy link
Author

Fixed++

dadoonet added a commit that referenced this issue Jun 5, 2015
dadoonet added a commit that referenced this issue Jun 5, 2015
#61 and #62 renamed settings by deprecating old ones and creating new ones.
In version 3.0.0, we can remove old settings.

That said, we should not remove it from master doc before 2.6.0 is released.

Closes #70.
IanvsPoplicola pushed a commit to IanvsPoplicola/elasticsearch that referenced this issue Mar 21, 2017
Changing our issue to 21862
henningandersen pushed a commit to henningandersen/elasticsearch that referenced this issue Jun 4, 2020
With this commit we expose `refresh_interval` as a track parameter. This
allows us to remove the specific challenge `refresh-interval` as the
same can now be achieved by running any desired challenge and setting
the `refresh_interval` differently.
mindw pushed a commit to mindw/elasticsearch that referenced this issue Sep 5, 2022
…ull request elastic#62)

Update ip addr list for Nikita

* Update ip addr list for Nikita

Approved-by: Gideon Avida
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
Also use shlex.quote for safely generating cli arguments passed to
Rally instead of enclosing them in `\"{}\"`.

Relates elastic#62 
Closes elastic#51
emilykmarx pushed a commit to emilykmarx/elasticsearch that referenced this issue Dec 26, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants