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

[7.x] Add ID processor (#14524) #15041

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

ycombinator
Copy link
Contributor

Backports the following commits to 7.x:

* WIP: Flake ID processor

* Fleshing out implementation of generator

* Rename package

* Unexport const

* Use increment operator

* Adding processor scaffolding

* Fixing default field

* Adding CHANGELOG entry

* Fixing compile errors

* WIP: unit tests

* Fixing byte copy

* Fixing up tests

* Adding test TODOs

* Adding non-default target field unit test

* Adding one more test TODO

* Adding TODO for post-benchmarking

* Introduce type

* Adding unit test for factory

* Adding unit test for mac

* Adding unit test for mac

* Fleshing out remaining mac unit tests

* Adding tests for ES ID generator

* Remove TODO after experimenting with IIFE (perf was worse)

* Moving doc

* Adding UUID processor to list in docs

* Apply suggestions from docs code review

Co-Authored-By: DeDe Morton <dede.morton@elastic.co>

* Adding godoc

* Rename generator function type

* Exporting and adding godoc

* Adding godoc

* Updating godoc

* Adding Unwrap error methods

* Moving ES ID generator into generators package + singleton construction

* Addressing Hound feedback

* Renaming processor to `add_id`

* Updating processor name in CHANGELOG entry

* More refactoring updates

* Fixing more vet errors

* Unexport config struct as it's only used within this package

* Fixing doc anchor

* Moving generator construction to processor constructor; simplifying factory

* Fixing compile error

* Validate ID generator type in config

* Finer-grained locking to reduce mutex contention

* Initialize package global variables that depend on randomness, later

* Compute last timestamp while accounting for system time going backwards

* Simpler and testable timestamp() function

* Adding unit test for timestamp function

* Re-implementing ES timestamp algorithm

* Removing unused variable
// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

// specific language governing permissions and limitations
// under the License.

package add_id

Choose a reason for hiding this comment

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

don't use an underscore in package name

@ycombinator ycombinator requested review from dedemorton, afoucret and urso and removed request for afoucret December 11, 2019 02:00
@ycombinator
Copy link
Contributor Author

Travis CI is green. Jenkins CI failures are unrelated. Merging.

@ycombinator ycombinator merged commit f8adf57 into elastic:7.x Dec 11, 2019
@ycombinator ycombinator deleted the backport/7.x/pr-14524 branch December 11, 2019 13:19
@urso urso added the v7.6.0 label Dec 11, 2019
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.

None yet

3 participants