Skip to content

TSDB: Expand _id on version conflict #84957

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

Merged
merged 8 commits into from
Mar 18, 2022

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Mar 14, 2022

This adds the _tsid and @timestamp to the version conflict error
message in tsdb mode. I'm trying to debug a version confict problem with
tsdb and think it'd be useful to get this information rather than the
generated _id.

@nik9000
Copy link
Member Author

nik9000 commented Mar 14, 2022

I'd love to get folk's opinion on this one, especially @henningandersen. The new error message looks like:

        "reason" : "[IEgWvIN2ZvUEKfcZAJzvEn4BAAA/{uid=foo}@2022-01-01T00:00:00.000Z]: version conflict, document already exists (current version [1])",

This adds the `_tsid` and `@timestamp` to the version conflict error
message in tsdb mode. I'm trying to debug a version confict problem with
tsdb and think it'd be useful to get this information rather than the
generated `_id`.
@nik9000 nik9000 marked this pull request as ready for review March 15, 2022 17:03
@nik9000 nik9000 added >enhancement :StorageEngine/TSDB You know, for Metrics labels Mar 15, 2022
@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Mar 15, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @nik9000, I've created a changelog YAML for you.

@nik9000 nik9000 force-pushed the tsdb_version_conflict_explanation branch from b7475a7 to 9fc081d Compare March 17, 2022 08:59
@nik9000
Copy link
Member Author

nik9000 commented Mar 17, 2022

@henningandersen I think this one is ready for you.

Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

I would like to change the message format a bit, otherwise this looks good to me.

@nik9000
Copy link
Member Author

nik9000 commented Mar 18, 2022

run elasticsearch-ci/part-1

Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@csoulios csoulios left a comment

Choose a reason for hiding this comment

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

LGTM!

@nik9000 nik9000 merged commit f0dd106 into elastic:master Mar 18, 2022
@nik9000
Copy link
Member Author

nik9000 commented Mar 18, 2022

Thanks folks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :StorageEngine/TSDB You know, for Metrics Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants