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

Fix postgres server restart on background worker exit #5117

Merged
merged 1 commit into from Dec 23, 2022

Conversation

konskov
Copy link
Contributor

@konskov konskov commented Dec 22, 2022

No description provided.

@konskov
Copy link
Contributor Author

konskov commented Dec 22, 2022

just testing

@codecov
Copy link

codecov bot commented Dec 22, 2022

Codecov Report

Merging #5117 (3890d31) into main (ca60969) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5117      +/-   ##
==========================================
- Coverage   89.45%   89.45%   -0.01%     
==========================================
  Files         227      227              
  Lines       51618    51614       -4     
==========================================
- Hits        46174    46170       -4     
  Misses       5444     5444              
Impacted Files Coverage Δ
src/bgw/job.c 93.24% <100.00%> (+0.28%) ⬆️
src/bgw/job_stat.c 91.87% <0.00%> (-0.32%) ⬇️
tsl/src/nodes/data_node_dispatch.c 93.03% <0.00%> (-0.22%) ⬇️
tsl/src/bgw_policy/job.c 87.28% <0.00%> (-0.05%) ⬇️

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 ca60969...3890d31. Read the comment docs.

@@ -1163,7 +1140,7 @@ ts_bgw_job_entrypoint(PG_FUNCTION_ARGS)
* not respect critical sections. We install an silent signal handler for
* invisible jobs, which will then die without printing an error message.
*/
pqsignal(SIGTERM, params.croak_silently ? croak : die);
pqsignal(SIGTERM, die);
Copy link
Member

Choose a reason for hiding this comment

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

Should remove reference to other function in comment above.

@svenklemm svenklemm added this to the TimescaleDB 2.9.1 milestone Dec 22, 2022
@konskov konskov force-pushed the croak_test branch 2 times, most recently from 8a96f40 to a46e7b4 Compare December 23, 2022 08:04
@konskov konskov changed the title Remove croak signal handler Fix postgres server restart on background worker exit Dec 23, 2022
Fixed by removing the croak signal handler that was introduced
to enable the silent exit of the telemetry job.
@konskov konskov merged commit cdf8676 into timescale:main Dec 23, 2022
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Dec 23, 2022
This release contains bug fixes since the 2.9.0 release.
This release is high priority for upgrade. We strongly recommend that you
upgrade as soon as possible.

**Bugfixes**
* timescale#5072 Fix CAgg on CAgg bucket size validation
* timescale#5101 Fix enabling compression on caggs with renamed columns
* timescale#5106 Fix building against PG15 on Windows
* timescale#5117 Fix postgres server restart on background worker exit
* timescale#5121 Fix privileges for job_errors in update script
@svenklemm svenklemm mentioned this pull request Dec 23, 2022
svenklemm added a commit that referenced this pull request Dec 23, 2022
This release contains bug fixes since the 2.9.0 release.
This release is high priority for upgrade. We strongly recommend that you
upgrade as soon as possible.

**Bugfixes**
* #5072 Fix CAgg on CAgg bucket size validation
* #5101 Fix enabling compression on caggs with renamed columns
* #5106 Fix building against PG15 on Windows
* #5117 Fix postgres server restart on background worker exit
* #5121 Fix privileges for job_errors in update script
svenklemm added a commit that referenced this pull request Dec 23, 2022
This release contains bug fixes since the 2.9.0 release.
This release is high priority for upgrade. We strongly recommend that you
upgrade as soon as possible.

**Bugfixes**
* #5072 Fix CAgg on CAgg bucket size validation
* #5101 Fix enabling compression on caggs with renamed columns
* #5106 Fix building against PG15 on Windows
* #5117 Fix postgres server restart on background worker exit
* #5121 Fix privileges for job_errors in update script
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