Skip to content

Fix fractional seconds for strict_date_optional_time #41871

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 1 commit into from
May 7, 2019

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented May 6, 2019

The fractional seconds portion of strict_date_optional_time was
accidentally copied from the printer, which always prints at least 3
fractional digits. This commit fixes the formatter to allow 1 or 2
fractional seconds.

closes #41633

The fractional seconds portion of strict_date_optional_time was
accidentally copied from the printer, which always prints at least 3
fractional digits. This commit fixes the formatter to allow 1 or 2
fractional seconds.

closes elastic#41633
@rjernst rjernst added >bug :Core/Infra/Core Core issues without another label v8.0.0 v7.2.0 v7.1.0 labels May 6, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Contributor

@pgomulka pgomulka left a comment

Choose a reason for hiding this comment

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

LGTM, do you think we could also add this scenario to JavaJodaTimeDuellingTests' strict_date_optional_time section?

@rjernst
Copy link
Member Author

rjernst commented May 7, 2019

, do you think we could also add this scenario to JavaJodaTimeDuellingTests' strict_date_optional_time section?

I think those tests should go away, along with the dependency on joda.

@rjernst rjernst merged commit 96a2ab0 into elastic:master May 7, 2019
@rjernst rjernst deleted the optional_time_fraction branch May 7, 2019 16:08
rjernst added a commit that referenced this pull request May 7, 2019
The fractional seconds portion of strict_date_optional_time was
accidentally copied from the printer, which always prints at least 3
fractional digits. This commit fixes the formatter to allow 1 or 2
fractional seconds.

closes #41633
rjernst added a commit that referenced this pull request May 7, 2019
The fractional seconds portion of strict_date_optional_time was
accidentally copied from the printer, which always prints at least 3
fractional digits. This commit fixes the formatter to allow 1 or 2
fractional seconds.

closes #41633
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request May 7, 2019
* elastic/master: (50 commits)
  Cleanup versioned deprecations in analysis (elastic#41560)
  Allow unknown task time in QueueResizingEsTPE (elastic#41810)
  SQL: Remove CircuitBreaker from parser (elastic#41835)
  [DOCS] Fix callouts for dataframe APIs (elastic#41904)
  Handle serialization exceptions during publication (elastic#41781)
  Correct spelling of MockLogAppender.PatternSeenEventExpectation (elastic#41893)
  Update TLS ciphers and protocols for JDK 11 (elastic#41808)
  Remove Harmful Exists Check from BlobStoreFormat (elastic#41898)
  Fix fractional seconds for strict_date_optional_time (elastic#41871)
  Remove op.name configuration setting (elastic#41445)
  Reject port ranges in `discovery.seed_hosts` (elastic#41404)
  [ML-DataFrame] migrate to PageParams for get and stats, move PageParams into core (elastic#41851)
  Reenable RareClusterStateIT Mapping Propagation Tests (elastic#41884)
  [DOCS] Rewrite `exists` query docs (elastic#41868)
  Revert "Mute MinimumMasterNodesIT.testThreeNodesNoMasterBlock()"
  [DOCS] Fix typo referring to multi search API
  Provide names for all artifact repositories (elastic#41857)
  Move InternalAggregations to Writeable (elastic#41841)
  Fix compilation after incorrect merge
  Unmute TestClustersPluginIT.testMultiNode (elastic#41340)
  ...
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
The fractional seconds portion of strict_date_optional_time was
accidentally copied from the printer, which always prints at least 3
fractional digits. This commit fixes the formatter to allow 1 or 2
fractional seconds.

closes elastic#41633
russcam added a commit to elastic/elasticsearch-net that referenced this pull request Jun 6, 2019
This commit ensures that DateMath containing DateTime are always serialized with a minimum of 3 decimal places.

elastic/elasticsearch#41871 introduced a bug in Elasticsearch 7.x < 7.1.0 whereby date strings
with less than 3 decimal places throw a parser exception.

Fixes #3719
russcam added a commit to elastic/elasticsearch-net that referenced this pull request Jun 7, 2019
* Serialize DateMath with minimum 3 decimal places

This commit ensures that DateMath containing DateTime are always serialized with a minimum of 3 decimal places.

elastic/elasticsearch#41871 introduced a bug in Elasticsearch 7.x < 7.1.0 whereby date strings
with less than 3 decimal places throw a parser exception.

Fixes #3719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error parsing date formatted using RFC3339 with 1 digit subsecond
4 participants