aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkungurtsev <kungasc@ydb.tech>2025-04-01 13:56:35 +0200
committerGitHub <noreply@github.com>2025-04-01 14:56:35 +0300
commit19e614d2f465200cba41bea561b25d5a068db42f (patch)
tree059c911a86afb2f114f418965f70fb43ff6289f7
parent2d25d332aa8123ebd45a1e868811687c25ad097c (diff)
downloadydb-19e614d2f465200cba41bea561b25d5a068db42f.tar.gz
Remove upload on page fault "optimization" (#16485)
-rw-r--r--ydb/core/tx/datashard/local_kmeans.cpp6
-rw-r--r--ydb/core/tx/datashard/prefix_kmeans.cpp10
-rw-r--r--ydb/core/tx/datashard/reshuffle_kmeans.cpp6
3 files changed, 3 insertions, 19 deletions
diff --git a/ydb/core/tx/datashard/local_kmeans.cpp b/ydb/core/tx/datashard/local_kmeans.cpp
index 3061055584..6e867e58f8 100644
--- a/ydb/core/tx/datashard/local_kmeans.cpp
+++ b/ydb/core/tx/datashard/local_kmeans.cpp
@@ -247,12 +247,6 @@ public:
EScan PageFault() final
{
LOG_T("PageFault " << Debug());
-
- if (!ReadBuf.IsEmpty() && WriteBuf.IsEmpty()) {
- ReadBuf.FlushTo(WriteBuf);
- Upload(false);
- }
-
return EScan::Feed;
}
diff --git a/ydb/core/tx/datashard/prefix_kmeans.cpp b/ydb/core/tx/datashard/prefix_kmeans.cpp
index fd0c9ac84a..f9db2e2706 100644
--- a/ydb/core/tx/datashard/prefix_kmeans.cpp
+++ b/ydb/core/tx/datashard/prefix_kmeans.cpp
@@ -225,18 +225,12 @@ public:
<< " K: " << K << " Clusters: " << Clusters.size()
<< " State: " << State << " Round: " << Round << " / " << MaxRounds
<< " LevelBuf size: " << LevelBuf.Size() << " PostingBuf size: " << PostingBuf.Size() << " PrefixBuf size: " << PrefixBuf.Size()
- << " UploadTable: " << UploadTable << " UploadBuf size: " << UploadBuf.Size();
+ << " UploadTable: " << UploadTable << " UploadBuf size: " << UploadBuf.Size() << " RetryCount: " << RetryCount;
}
EScan PageFault() final
{
LOG_T("PageFault " << Debug());
-
- UploadInProgress()
- || TryUpload(LevelBuf, LevelTable, LevelTypes, false)
- || TryUpload(PostingBuf, PostingTable, PostingTypes, false)
- || TryUpload(PrefixBuf, PrefixTable, PrefixTypes, false);
-
return EScan::Feed;
}
@@ -328,6 +322,8 @@ protected:
void UploadImpl()
{
+ LOG_D("Uploading " << Debug());
+
Y_ASSERT(!UploadBuf.IsEmpty());
Y_ASSERT(!Uploader);
auto actor = NTxProxy::CreateUploadRowsInternal(
diff --git a/ydb/core/tx/datashard/reshuffle_kmeans.cpp b/ydb/core/tx/datashard/reshuffle_kmeans.cpp
index b919fc306c..0b61f67289 100644
--- a/ydb/core/tx/datashard/reshuffle_kmeans.cpp
+++ b/ydb/core/tx/datashard/reshuffle_kmeans.cpp
@@ -178,12 +178,6 @@ public:
EScan PageFault() final
{
LOG_T("PageFault " << Debug());
-
- if (!ReadBuf.IsEmpty() && WriteBuf.IsEmpty()) {
- ReadBuf.FlushTo(WriteBuf);
- Upload(false);
- }
-
return EScan::Feed;
}