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

YQ-3697 Add partition count to dqrun #9837

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

kardymonds
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

...

Copy link

github-actions bot commented Sep 27, 2024

2024-09-27 05:15:23 UTC Pre-commit check linux-x86_64-relwithdebinfo for afecd01 has started.
2024-09-27 05:15:34 UTC Artifacts will be uploaded here
2024-09-27 05:17:56 UTC ya make is running...
🟡 2024-09-27 05:52:36 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
25026 20942 0 3 4081 0

Copy link

github-actions bot commented Sep 27, 2024

2024-09-27 05:18:11 UTC Pre-commit check linux-x86_64-release-asan for afecd01 has started.
2024-09-27 05:18:22 UTC Artifacts will be uploaded here
2024-09-27 05:20:52 UTC ya make is running...
🟢 2024-09-27 05:46:57 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
84 84 0 0 0 0

aakulaga-ydb
aakulaga-ydb previously approved these changes Sep 27, 2024
@maximyurchuk maximyurchuk added the rebase-and-check Rebase PR with the current base branch and check label Sep 27, 2024
@github-actions github-actions bot removed the rebase-and-check Rebase PR with the current base branch and check label Sep 27, 2024
Copy link

github-actions bot commented Sep 27, 2024

2024-09-27 10:02:08 UTC Pre-commit check linux-x86_64-release-asan for 7529bc7 has started.
2024-09-27 10:02:51 UTC Artifacts will be uploaded here
2024-09-27 10:05:48 UTC ya make is running...
🟢 2024-09-27 10:32:24 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
84 84 0 0 0 0

🟢 2024-09-27 10:32:30 UTC Build successful.

Copy link

github-actions bot commented Sep 27, 2024

2024-09-27 10:02:10 UTC Pre-commit check linux-x86_64-relwithdebinfo for 7529bc7 has started.
2024-09-27 10:02:54 UTC Artifacts will be uploaded here
2024-09-27 10:05:52 UTC ya make is running...
🟡 2024-09-27 10:43:18 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
25026 20942 0 3 4081 0

2024-09-27 10:45:24 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-09-27 10:49:12 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3 (only retried tests) 0 0 3 0 0

2024-09-27 10:49:21 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-09-27 10:53:06 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3 (only retried tests) 0 0 3 0 0

🟢 2024-09-27 10:53:12 UTC Build successful.

Copy link

github-actions bot commented Sep 30, 2024

2024-09-30 05:50:52 UTC Pre-commit check linux-x86_64-relwithdebinfo for dd05e1c has started.
2024-09-30 05:51:02 UTC Artifacts will be uploaded here
2024-09-30 06:04:35 UTC ya make is running...
🟢 2024-09-30 08:28:44 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
25026 20945 0 0 4081 0

🟢 2024-09-30 08:30:40 UTC Build successful.

Copy link

github-actions bot commented Sep 30, 2024

2024-09-30 05:53:12 UTC Pre-commit check linux-x86_64-release-asan for dd05e1c has started.
2024-09-30 05:53:22 UTC Artifacts will be uploaded here
2024-09-30 06:04:46 UTC ya make is running...
🟢 2024-09-30 07:37:51 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
84 84 0 0 0 0

🟢 2024-09-30 07:37:57 UTC Build successful.

return 1;
}
fileGateway->AddDummyTopic(TDummyTopic("pq", TString(topicName), TString(filePath)));
size_t partitionCount = !partitionCountStr.empty() ? partitionCount = FromString<size_t>(partitionCountStr) : 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

перемудрил

@@ -214,18 +215,26 @@ struct TDummyPartitionSession: public NYdb::NTopic::TPartitionSession {
std::shared_ptr<NYdb::NTopic::IReadSession> TFileTopicClient::CreateReadSession(const NYdb::NTopic::TReadSessionSettings& settings) {
Y_ENSURE(!settings.Topics_.empty());
TString topicPath = settings.Topics_.front().Path_;
Copy link
Collaborator

Choose a reason for hiding this comment

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

чтобы уменьшить копипасту положи settings.Topics_.front() в переменную

Y_ENSURE(topicsIt->second.Path);

TString filePath;
if (TFsPath(*topicsIt->second.Path).IsDirectory()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

предлагаю положить TFsPath(*topicsIt->second.Path) в отдельную переменную, у тебя этот объект строится в двух местах

Y_ENSURE(topicsIt->second.Path);

TString filePath;
if (TFsPath(*topicsIt->second.Path).IsDirectory()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

рекомендую *topicsIt->second.Path положить в отдельную переменную, это выражение много где встречается

if (TFsPath(*topicsIt->second.Path).Exists() && topicsIt->second.PartitionsCount == 1) {
filePath = *topicsIt->second.Path;
} else {
filePath = TString(*topicsIt->second.Path) + "_" + ToString(partitionId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

тут подошел бы TStringBuilder

Copy link

github-actions bot commented Oct 2, 2024

2024-10-02 09:27:43 UTC Pre-commit check linux-x86_64-release-asan for bac2e7c has started.
2024-10-02 09:28:21 UTC Artifacts will be uploaded here
2024-10-02 09:31:11 UTC ya make is running...
🟢 2024-10-02 09:34:27 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
84 84 0 0 0 0

🟢 2024-10-02 09:34:34 UTC Build successful.

Copy link

github-actions bot commented Oct 2, 2024

2024-10-02 09:32:08 UTC Pre-commit check linux-x86_64-relwithdebinfo for bac2e7c has started.
2024-10-02 09:32:18 UTC Artifacts will be uploaded here
2024-10-02 09:34:49 UTC ya make is running...
🟢 2024-10-02 09:47:49 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
25026 20945 0 0 4081 0

🟢 2024-10-02 09:50:04 UTC Build successful.

struct stat stats;
if (fstat(file, &stats) != 0) {
return false;
}
Copy link
Collaborator

@yumkam yumkam Oct 3, 2024

Choose a reason for hiding this comment

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

  1. leaks file fd (why not just stat? but...)
  2. racing (between check and actual open);
    ... and I'm not sure, why pipe should be special-cased at all?

Copy link
Collaborator

Choose a reason for hiding this comment

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

желательно не использовать ifdef в нашем коде. нельзя ли заюзать какую-нибудь функцию из util | library/cpp ?

@@ -211,21 +212,51 @@ struct TDummyPartitionSession: public NYdb::NTopic::TPartitionSession {
}
};

static bool IsPipe(const TString& filePath) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

используем анонимные неймспейсы вместо static

Copy link

github-actions bot commented Oct 7, 2024

2024-10-07 05:27:48 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2b077f9 has started.
2024-10-07 05:27:59 UTC Artifacts will be uploaded here
2024-10-07 05:30:24 UTC ya make is running...
🟢 2024-10-07 05:43:32 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
25026 20945 0 0 4081 0

🟢 2024-10-07 05:45:35 UTC Build successful.

Copy link

github-actions bot commented Oct 7, 2024

2024-10-07 05:27:54 UTC Pre-commit check linux-x86_64-release-asan for 2b077f9 has started.
2024-10-07 05:28:03 UTC Artifacts will be uploaded here
2024-10-07 05:30:25 UTC ya make is running...
🟢 2024-10-07 05:33:33 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
84 84 0 0 0 0

🟢 2024-10-07 05:33:39 UTC Build successful.

if (fsPath.Exists() && topicsIt->second.PartitionsCount == 1) {
filePath = *path;
} else {
filePath = TStringBuilder() << *path << "_" << ToString(partitionId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

ToString избыточен

uzhastik
uzhastik previously approved these changes Oct 9, 2024
Copy link

github-actions bot commented Oct 9, 2024

2024-10-09 19:37:16 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2e6aa44 has started.
2024-10-09 19:37:27 UTC Artifacts will be uploaded here
2024-10-09 19:39:50 UTC ya make is running...
🔴 2024-10-09 19:42:16 UTC Build failed, see the logs.

Copy link

github-actions bot commented Oct 9, 2024

2024-10-09 19:37:32 UTC Pre-commit check linux-x86_64-release-asan for 2e6aa44 has started.
2024-10-09 19:37:43 UTC Artifacts will be uploaded here
2024-10-09 19:40:13 UTC ya make is running...
🔴 2024-10-09 19:43:37 UTC Build failed, see the logs.

Copy link

github-actions bot commented Oct 9, 2024

2024-10-09 21:10:49 UTC Pre-commit check linux-x86_64-relwithdebinfo for 4c6a40c has started.
2024-10-09 21:11:00 UTC Artifacts will be uploaded here
2024-10-09 21:12:09 UTC Check cancelled

Copy link

github-actions bot commented Oct 9, 2024

2024-10-09 21:13:39 UTC Pre-commit check linux-x86_64-release-asan for 0ee548f has started.
2024-10-09 21:13:49 UTC Artifacts will be uploaded here
2024-10-09 21:16:19 UTC ya make is running...
🟢 2024-10-09 21:20:53 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
84 84 0 0 0 0

🟢 2024-10-09 21:21:00 UTC Build successful.

Copy link

github-actions bot commented Oct 9, 2024

2024-10-09 21:15:58 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0ee548f has started.
2024-10-09 21:16:10 UTC Artifacts will be uploaded here
2024-10-09 21:18:39 UTC ya make is running...
🟢 2024-10-09 21:32:14 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
25050 20961 0 0 4089 0

🟢 2024-10-09 21:34:12 UTC Build successful.

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 08:00:20 UTC Pre-commit check linux-x86_64-release-asan for 2dfc136 has started.
2024-10-10 08:00:24 UTC Artifacts will be uploaded here
2024-10-10 08:02:54 UTC ya make is running...
🔴 2024-10-10 08:05:22 UTC Build failed, see the logs.

Copy link

github-actions bot commented Oct 10, 2024

2024-10-10 08:02:18 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2dfc136 has started.
2024-10-10 08:02:28 UTC Artifacts will be uploaded here
2024-10-10 08:04:53 UTC ya make is running...
🔴 2024-10-10 08:06:48 UTC Build failed, see the logs.

GrigoriyPA
GrigoriyPA previously approved these changes Oct 10, 2024
Copy link

github-actions bot commented Nov 28, 2024

2024-11-28 12:11:28 UTC Pre-commit check linux-x86_64-release-asan for 1f21a0b has started.
2024-11-28 12:12:03 UTC Artifacts will be uploaded here
2024-11-28 12:15:06 UTC ya make is running...
🟢 2024-11-28 12:36:48 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
129 129 0 0 0 0

🟢 2024-11-28 12:36:55 UTC Build successful.

Copy link

github-actions bot commented Nov 28, 2024

2024-11-28 12:11:30 UTC Pre-commit check linux-x86_64-relwithdebinfo for 1f21a0b has started.
2024-11-28 12:11:42 UTC Artifacts will be uploaded here
2024-11-28 12:14:21 UTC ya make is running...
🟢 2024-11-28 12:45:01 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10003 8680 0 0 1323 0

🟢 2024-11-28 12:45:54 UTC Build successful.

Copy link

github-actions bot commented Dec 17, 2024

2024-12-17 14:00:55 UTC Pre-commit check linux-x86_64-relwithdebinfo for 7ddba4b has started.
2024-12-17 14:01:06 UTC Artifacts will be uploaded here
2024-12-17 14:03:31 UTC ya make is running...
🟢 2024-12-17 14:20:37 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10061 8645 0 0 1416 0

🟢 2024-12-17 14:21:26 UTC Build successful.

Copy link

github-actions bot commented Dec 17, 2024

2024-12-17 14:01:17 UTC Pre-commit check linux-x86_64-release-asan for 7ddba4b has started.
2024-12-17 14:01:29 UTC Artifacts will be uploaded here
2024-12-17 14:03:56 UTC ya make is running...
🟢 2024-12-17 14:15:16 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
130 130 0 0 0 0

🟢 2024-12-17 14:15:22 UTC Build successful.

Copy link

github-actions bot commented Dec 18, 2024

2024-12-18 10:53:38 UTC Pre-commit check linux-x86_64-relwithdebinfo for 3246754 has started.
2024-12-18 10:54:13 UTC Artifacts will be uploaded here
2024-12-18 10:57:21 UTC ya make is running...
🟢 2024-12-18 11:09:47 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10061 8645 0 0 1416 0

🟢 2024-12-18 11:10:40 UTC Build successful.

Copy link

github-actions bot commented Dec 18, 2024

2024-12-18 10:55:54 UTC Pre-commit check linux-x86_64-release-asan for 3246754 has started.
2024-12-18 10:56:06 UTC Artifacts will be uploaded here
2024-12-18 10:58:32 UTC ya make is running...
🟢 2024-12-18 11:01:12 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
130 130 0 0 0 0

🟢 2024-12-18 11:01:19 UTC Build successful.


const auto& topic = settings.Topics_.front();
TString topicPath = topic.Path_;
Y_ENSURE(topic.PartitionIds_.size() == 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

read_actor же сессию в несколько партиций может открыть. Тут точно нету ошибки?

TFsPath fsPath(*path);
if (fsPath.IsDirectory()) {
filePath = TStringBuilder() << *path << "/" << ToString(partitionId);
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

А точно столько режимом нужно? Может с директорией достаточно будет?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Скорее достаточно читать всеми партициями из одного файла.

Copy link

github-actions bot commented Dec 19, 2024

2024-12-19 12:24:20 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2dead47 has started.
2024-12-19 12:24:32 UTC Artifacts will be uploaded here
2024-12-19 12:27:03 UTC ya make is running...
🔴 2024-12-19 12:28:44 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Dec 19, 2024

2024-12-19 12:24:35 UTC Pre-commit check linux-x86_64-release-asan for 2dead47 has started.
2024-12-19 12:24:46 UTC Artifacts will be uploaded here
2024-12-19 12:27:14 UTC ya make is running...
🔴 2024-12-19 12:28:54 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Dec 19, 2024

2024-12-19 15:25:17 UTC Pre-commit check linux-x86_64-release-asan for e52fbf9 has started.
2024-12-19 15:25:29 UTC Artifacts will be uploaded here
2024-12-19 15:28:01 UTC ya make is running...
🟢 2024-12-19 15:30:50 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
130 130 0 0 0 0

🟢 2024-12-19 15:31:00 UTC Build successful.

Copy link

github-actions bot commented Dec 19, 2024

2024-12-19 15:25:39 UTC Pre-commit check linux-x86_64-relwithdebinfo for e52fbf9 has started.
2024-12-19 15:25:51 UTC Artifacts will be uploaded here
2024-12-19 15:28:27 UTC ya make is running...
🟢 2024-12-19 15:41:40 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10064 8648 0 0 1416 0

🟢 2024-12-19 15:42:31 UTC Build successful.

@dorooleg
Copy link
Collaborator

Конфликты появились

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

Successfully merging this pull request may close these issues.

7 participants