Skip to content

Fix !hasPendingData() failed assertion in hdfs read buffer#29276

Merged
kssenii merged 3 commits intoClickHouse:masterfrom
kssenii:hdfs-fix-assertion
Sep 27, 2021
Merged

Fix !hasPendingData() failed assertion in hdfs read buffer#29276
kssenii merged 3 commits intoClickHouse:masterfrom
kssenii:hdfs-fix-assertion

Conversation

@kssenii
Copy link
Copy Markdown
Member

@kssenii kssenii commented Sep 22, 2021

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix (user-visible misbehaviour in official stable or prestable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix failed assertion in ReadBufferFromHDFS. Update libhdfs3 library to be able to run in tests in debug. Closes #29251. Closes #27814.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Sep 22, 2021
@robot-ch-test-poll2 robot-ch-test-poll2 added the submodule changed At least one submodule changed in this PR. label Sep 22, 2021
@kssenii kssenii marked this pull request as draft September 23, 2021 07:08
@kssenii kssenii marked this pull request as ready for review September 23, 2021 07:21
Copy link
Copy Markdown
Member

@alesapin alesapin left a comment

Choose a reason for hiding this comment

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

Ok, but not clear why we have separate ReadBufferFromHDFSImpl at all?

@alesapin alesapin self-assigned this Sep 27, 2021
@kssenii
Copy link
Copy Markdown
Member Author

kssenii commented Sep 27, 2021

Ok, but not clear why we have separate ReadBufferFromHDFSImpl at all?

For simplicity I guess. Reading from hdfs must be done into BufferWithOwnMemory and the hdfs buffer itself must be SeekableReadBuffer so without impl will have to have something like BufferWithOwnMemory<SeekableReadBuffer> and it does not look correct to have it this way.

@kssenii kssenii merged commit beda6be into ClickHouse:master Sep 27, 2021
@alesapin
Copy link
Copy Markdown
Member

Screenshot_2021-09-27_15-48-48
@kssenii Any comments for these failures?

@kssenii
Copy link
Copy Markdown
Member Author

kssenii commented Sep 27, 2021

Ok..

Functional stateless tests (debug) fail: 1 -- 02015_async_inserts_5 not related.

integration tests all failed with test_dictionaries_ddl/* not related and was fixed in #29365 and test_rocksdb_options/test.py::test_invalid_column_family_options is being fixed by azat.

Unit tests release gcc fail: 1 -- Executor.RemoveTasksStress -- not related

robot-clickhouse pushed a commit that referenced this pull request Sep 27, 2021
robot-clickhouse pushed a commit that referenced this pull request Sep 27, 2021
robot-clickhouse pushed a commit that referenced this pull request Sep 27, 2021
robot-clickhouse pushed a commit that referenced this pull request Sep 27, 2021
kssenii added a commit that referenced this pull request Sep 28, 2021
Backport #29276 to 21.8: Fix !hasPendingData() failed assertion in hdfs read buffer
kssenii added a commit that referenced this pull request Sep 28, 2021
Backport #29276 to 21.9: Fix !hasPendingData() failed assertion in hdfs read buffer
kssenii added a commit that referenced this pull request Sep 28, 2021
Backport #29276 to 21.10: Fix !hasPendingData() failed assertion in hdfs read buffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClickHouse raise an Assertion when execute select on hdfs engine on 21.8.3-lts libhdfs3 use rand function from libc

4 participants