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

Add if_attached argument to detach_data_node() #2515

Merged
merged 1 commit into from Oct 8, 2020

Conversation

pmwkaa
Copy link
Contributor

@pmwkaa pmwkaa commented Oct 8, 2020

This change makes detach_data_node() function consistent with
other data node management functions by adding missing
if_attach argument.

The function will not show an error in case if data node is not
attached and if_attached is set to true.

Issue: #2506

@pmwkaa pmwkaa requested a review from a team as a code owner October 8, 2020 12:17
@pmwkaa pmwkaa requested review from WireBaron, svenklemm, gayyappan and a team and removed request for a team October 8, 2020 12:17
This change makes detach_data_node() function consistent with
other data node management functions by adding missing
if_attach argument.

The function will not show an error in case if data node is not
attached and if_attached is set to true.

Issue: timescale#2506
@codecov
Copy link

codecov bot commented Oct 8, 2020

Codecov Report

Merging #2515 into master will increase coverage by 0.07%.
The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2515      +/-   ##
==========================================
+ Coverage   90.08%   90.16%   +0.07%     
==========================================
  Files         212      212              
  Lines       34198    34175      -23     
==========================================
+ Hits        30808    30814       +6     
+ Misses       3390     3361      -29     
Impacted Files Coverage Δ
src/time_utils.c 97.45% <91.30%> (-0.67%) ⬇️
tsl/src/data_node.c 94.75% <96.29%> (+0.20%) ⬆️
tsl/src/bgw_policy/continuous_aggregate_api.c 95.88% <100.00%> (+0.76%) ⬆️
tsl/src/bgw_policy/job.c 92.30% <100.00%> (-0.10%) ⬇️
tsl/src/bgw_policy/reorder_api.c 95.74% <100.00%> (+0.09%) ⬆️
tsl/src/remote/connection.c 91.76% <100.00%> (+0.12%) ⬆️
tsl/src/fdw/shippable.c 82.85% <0.00%> (-11.43%) ⬇️
tsl/src/bgw_policy/policy_utils.c 72.41% <0.00%> (-8.63%) ⬇️
src/loader/bgw_message_queue.c 84.51% <0.00%> (-3.23%) ⬇️
src/loader/bgw_launcher.c 89.53% <0.00%> (-2.47%) ⬇️
... and 2 more

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 8ddaef6...8bcae3f. Read the comment docs.

@pmwkaa pmwkaa merged commit ebc4fd9 into timescale:master Oct 8, 2020
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Oct 20, 2020
This release candidate contains bugfixes since the previous release candidate.

**Minor Features**
* timescale#2520 Support non-transactional distibuted_exec

**Bugfixes**
* timescale#2307 Overflow handling for refresh policy with integer time
* timescale#2503 Remove error for correct bootstrap of data node
* timescale#2507 Fix validation logic when adding a new data node
* timescale#2510 Fix outer join qual propagation
* timescale#2514 Lock dimension slices when creating new chunk
* timescale#2515 Add if_attached argument to detach_data_node()
* timescale#2517 Fix member access within misaligned address in chunk_update_colstats
* timescale#2525 Fix index creation on hypertables with dropped columns
* timescale#2543 Pass correct status to lock_job
* timescale#2544 Assume custom time type range is same as bigint
* timescale#2563 Fix DecompressChunk path generation
* timescale#2564 Improve continuous aggregate datatype handling
* timescale#2568 Change use of ssl_dir GUC
* timescale#2571 Make errors and messages conform to style guide
@svenklemm svenklemm mentioned this pull request Oct 20, 2020
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Oct 20, 2020
This release candidate contains bugfixes since the previous release candidate.

**Minor Features**
* timescale#2520 Support non-transactional distibuted_exec

**Bugfixes**
* timescale#2307 Overflow handling for refresh policy with integer time
* timescale#2503 Remove error for correct bootstrap of data node
* timescale#2507 Fix validation logic when adding a new data node
* timescale#2510 Fix outer join qual propagation
* timescale#2514 Lock dimension slices when creating new chunk
* timescale#2515 Add if_attached argument to detach_data_node()
* timescale#2517 Fix member access within misaligned address in chunk_update_colstats
* timescale#2525 Fix index creation on hypertables with dropped columns
* timescale#2543 Pass correct status to lock_job
* timescale#2544 Assume custom time type range is same as bigint
* timescale#2563 Fix DecompressChunk path generation
* timescale#2564 Improve continuous aggregate datatype handling
* timescale#2568 Change use of ssl_dir GUC
* timescale#2571 Make errors and messages conform to style guide
* timescale#2577 Exclude compressed chunks from ANALYZE/VACUUM
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Oct 20, 2020
This release candidate contains bugfixes since the previous release candidate.

**Minor Features**
* timescale#2520 Support non-transactional distibuted_exec

**Bugfixes**
* timescale#2307 Overflow handling for refresh policy with integer time
* timescale#2503 Remove error for correct bootstrap of data node
* timescale#2507 Fix validation logic when adding a new data node
* timescale#2510 Fix outer join qual propagation
* timescale#2514 Lock dimension slices when creating new chunk
* timescale#2515 Add if_attached argument to detach_data_node()
* timescale#2517 Fix member access within misaligned address in chunk_update_colstats
* timescale#2525 Fix index creation on hypertables with dropped columns
* timescale#2543 Pass correct status to lock_job
* timescale#2544 Assume custom time type range is same as bigint
* timescale#2563 Fix DecompressChunk path generation
* timescale#2564 Improve continuous aggregate datatype handling
* timescale#2568 Change use of ssl_dir GUC
* timescale#2571 Make errors and messages conform to style guide
* timescale#2577 Exclude compressed chunks from ANALYZE/VACUUM
svenklemm added a commit that referenced this pull request Oct 20, 2020
This release candidate contains bugfixes since the previous release candidate.

**Minor Features**
* #2520 Support non-transactional distibuted_exec

**Bugfixes**
* #2307 Overflow handling for refresh policy with integer time
* #2503 Remove error for correct bootstrap of data node
* #2507 Fix validation logic when adding a new data node
* #2510 Fix outer join qual propagation
* #2514 Lock dimension slices when creating new chunk
* #2515 Add if_attached argument to detach_data_node()
* #2517 Fix member access within misaligned address in chunk_update_colstats
* #2525 Fix index creation on hypertables with dropped columns
* #2543 Pass correct status to lock_job
* #2544 Assume custom time type range is same as bigint
* #2563 Fix DecompressChunk path generation
* #2564 Improve continuous aggregate datatype handling
* #2568 Change use of ssl_dir GUC
* #2571 Make errors and messages conform to style guide
* #2577 Exclude compressed chunks from ANALYZE/VACUUM
svenklemm added a commit that referenced this pull request Oct 20, 2020
This release candidate contains bugfixes since the previous release candidate.

**Minor Features**
* #2520 Support non-transactional distibuted_exec

**Bugfixes**
* #2307 Overflow handling for refresh policy with integer time
* #2503 Remove error for correct bootstrap of data node
* #2507 Fix validation logic when adding a new data node
* #2510 Fix outer join qual propagation
* #2514 Lock dimension slices when creating new chunk
* #2515 Add if_attached argument to detach_data_node()
* #2517 Fix member access within misaligned address in chunk_update_colstats
* #2525 Fix index creation on hypertables with dropped columns
* #2543 Pass correct status to lock_job
* #2544 Assume custom time type range is same as bigint
* #2563 Fix DecompressChunk path generation
* #2564 Improve continuous aggregate datatype handling
* #2568 Change use of ssl_dir GUC
* #2571 Make errors and messages conform to style guide
* #2577 Exclude compressed chunks from ANALYZE/VACUUM
svenklemm added a commit that referenced this pull request Oct 20, 2020
This release candidate contains bugfixes since the previous release candidate.

**Minor Features**
* #2520 Support non-transactional distibuted_exec

**Bugfixes**
* #2307 Overflow handling for refresh policy with integer time
* #2503 Remove error for correct bootstrap of data node
* #2507 Fix validation logic when adding a new data node
* #2510 Fix outer join qual propagation
* #2514 Lock dimension slices when creating new chunk
* #2515 Add if_attached argument to detach_data_node()
* #2517 Fix member access within misaligned address in chunk_update_colstats
* #2525 Fix index creation on hypertables with dropped columns
* #2543 Pass correct status to lock_job
* #2544 Assume custom time type range is same as bigint
* #2563 Fix DecompressChunk path generation
* #2564 Improve continuous aggregate datatype handling
* #2568 Change use of ssl_dir GUC
* #2571 Make errors and messages conform to style guide
* #2577 Exclude compressed chunks from ANALYZE/VACUUM
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

3 participants