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

Avoid uid creation in ParsedDocument #27241

Merged
merged 1 commit into from
Nov 3, 2017

Conversation

mfussenegger
Copy link
Contributor

The uid was only used in the toString implementation, which I
suspect is only used for logging or debugging purposes. So the uid
creation can be avoided in most cases.

This might be a left-over of the work of moving to a single id without
embedded type, because the uid is created later on in
IndexShard.prepareIndex if it is still required.

The `uid` was only used in the `toString` implementation, which I
suspect is only used for logging or debugging purposes. So the `uid`
creation can be avoided in most cases.

This might be a left-over of the work of moving to a single `id` without
embedded `type`, because the `uid` is created later on in
`IndexShard.prepareIndex` if it is still required.
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@dakrone
Copy link
Member

dakrone commented Nov 2, 2017

@elasticmachine test this please

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jasontedor jasontedor merged commit 827ba7f into elastic:master Nov 3, 2017
jasontedor pushed a commit that referenced this pull request Nov 3, 2017
The uid bytes (as the type#id) were needlessly being created even though
they are no longer needed after the move to single type per index. This
commit avoids creating these when parsed documents are constructed.

Relates #27241
martijnvg added a commit that referenced this pull request Nov 3, 2017
* master:
  Fixed byte buffer leak in Netty4 request handler
  Avoid uid creation in ParsedDocument (#27241)
  Rander sum as zero if count is zero for stats aggregation (#26893) (#27193)
  Add additional explanations around discovery.zen.ping_timeout (#27231)
  Remove unused searcher parameter in SearchService#createContext (#27227)
  Upgrade to Lucene 7.1 (#27225)
  Move IndexShard#getWritingBytes() under InternalEngine (#27209)
  Adjust bwc version for exists query tests
  Introducing took time for _msearch
martijnvg added a commit that referenced this pull request Nov 3, 2017
* 6.x:
  Fixed byte buffer leak in Netty4 request handler
  Avoid uid creation in ParsedDocument (#27241)
  Upgrade to Lucene 7.1 (#27225)
  Add additional explanations around discovery.zen.ping_timeout (#27231)
  Fix compile error
  Remove unused searcher parameter in SearchService#createContext (#27227)
  Fix sequence number assertions in BWC tests
  Move IndexShard#getWritingBytes() under InternalEngine (#27209)
  Adjust bwc version for exists query tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants