Skip to content

Fix AWS ECS#65164

Merged
Avogar merged 14 commits intomasterfrom
ecs
Jun 17, 2024
Merged

Fix AWS ECS#65164
Avogar merged 14 commits intomasterfrom
ecs

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov commented Jun 12, 2024

This was reverted

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

This change was reverted

CI Settings (Only check the boxes if you know what you are doing):

  • Allow: All Required Checks
  • Allow: Stateless tests
  • Allow: Stateful tests
  • Allow: Integration Tests
  • Allow: Performance tests
  • Allow: Normal Builds
  • Allow: Special Builds
  • Allow: All NOT Required Checks
  • Allow: batch 1, 2 for multi-batch jobs
  • Allow: batch 3, 4, 5, 6 for multi-batch jobs

  • Exclude: Style check
  • Exclude: Fast test
  • Exclude: All with ASAN
  • Exclude: All with TSAN, MSAN, UBSAN, Coverage
  • Exclude: All with aarch64, release, debug

  • Do not test
  • Upload binaries for special builds
  • Disable merge-commit
  • Disable CI cache

return protocol_prefix;
}

template <bool new_syntax>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These were idiotic templates but not related to the issue.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Jun 12, 2024
{

inline static constexpr uint64_t DEFAULT_EXPIRATION_WINDOW_SECONDS = 120;
inline static constexpr uint64_t DEFAULT_CONNECT_TIMEOUT_MS = 1000;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unused variables.

@robot-clickhouse
Copy link
Copy Markdown
Member

robot-clickhouse commented Jun 12, 2024

This is an automated comment for commit d9c4a3b with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
A SyncIf it fails, ask a maintainer for help⏳ pending
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR❌ failure
Mergeable CheckChecks if all other necessary checks are successful❌ failure
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure
Successful checks
Check nameDescriptionStatus
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process✅ success
Docs checkBuilds and tests the documentation✅ success
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integration tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ success
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests✅ success
PR CheckChecks correctness of the PR's body✅ success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success
Unit testsRuns the unit tests for different release types✅ success

{
auto context = Context::getGlobalContextInstance();
chassert(context);
auto proxy_configuration_resolver = DB::ProxyConfigurationResolverProvider::get(DB::ProxyConfiguration::protocolFromString(protocol), context->getConfigRef());
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Extraneous namespace qualification.

std::shared_ptr<Aws::Http::HttpClient>
PocoHTTPClientFactory::CreateHttpClient(const Aws::Client::ClientConfiguration & client_configuration) const
{
return std::make_shared<PocoHTTPClient>(static_cast<const PocoHTTPClientConfiguration &>(client_configuration));
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The bug is here.

@alexey-milovidov alexey-milovidov marked this pull request as ready for review June 12, 2024 12:19
@serxa serxa self-assigned this Jun 12, 2024
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the submodule changed At least one submodule changed in this PR. label Jun 16, 2024
@Avogar Avogar added this pull request to the merge queue Jun 17, 2024
Merged via the queue into master with commit 903b09b Jun 17, 2024
@Avogar Avogar deleted the ecs branch June 17, 2024 19:14
@tavplubix
Copy link
Copy Markdown
Member

@Avogar, it breaks CI, please resubmit

@tavplubix tavplubix mentioned this pull request Jun 17, 2024
@Avogar
Copy link
Copy Markdown
Member

Avogar commented Jun 17, 2024

@Avogar, it breaks CI, please resubmit

Can you share what is broken?

UPD: A Sync, now I see. It wasn't red and I didn't notice it. My fault. I will resubmit it

@tavplubix
Copy link
Copy Markdown
Member

UPD: A Sync, now I see. It wasn't red and I didn't notice it

Yes, there's a bug in A Sync status that makes it yellow when it's actually red, so yellow is worth attention too, but it's not obvious. cc: @maxknv

@jakedaleweb
Copy link
Copy Markdown

Hi team. Thanks so much for addressing this, I am very keen to test it out. Please let me know when there is a container build I can use. It looks like head-alpine is currently a few commits behind this one.

@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 17, 2024
@jakedaleweb
Copy link
Copy Markdown

Hello, seeing segmentation faults with this in-place still

18 June 2024 at 14:56 (UTC+12:00)
2024.06.18 02:56:03.241077 [ 57 ] {} <Fatal> Application: Child process was terminated by signal 11.
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:58.098447 [ 715 ] {} <Fatal> BaseDaemon: Integrity check of the executable successfully passed (checksum: C151D080117C79E61B8F56759CC284F0)
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:58.098656 [ 715 ] {} <Information> SentryWriter: Not sending crash report
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:58.098754 [ 715 ] {} <Fatal> BaseDaemon: Report this error to https://github.com/ClickHouse/ClickHouse/issues
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:57.735008 [ 715 ] {} <Fatal> BaseDaemon: (version 24.6.1.4010 (official build), build id: FF9078AF95645BE01B16663A1B04A9FF803EA617, git hash: 856f5c395a5db5a577e928000da18506f2ac0c42) (from thread 60) (no query) Received signal Segmentation fault (11)
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:57.735051 [ 715 ] {} <Fatal> BaseDaemon: Address: 0x322bcb0. Access: read. Attempted access has violated the permissions assigned to the memory area.
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:57.735096 [ 715 ] {} <Fatal> BaseDaemon: Stack trace: 0x000000000d25d72c 0x00007f0e7274b420
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:57.735162 [ 715 ] {} <Fatal> BaseDaemon: 0. signalHandler(int, siginfo_t*, void*) @ 0x000000000d25d72c
pollution-atomic-1-clickhouse-fargate
18 June 2024 at 14:55 (UTC+12:00)
2024.06.18 02:55:57.735203 [ 715 ] {} <Fatal> BaseDaemon: 1. ? @ 0x00007f0e7274b420

Using the following configuration

<clickhouse>
    <logger>
      <level>information</level>
      <console>true</console>
    </logger>
    <storage_configuration>
      <disks>
        <s3_disk>
          <type>s3</type>
          <endpoint from_env="CLICKHOUSE_BACKEND_BUCKET"/>
          <use_environment_credentials>true</use_environment_credentials>
          <metadata_path>/var/lib/clickhouse/disks/s3_disk/</metadata_path>
        </s3_disk>
        <s3_cache>
          <type>cache</type>
          <disk>s3_disk</disk>
          <path>/var/lib/clickhouse/disks/s3_cache/</path>
          <max_size>10Gi</max_size>
        </s3_cache>
      </disks>
      <policies>
        <s3_main>
          <volumes>
            <main>
              <disk>s3_disk</disk>
            </main>
          </volumes>
        </s3_main>
      </policies>
    </storage_configuration>
</clickhouse>

@alexey-milovidov
Copy link
Copy Markdown
Member Author

@jakedaleweb, it is not merged.

@jakedaleweb
Copy link
Copy Markdown

ah sorry! getting ahead of myself

@Algunenano Algunenano added pr-not-for-changelog This PR should not be mentioned in the changelog and removed pr-bugfix Pull request with bugfix, not backported by default labels Jun 20, 2024
@Sharu95
Copy link
Copy Markdown

Sharu95 commented Jun 20, 2024

Is this fix continued somewhere else?

@Avogar
Copy link
Copy Markdown
Member

Avogar commented Jun 20, 2024

Here is the resubmit: #65362

@alexey-milovidov
Copy link
Copy Markdown
Member Author

@Sharu95, we found two bugs in the AWS SDK - it is incompatible with C++23, it is not memory safe 😆 and has data races. Pending fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants