Skip to content

Conversation

DaveCTurner
Copy link
Contributor

Today these tests assume that the last-modified time on the translog
file is at least one millisecond before the time at which stats are
computed, but this isn't always true. With this commit we add a
(bounded) wait for the clock to advance beyond the file's last-modified
time to ensure that we observe a nonzero age.

Closes #85717

Today these tests assume that the last-modified time on the translog
file is at least one millisecond before the time at which stats are
computed, but this isn't always true. With this commit we add a
(bounded) wait for the clock to advance beyond the file's last-modified
time to ensure that we observe a nonzero age.

Closes elastic#85717
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. v7.17.3 v8.3.0 v8.2.1 labels Apr 12, 2022
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Apr 12, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@DaveCTurner DaveCTurner merged commit fd128e5 into elastic:master Apr 13, 2022
@DaveCTurner DaveCTurner deleted the 2022-04-06-85717-fix-translogtests-teststats branch April 13, 2022 07:06
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Apr 13, 2022
Today these tests assume that the last-modified time on the translog
file is at least one millisecond before the time at which stats are
computed, but this isn't always true. With this commit we add a
(bounded) wait for the clock to advance beyond the file's last-modified
time to ensure that we observe a nonzero age.

Closes elastic#85717
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
7.17 Commit could not be cherrypicked due to conflicts
8.2

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 85828

DaveCTurner added a commit that referenced this pull request Apr 13, 2022
Today these tests assume that the last-modified time on the translog
file is at least one millisecond before the time at which stats are
computed, but this isn't always true. With this commit we add a
(bounded) wait for the clock to advance beyond the file's last-modified
time to ensure that we observe a nonzero age.

Closes #85717
elasticsearchmachine pushed a commit that referenced this pull request Apr 13, 2022
Today these tests assume that the last-modified time on the translog
file is at least one millisecond before the time at which stats are
computed, but this isn't always true. With this commit we add a
(bounded) wait for the clock to advance beyond the file's last-modified
time to ensure that we observe a nonzero age.

Closes #85717
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Apr 13, 2022
…n/elasticsearch into datastream-reuse-pipeline-source

* 'datastream-reuse-pipeline-source' of github.com:weizijun/elasticsearch: (28 commits)
  Add JDK 19 to Java testing matrix
  [ML] add nlp config update serialization tests (elastic#85867)
  [ML] A text categorization aggregation that works like ML categorization (elastic#80867)
  [ML] Fix serialisation of text embedding updates (elastic#85863)
  TSDB: fix wrong initial value of tsidOrd in TimeSeriesIndexSearcher (elastic#85713)
  Enforce external id uniqueness during DesiredNode construction (elastic#84227)
  Fix Intellij integration (elastic#85866)
  Upgrade Azure SDK to version 12.14.4 (elastic#83884)
  [discovery-gce] Fix initialisation of transport in FIPS mode (elastic#85817)
  Remove unnecessary docs/changelog/85534.yaml
  Prevent ThreadContext header leak when sending response (elastic#68649)
  Add support for impact_areas to health impacts  (elastic#85830)
  Reduce port range re-use in tests (elastic#85777)
  Fix TranslogTests#testStats (elastic#85828)
  Remove hppc from cat allocation api (elastic#85842)
  Fix BuildTests serialization (elastic#85827)
  Use urgent priority for node shutdown cluster state update (elastic#85838)
  Remove Task classes from HLRC (elastic#85835)
  Remove unused migration classes (elastic#85834)
  Remove uses of Charset name parsing (elastic#85795)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/Engine Anything around managing Lucene and the Translog in an open shard. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v7.17.3 v8.2.1 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] TranslogTests testStats failing
4 participants