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

convert Timeline::layers to async RwLock atop #4333 #4361

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
7126197
pagectl: refactor ctl and support dump kv in delta (#4268)
skyzh May 24, 2023
f276f21
ci: use eu-central-1 bucket (#4315)
skyzh May 24, 2023
e11ba24
tenant loops: operate on the Arc<Tenant> directly (#4298)
problame May 25, 2023
6052ece
Add connector extension to send Role/Database updates to console (#3891)
May 25, 2023
37ecebe
mgr::get_tenant: distinguished error type (#4300)
problame May 25, 2023
83ba02b
tenant_status: don't InternalServerError if tenant not found (#4337)
problame May 25, 2023
e561702
refactor: eliminate global storage_broker client state (#4318)
problame May 25, 2023
ab2757f
bump dependencies version (#4336)
skyzh May 25, 2023
08e7d24
Storage: use Postgres 15 as default (#2809)
bayandin May 25, 2023
85e7609
test: fix ancestor is stopping flakyness (#4234)
koivunej May 25, 2023
ae805b9
Bump vm-builder v0.7.3-alpha3 -> v0.8.0 (#4339)
sharnoff May 25, 2023
057cceb
refactor: make timeline activation infallible (#4319)
problame May 25, 2023
2b25f0d
Fix flakiness of test_metric_collection (#4346)
bayandin May 25, 2023
024109f
Allow for higher s3 concurrency (#4292)
koivunej May 26, 2023
a560b28
Make new tenant/timeline IDs mandatory in create APIs. (#4304)
hlinnaka May 26, 2023
339a3e3
GitHub Autocomment: comment commits for branches (#4335)
bayandin May 26, 2023
be177f8
Revert "Allow for higher s3 concurrency (#4292)" (#4356)
koivunej May 26, 2023
a1ae23b
controversial but necessary: keep holding layer map lock inside compa…
problame May 10, 2023
a1680b1
basebackup import: pre-lock the layer map for the `flush()` calls
problame May 12, 2023
7de3799
(does not compile): make TimelineWriter `Send` by using tokio::sync M…
problame May 12, 2023
2001c31
turn Timeline::layers into tokio::sync::RwLock
problame May 26, 2023
4e359db
pgserver: spawn_blocking in compaction (#4265)
skyzh May 26, 2023
200a520
Minor refactoring in RequestSpan
hlinnaka May 26, 2023
2cdf07f
Refactor RequestSpan into a function.
hlinnaka May 26, 2023
2d6a022
Don't allow two timeline_delete operations to run concurrently. (#4313)
hlinnaka May 27, 2023
ccf653c
re-enable file cache integration for VM compute node (#4338)
sharnoff May 28, 2023
f4f3007
refactor TenantState transitions (#4321)
problame May 29, 2023
cb83495
try: startup speedup (#4366)
koivunej May 29, 2023
db14355
revert: static global init logical size limiter (#4368)
koivunej May 30, 2023
daa79b1
Code Coverage: store lcov report (#4358)
bayandin May 30, 2023
210be6b
Replace broker duration logs with metrics (#4370)
petuhovskiy May 30, 2023
f4db85d
Continued startup speedup (#4372)
koivunej May 30, 2023
b190c3e
reduce flakiness by allowing Compaction failed, retrying in X queue i…
LizardWizzard May 30, 2023
b644746
Fix layer map correctness bug (#4342)
bojanserafimov May 31, 2023
952d6e4
Add pageserver parameter forced_image_creation_limit which can be use…
knizhnik May 31, 2023
3300836
Fix stale and misleading comment in LayerMap (#4297)
bojanserafimov Jun 1, 2023
36fee50
compute_ctl: enable tracing panic hook (#4375)
koivunej Jun 1, 2023
82484e8
pgserver: add more metrics for better observability (#4323)
skyzh Jun 1, 2023
66cdba9
refactor: use PersistentLayerDesc for persistent layers (#4398)
skyzh Jun 1, 2023
ef80a90
pg_sni_router: add session_id to more messages (#4403)
koivunej Jun 2, 2023
9787227
Shield HTTP request handlers from async cancellations. (#4314)
hlinnaka Jun 2, 2023
a55c663
chore: comment marker fixes (#4406)
koivunej Jun 2, 2023
4ba950a
Add libcurl as dependency to readme (#4405)
bojanserafimov Jun 2, 2023
0454282
Add HNSW extension (#4227)
knizhnik Jun 4, 2023
8caef2c
fix: delay `eviction_task` as well (#4397)
koivunej Jun 5, 2023
b987115
Compile PGX ULID extension (#4413)
vadim2404 Jun 5, 2023
8142edd
test: Less flaky gc (#4416)
koivunej Jun 5, 2023
77598f5
Better walreceiver logging (#4402)
koivunej Jun 5, 2023
e0bd81c
test: fix flaky warning on attach (#4415)
koivunej Jun 5, 2023
8e1b5e1
Remove -ftree-vectorizer-verbose=0 option notrecognized by MaxOS/X c…
knizhnik Jun 5, 2023
ac11e7c
Remove arch-specific stuff from HNSW extension (#4423)
Jun 6, 2023
18a9d47
test: restore NotConnected being allowed globally (#4426)
koivunej Jun 6, 2023
0cef7e9
refactor: just one way to shutdown a tenant (#4407)
koivunej Jun 6, 2023
df3bae2
Use `compute_ctl` to manage Postgres in tests. (#3886)
hlinnaka Jun 6, 2023
dc6a382
Increase timeouts on compute -> sk connections.
arssher Jun 6, 2023
c058e1c
Quick exit in truncate_wal if nothing to do.
arssher Jun 6, 2023
6b3c020
Don't warn on system id = 0 in walproposer greeting.
arssher Jun 6, 2023
88f0cfc
Fix `pgx_ulid` extension (#4431)
vadim2404 Jun 7, 2023
5761190
feat: three phased startup order (#4399)
koivunej Jun 7, 2023
a66a16d
Merge remote-tracking branch 'origin/main' into problame/async-timeli…
problame Jun 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/actions/run-python-test-set/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ inputs:
description: 'Region name for real s3 tests'
required: false
default: ''
real_s3_access_key_id:
description: 'Access key id'
required: false
default: ''
real_s3_secret_access_key:
description: 'Secret access key'
required: false
default: ''
rerun_flaky:
description: 'Whether to rerun flaky tests'
required: false
Expand Down Expand Up @@ -104,8 +96,6 @@ runs:
COMPATIBILITY_POSTGRES_DISTRIB_DIR: /tmp/neon-previous/pg_install
TEST_OUTPUT: /tmp/test_output
BUILD_TYPE: ${{ inputs.build_type }}
AWS_ACCESS_KEY_ID: ${{ inputs.real_s3_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.real_s3_secret_access_key }}
COMPATIBILITY_SNAPSHOT_DIR: /tmp/compatibility_snapshot_pg${{ inputs.pg_version }}
ALLOW_BACKWARD_COMPATIBILITY_BREAKAGE: contains(github.event.pull_request.labels.*.name, 'backward compatibility breakage')
ALLOW_FORWARD_COMPATIBILITY_BREAKAGE: contains(github.event.pull_request.labels.*.name, 'forward compatibility breakage')
Expand Down
30 changes: 17 additions & 13 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,8 @@ jobs:
test_selection: regress
needs_postgres_source: true
run_with_real_s3: true
real_s3_bucket: ci-tests-s3
real_s3_region: us-west-2
real_s3_access_key_id: "${{ secrets.AWS_ACCESS_KEY_ID_CI_TESTS_S3 }}"
real_s3_secret_access_key: "${{ secrets.AWS_SECRET_ACCESS_KEY_CI_TESTS_S3 }}"
real_s3_bucket: neon-github-ci-tests
real_s3_region: eu-central-1
rerun_flaky: true
pg_version: ${{ matrix.pg_version }}
env:
Expand Down Expand Up @@ -409,9 +407,7 @@ jobs:
uses: ./.github/actions/allure-report-generate

- uses: actions/github-script@v6
if: >
!cancelled() &&
github.event_name == 'pull_request'
if: ${{ !cancelled() }}
with:
# Retry script for 5XX server errors: https://github.com/actions/github-script#retries
retries: 5
Expand All @@ -421,7 +417,7 @@ jobs:
reportJsonUrl: "${{ steps.create-allure-report.outputs.report-json-url }}",
}

const script = require("./scripts/pr-comment-test-report.js")
const script = require("./scripts/comment-test-report.js")
await script({
github,
context,
Expand Down Expand Up @@ -496,19 +492,24 @@ jobs:
env:
COMMIT_URL: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha || github.sha }}
run: |
scripts/coverage \
--dir=/tmp/coverage report \
scripts/coverage --dir=/tmp/coverage \
report \
--input-objects=/tmp/coverage/binaries.list \
--commit-url=${COMMIT_URL} \
--format=github

scripts/coverage --dir=/tmp/coverage \
report \
--input-objects=/tmp/coverage/binaries.list \
--format=lcov

- name: Upload coverage report
id: upload-coverage-report
env:
BUCKET: neon-github-public-dev
COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
run: |
aws s3 cp --only-show-errors --recursive /tmp/coverage/report s3://neon-github-public-dev/code-coverage/${COMMIT_SHA}
aws s3 cp --only-show-errors --recursive /tmp/coverage/report s3://${BUCKET}/code-coverage/${COMMIT_SHA}

REPORT_URL=https://${BUCKET}.s3.amazonaws.com/code-coverage/${COMMIT_SHA}/index.html
echo "report-url=${REPORT_URL}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -663,6 +664,9 @@ jobs:
project: nrdv0s4kcs
push: true
tags: 369495373322.dkr.ecr.eu-central-1.amazonaws.com/neon:depot-${{needs.tag.outputs.build-tag}}
build-args: |
GIT_VERSION=${{ github.sha }}
REPOSITORY=369495373322.dkr.ecr.eu-central-1.amazonaws.com

compute-tools-image:
runs-on: [ self-hosted, gen3, large ]
Expand Down Expand Up @@ -777,7 +781,7 @@ jobs:
run:
shell: sh -eu {0}
env:
VM_BUILDER_VERSION: v0.7.3-alpha3
VM_BUILDER_VERSION: v0.8.0

steps:
- name: Checkout
Expand All @@ -798,7 +802,7 @@ jobs:

- name: Build vm image
run: |
./vm-builder -src=369495373322.dkr.ecr.eu-central-1.amazonaws.com/compute-node-${{ matrix.version }}:${{needs.tag.outputs.build-tag}} -dst=369495373322.dkr.ecr.eu-central-1.amazonaws.com/vm-compute-node-${{ matrix.version }}:${{needs.tag.outputs.build-tag}}
./vm-builder -enable-file-cache -src=369495373322.dkr.ecr.eu-central-1.amazonaws.com/compute-node-${{ matrix.version }}:${{needs.tag.outputs.build-tag}} -dst=369495373322.dkr.ecr.eu-central-1.amazonaws.com/vm-compute-node-${{ matrix.version }}:${{needs.tag.outputs.build-tag}}

- name: Pushing vm-compute-node image
run: |
Expand Down
Loading