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

Remove unreferenced steps from isolation tests #2487

Merged
merged 1 commit into from Oct 15, 2020

Conversation

svenklemm
Copy link
Member

Some isolation tests had steps that were not referenced in
any of the permutations so this patch removes those.

@svenklemm svenklemm requested a review from a team as a code owner October 4, 2020 14:08
@svenklemm svenklemm requested review from pmwkaa, mkindahl and gayyappan and removed request for a team October 4, 2020 14:08
@codecov
Copy link

codecov bot commented Oct 4, 2020

Codecov Report

Merging #2487 into master will increase coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2487      +/-   ##
==========================================
+ Coverage   90.07%   90.19%   +0.12%     
==========================================
  Files         212      212              
  Lines       34198    34148      -50     
==========================================
- Hits        30805    30801       -4     
+ Misses       3393     3347      -46     
Impacted Files Coverage Δ
tsl/src/fdw/shippable.c 82.85% <0.00%> (-11.43%) ⬇️
src/import/planner.c 70.30% <0.00%> (+11.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e507af...3449a70. Read the comment docs.

{
LOCK _timescaledb_catalog.continuous_aggs_invalidation_threshold
IN ACCESS EXCLUSIVE MODE;
}
step "L1_unlock_threshold_table"
Copy link
Contributor

Choose a reason for hiding this comment

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

If the lock step is removed, then we shouldn't need the unlock either.

Copy link
Member Author

Choose a reason for hiding this comment

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

removing the unlock does alter the test and leads to different test output

Copy link
Contributor

@mkindahl mkindahl left a comment

Choose a reason for hiding this comment

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

It seems like the intention was to have "begin" and "commit" steps separate, so wouldn't it be more reasonable to add them to the permutation (and fix the step that has an extra "begin")?

step "S1" { SELECT count(*) from ts_device_table; }
step "SC1" { SELECT count(*) from _timescaledb_internal._hyper_1_1_chunk; }
step "SH" { SELECT total_chunks, number_compressed_chunks from hypertable_compression_stats('ts_device_table'); }
step "Sc" {COMMIT;}
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is missing from the sequences below, is not that an error in itself?

Copy link
Member Author

Choose a reason for hiding this comment

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

this PR only removes dead code, and an isolation test session is not required to be in a single transaction, to check progress in a session it's actually required not to run in transaction due to MVCC

Copy link
Contributor

Choose a reason for hiding this comment

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

Well... yes, but why was the commit there to begin with if it was not needed?

Some isolation tests had steps that were not referenced in
any of the permutations so this patch removes those.
@svenklemm svenklemm merged commit b1c28c9 into timescale:master Oct 15, 2020
@svenklemm svenklemm deleted the iso_unref branch April 18, 2021 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants