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

rebase generic remote storage pr #2401

Closed
wants to merge 2 commits into from

Conversation

LizardWizzard
Copy link
Contributor

rebased/comments applied version of #2368

there were some conflicts which I resolved quite mechanically so not overwriting the PR directly and opened separate one to run tests first

…torage>'

We had a pattern like this:

    match remote_storage {
        GenericRemoteStorage::Local(storage) => {
            let source = storage.remote_object_id(&file_path)?;
            ...
            storage
                .function(&source, ...)
                .await
       },
       GenericRemoteStorage::S3(storage) => {
	    ... exact same code as for the Local case ...
       },

This removes the code duplication, by allowing you to call the functions
directly on GenericRemoteStorage.

Also change RemoveObjectId to be just a type alias for String. Now that
the callers of GenericRemoteStorage functions don't know whether they're
dealing with the LocalFs or S3 implementation, RemoveObjectId must be the
same type for both.
@LizardWizzard LizardWizzard force-pushed the dkr/rebase-generic-remote-storage-pr branch from af20227 to b6eb064 Compare September 7, 2022 07:43
@LizardWizzard LizardWizzard force-pushed the dkr/rebase-generic-remote-storage-pr branch from b6eb064 to 6bb2668 Compare September 7, 2022 08:38
@LizardWizzard
Copy link
Contributor Author

LizardWizzard commented Sep 7, 2022

Hmm, test_parallel_copy failed with this error:

2022-09-07T09:09:08.7867833Z E   asyncpg.exceptions.PostgresIOError: could not read block 6 in rel 1663/12972/16384.0 from page server at lsn 0/016960E8
2022-09-07T09:09:08.7868581Z E   DETAIL:  page server returned error: could not find data for key 000000067F000032AC0000400000FFFFFFFF at LSN 0/1696070, for request at LSN 0/16960E8

Doesnt look related to me, cannot find storage logs for this test run...

@hlinnaka
Copy link
Contributor

hlinnaka commented Sep 7, 2022

Hmm, test_parallel_copy failed with this error:

2022-09-07T09:09:08.7867833Z E   asyncpg.exceptions.PostgresIOError: could not read block 6 in rel 1663/12972/16384.0 from page server at lsn 0/016960E8
2022-09-07T09:09:08.7868581Z E   DETAIL:  page server returned error: could not find data for key 000000067F000032AC0000400000FFFFFFFF at LSN 0/1696070, for request at LSN 0/16960E8

Doesnt look related to me, cannot find storage logs for this test run...

Known issue, see #2398

@bayandin bayandin deleted the dkr/rebase-generic-remote-storage-pr branch May 19, 2023 13:04
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.

2 participants