Skip to content

Fix ingest java week based year defaulting#65717

Merged
pgomulka merged 1 commit intoelastic:masterfrom
pgomulka:time/fix_ingest_week_of_year_defaulting
Dec 28, 2020
Merged

Fix ingest java week based year defaulting#65717
pgomulka merged 1 commit intoelastic:masterfrom
pgomulka:time/fix_ingest_week_of_year_defaulting

Conversation

@pgomulka
Copy link
Copy Markdown
Contributor

@pgomulka pgomulka commented Dec 2, 2020

If year, year of era, or weekbased year is not specified ingest Java
date processor is defaulting year to current year.
However the current implementation has mistaken weekBasedYear field with
weekOfWeekBasedYear. This has lead to incorrect defaulting.

relates #63458

  • Have you signed the contributor license agreement?
  • Have you followed the contributor guidelines?
  • If submitting code, have you built your formula locally prior to submission with gradle check?
  • If submitting code, is your pull request against master? Unless there is a good reason otherwise, we prefer pull requests against master and will backport as needed.
  • If submitting code, have you checked that your submission is for an OS and architecture that we support?
  • If you are submitting this code for a class then read our policy for that.

If year, year of era, or weekbased year is not specified ingest Java
date processor is defaulting year to current year.
However the current implementation has mistaken weekBasedYear field with
weekOfWeekBasedYear. This has lead to incorrect defaulting.

relates elastic#63458
@pgomulka pgomulka added :Core/Infra/Core Core issues without another label :Distributed/Ingest Node Execution or management of Ingest Pipelines v8.0.0 v7.11.0 labels Dec 2, 2020
@pgomulka pgomulka self-assigned this Dec 2, 2020
@elasticmachine elasticmachine added Team:Data Management (obsolete) DO NOT USE. This team no longer exists. Team:Core/Infra Meta label for core/infra team labels Dec 2, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@pgomulka
Copy link
Copy Markdown
Contributor Author

pgomulka commented Dec 2, 2020

@elasticmachine run elasticsearch-ci/2

Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@pgomulka pgomulka merged commit 8f74f18 into elastic:master Dec 28, 2020
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Dec 28, 2020
If year, year of era, or weekbased year is not specified ingest Java
date processor is defaulting year to current year.
However the current implementation has mistaken weekBasedYear field with
weekOfWeekBasedYear. This has lead to incorrect defaulting.

relates elastic#63458
pgomulka added a commit that referenced this pull request Dec 28, 2020
If year, year of era, or weekbased year is not specified ingest Java
date processor is defaulting year to current year.
However the current implementation has mistaken weekBasedYear field with
weekOfWeekBasedYear. This has lead to incorrect defaulting.

relates #63458
pgomulka added a commit that referenced this pull request May 11, 2021
the bug fixed in 7.12 changed the way the year is defaulted
the bug fix - #65717
the bug was introduced by #58597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label :Distributed/Ingest Node Execution or management of Ingest Pipelines Team:Core/Infra Meta label for core/infra team Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.11.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants