-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Remove] Default Mapping #2151
[Remove] Default Mapping #2151
Conversation
Can one of the admins verify this patch? |
6122386
to
27179cc
Compare
❌ Gradle Check failure 61223865898ecbb70e1c631c1b03f4cd5054ae7a |
❌ Gradle Check failure 27179cc38d7968cea153092e6065ab07fa5f0554 |
❌ Gradle Check failure 9f5e29629b5014917ef3aa03b1242acb8ffb6617 |
❌ Gradle Check failure bea8716c2fdb4befc9ba16125b4580a3402953aa |
❌ Gradle Check failure 50c29d6e1b087b568515b42bbe294de6b48a9797 |
50c29d6
to
0df7f69
Compare
Composite agg failures will be fixed by #2147 |
❌ Gradle Check failure 0df7f694c419f2af73f25ebd8f21104f5fe02913 |
related to #2147; will hold off on refiring until the transport version check is changed.
|
0df7f69
to
055b76f
Compare
✅ Gradle Check success 055b76fa27285eafcee00af8cff0c5bd52646cf6 |
@@ -474,7 +474,7 @@ public void testUpdateRelations() throws Exception { | |||
.endObject() | |||
); | |||
docMapper = indexService.mapperService() | |||
.merge("_doc", new CompressedXContent(updateMapping), MapperService.MergeReason.MAPPING_UPDATE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nknize I am a bit confused by this change: the only mapping which should left at this point is _doc
, would we still let anyone to change the (single) mapping type for index (as here fe, _doc
-> type
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I think I found the answer to my question)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type support hasn't been completely removed yet so this will get cleaned up in a follow up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -301,10 +300,8 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws | |||
} else { | |||
MappingMetadata mappings = null; | |||
for (final ObjectObjectCursor<String, MappingMetadata> typeEntry : indexMappings) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably future change, but I believe we would significantly reduce the amount of "heap garbage" when replace ImmutableOpenMap<String, MappingMetadata>
with just MappingMetadata
since there is only one mapping from now on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think that would be a good followup PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -131,7 +131,7 @@ public void testSimple() throws Exception { | |||
|
|||
public void testSimpleWithXContentTraverse() throws Exception { | |||
String mapping = copyToStringFromClasspath("/org/opensearch/index/mapper/dynamictemplate/simple/test-mapping.json"); | |||
MapperService mapperService = createMapperService("person", mapping); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should also work with person
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No; we're in a transition state right now removing type support. I haven't fully removed types from the MapperService yet. That's coming in a followup PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
40ad94c
to
d46faa1
Compare
❌ Gradle Check failure 40ad94c03b1ac95da9cedfcfdee333f52e74ae32 |
❌ Gradle Check failure d46faa12ad79b7049348747bfb32e0a627ac551e |
d46faa1
to
dddb5f5
Compare
❌ Gradle Check failure dddb5f5f9b3be8778b42417d211adce566ae9c0a |
le uggh.. docker failure |
start gradle check |
dddb5f5
to
7ccfb56
Compare
Default mappings were deprecated in Legacy version 6x and cannot be added to indexes created in legacy 7+ or any version of OpenSearch. All support for default mappings are removed for OpenSearch 2+. Signed-off-by: Nicholas Walter Knize <[email protected]>
7ccfb56
to
288aaba
Compare
❌ Gradle Check failure dddb5f5f9b3be8778b42417d211adce566ae9c0a |
❌ Gradle Check failure 7ccfb56f9bdfd0c664308d42015409d5de029f7d |
Unable to reproduce. Flaky failure already reported in #1828 Refiring check |
start gradle check |
Same flaky failure already reported in #1957 Refiring!
|
start gradle check |
Default mappings were deprecated in Legacy version 6x and cannot be added to
indexes created in legacy 7+ or any version of OpenSearch. All support for
default mappings are removed for OpenSearch 2+.
relates #1674