Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
b3b99f7
Column statistics (#8487)
azevaykin Sep 4, 2024
49fc9ff
YQ-3491 support sql for resource pool classifiers (#7389)
GrigoriyPA Aug 6, 2024
25f013c
YQ-3492 support resource pool classifiers objects saving (#7491)
GrigoriyPA Aug 12, 2024
dce45d2
YQ-3493 support resource pool classifiers kqp_proxy cache (#7688)
GrigoriyPA Aug 13, 2024
3206c04
YQ WM increase future wait timeout (#7780)
GrigoriyPA Aug 14, 2024
c6c21ad
YQ WM move resource pools into metadata folder (#7741)
GrigoriyPA Aug 14, 2024
030f35a
YQ-3556 move workload manager sensors under feature flag (#7768)
GrigoriyPA Aug 15, 2024
35b0b1f
YQ-3555 added validations on not existing for alter/drop object (#7757)
GrigoriyPA Aug 15, 2024
0559195
Fixed sqs tests
GrigoriyPA Aug 15, 2024
b1afccd
YQ WM fixed databse checking (#8251)
GrigoriyPA Aug 26, 2024
7335582
YQ WM fixed cleanup table retries (#8369)
GrigoriyPA Aug 28, 2024
45597d3
YQ WM improved overload issues (#8437)
GrigoriyPA Aug 29, 2024
1b9be9f
Merge pull request #8732 from GrigoriyPA/stable-24-3-8-analytics
maximyurchuk Sep 5, 2024
8ffabfb
Merging CBO into stable-24-3-8-analytics (#8819)
pavelvelikhov Sep 6, 2024
ac22cb5
fix analyze for serverless case (#8843)
alexd65536 Sep 6, 2024
5909a74
Revert "Fix hash spreading in HashPartitionConsumer (#4364)" (#8980)
gridnevvvit Sep 9, 2024
1f29b7c
[Stable 24 3 8 analytics] EvWrite & CTAS (#8861)
nikvas0 Sep 9, 2024
f837701
YQ-3597 disable metadata objects on serverless (#8922)
GrigoriyPA Sep 10, 2024
89fd4d0
Merge compute limits (#8923)
ssmike Sep 11, 2024
b82247b
YQ-3644 added validations for resource pool parametres (#8958)
GrigoriyPA Sep 11, 2024
5da10d3
Backport everything about blocks and stats (#8972)
abyss7 Sep 13, 2024
04ee172
YQ-3658 added DisableExternalDataSourcesOnServerless feature flag (#9…
GrigoriyPA Sep 13, 2024
ffe45cd
Stable 24 3 8 analytics (#9022)
lll-phill-lll Sep 16, 2024
9e92eb1
Change CODEOWNERS (#9406) (#9411)
zverevgeny Sep 18, 2024
89eba5c
unmute ydb/tests/functional/clickbench (#9254) (#9417)
zverevgeny Sep 19, 2024
79bc3c2
[24-3-8] analytics: locks fixes & basic HTAP (#9117)
nikvas0 Sep 19, 2024
b87553f
Stable cs to analytics (#9484)
zverevgeny Sep 20, 2024
c7bd3d0
MEMBERNAME has been renamed to MEMBER_NAME (#9666) (#9827)
dorooleg Sep 27, 2024
e73d806
use sepecific timeout for generic queues (#6653) (#10221)
iddqdex Oct 8, 2024
245dfa3
YQ-3684 passed database id into workload manager and resource pool cl…
GrigoriyPA Oct 9, 2024
b2fc4b8
Dynamic deadline for CS scan (#9520) (#10282)
iddqdex Oct 10, 2024
3b364c1
[24-3-analytics] CTAS & Sinks fixes (#10326)
nikvas0 Oct 14, 2024
e8c42a4
Merge CBO + CBO-KQP improvements (#10400)
pashandor789 Oct 15, 2024
edc9411
Cherries from stable cs (#10446)
zverevgeny Oct 15, 2024
5280183
Change CODEOWNERS (#10471)
zverevgeny Oct 16, 2024
5bd23c1
Merge branch 'stable-24-3-8-analytics' into analytics_to_stable
zverevgeny Oct 16, 2024
c07c0fb
Merge pull request #10477 from zverevgeny/analytics_to_stable
maximyurchuk Oct 16, 2024
985cdc2
comment long tests (#10529)
zverevgeny Oct 16, 2024
7e2dcef
disable spilling (#10583)
gridnevvvit Oct 18, 2024
75503d5
Relative time sensors and time series backport (#10640)
Hor911 Oct 19, 2024
8e31388
fix CODEOWNERS
zverevgeny Oct 20, 2024
4c18632
Revert "24-3: Stop writing indexImplTables' split boundaries to backu…
jepett0 Oct 23, 2024
fefa9bb
Merge pull request #10643 from zverevgeny/stable-24-3-10-analytics_to…
maximyurchuk Oct 24, 2024
c2af35d
Statistics: portion of bug fixes (#10718)
azevaykin Oct 24, 2024
64c159d
Single line backport to put Physical Stage IDs to plans (#10827)
Hor911 Oct 24, 2024
93f64f6
24-3: Index build: do not lose the requested partitioning settings of…
jepett0 Oct 24, 2024
8d0968e
fix use after free on follower deletion (#10850)
vporyadke Oct 24, 2024
f691ff7
24-3 Fix memory consumption restriction in stream RPC calls (#10758) …
UgnineSirdis Oct 25, 2024
e742895
persqueue: fix user agent counters (for 24-3) (#10875)
qyryq Oct 25, 2024
0bf5166
[Stable-24-3] Fixes for sinks (#10655)
nikvas0 Oct 25, 2024
5ef387d
[CBO] Merge transitive closure + cycles fixes in DPHyp (#10857)
pashandor789 Oct 25, 2024
57fae4a
Viewer updates stable 24-3 v3 (#10745)
adameat Oct 26, 2024
b06bffd
[stable-24-3] Shared Cache S3FIFO (#10911)
kungasc Oct 28, 2024
e3edf46
Init counter for pqv0 read session (24-3) (#11001)
qyryq Oct 28, 2024
ccf6536
bugfix for incorrect event scheduling when EnableStatistics is disabl…
alexd65536 Oct 29, 2024
8ae4726
add viewer healthcheck path (#11019) - merge stable-24-3 (#11045)
StekPerepolnen Oct 29, 2024
c85b979
24-3: Fix excessive read latency during and after shard splits (#11061)
snaury Oct 30, 2024
e936c2b
24-3: Replication counters (#11081)
CyberROFL Oct 30, 2024
ea7e9b6
Views: if exists / if not exists for DDL (#10831) (#11093)
jepett0 Oct 30, 2024
bd34cc7
[KIKIMR-22131] Hot-fix for production: Y_ENSURE → Y_ASSERT (#11130)
abyss7 Oct 31, 2024
b2ea93c
[24-3] Fix double PassAway call in Healthcheck actor (#11104)
UgnineSirdis Oct 31, 2024
e47d635
[24-3] Fix topic read crash (#11137)
UgnineSirdis Oct 31, 2024
cc3d9d3
Fixed parsing decimals from string (#11017) (#11188)
spuchin Nov 1, 2024
66baaeb
Fix VDisk replication token handling, add some extra checks and log p…
alexvru Nov 5, 2024
23208c8
Fix issue #9461 with altering CDC streams (#11077) (#11184)
FloatingCrowbar Nov 5, 2024
05747b7
introduce snapshot_ro isolation level (#11085) (#11252)
ssmike Nov 5, 2024
7dd309e
Add feature flag to enable drive serial numbers discovery (merge from…
alexvru Nov 5, 2024
b328a5f
observability for tablet starts (#6584) (#11266)
vporyadke Nov 5, 2024
6d047a4
always delete nodes persistently in hive (#11272)
vporyadke Nov 5, 2024
00669fd
fix waiting followers in dev ui (#10257) (#11267)
vporyadke Nov 5, 2024
b22b231
Integrate HTAP changes to stable-24-3 (#10899)
fexolm Nov 6, 2024
731f584
Drop the suffix after the first left parenthesis from UserAgent (stab…
qyryq Nov 6, 2024
4d45fe1
ensure reads are sequential (#11280) (#11317)
ssmike Nov 6, 2024
46fa15c
[24-3] Fix shard ranges sort (#11257) (#11376)
nikvas0 Nov 8, 2024
e3d6f61
Disable autopartitioning of topics for CDC (#11448)
nshestakov Nov 11, 2024
fcf6826
Stable-24-3: Reset pipeline in datashard init (#11488)
azevaykin Nov 12, 2024
64f4d39
Fix failed unit tests after enabling the EnableColumnStatistics featu…
andrewstalin Nov 12, 2024
afbd118
[stable-24-3] Use node info from labels in configs dispatcher instead…
Enjection Nov 12, 2024
dea009b
24-3: Break persistent locks on scheme tx (#11525)
CyberROFL Nov 12, 2024
271c9f9
[stable-24-3] Request DataShard compaction if scheme has been changed…
kungasc Nov 13, 2024
063dc25
24-3: auditlog: fix logging for unsuccessful ldap logins (#11492)
ijon Nov 13, 2024
56a2e8d
24-3: Fix test (#11544)
CyberROFL Nov 13, 2024
223677f
Remote address in audit log (#9460)
UgnineSirdis Oct 7, 2024
c3e7a86
Support pure json output for audit log (#10143)
UgnineSirdis Oct 23, 2024
42100bd
Sanitized token field for audit log (#9287)
UgnineSirdis Nov 11, 2024
f0c6f43
Fix: remove kqp config settings from audit/metering lib's resources (…
UgnineSirdis Nov 11, 2024
949f821
Audit log json envelope (#11466)
UgnineSirdis Nov 13, 2024
cb324c9
Viewer updates stable 24 3 v4 (#11593)
adameat Nov 15, 2024
c7e36ae
Fix #11186 (#11631)
Nov 15, 2024
0d9831e
Fix sqs json api folder service token to 24 3 (#11640)
niksaveliev Nov 15, 2024
ee21311
Use GraceJoinCore instead of MapJoinCore (#11537)
Hor911 Nov 15, 2024
0a5089e
[24-3] Fix reads from many shards #11569 (#11658)
nikvas0 Nov 18, 2024
31b8d00
SQS: Handle empty QueueUrl correctly (stable-24-3) (#11635)
qyryq Nov 18, 2024
db5d438
Dockerfile oss (cherry-pick to stable 24-3) (#11633)
kobzonega Nov 18, 2024
bbe9214
Fix UA meta session properties for log_config (cherry-pick to stable …
kobzonega Nov 18, 2024
e1e245b
[stable-24-3] Add release into night build (#11785)
maximyurchuk Nov 20, 2024
3f50d43
SQS: Fix TimeoutCookie_ leak (stable-24-3) (#11770)
qyryq Nov 20, 2024
69317a4
Merge double accelerations into 24-3 (#11740)
serbel324 Nov 20, 2024
7a0c40e
[KQP] Added join algo hint without CBO (#10740) (#11666)
pashandor789 Nov 20, 2024
7bf1812
[stable-24-3] Fix release configuration support in nightly build (#11…
maximyurchuk Nov 20, 2024
88bdd6d
Set default MaxNumOfSlowDisks for HDD to 1 (#11807)
serbel324 Nov 20, 2024
45d8eb2
Merge pull request #11571 from UgnineSirdis/merge-audit-log-commits-24-3
UgnineSirdis Nov 21, 2024
0ab8d25
do not use basic statistics if it is not fully gathered in schemeshar…
alexd65536 Nov 22, 2024
9d525db
Add missing spilling commits (#11889)
lll-phill-lll Nov 22, 2024
8684c8f
Improved Q9 by moving BuildFlatmapStage to a later stage and adding a…
pashandor789 Nov 23, 2024
ac5d203
[Stable-24-3] Remove old restriction: keys with Uint8 column values >…
azevaykin Nov 25, 2024
d309087
Fix overflow case in stream index lookup join (#11818) (#11822)
gridnevvvit Nov 25, 2024
5204a36
[stable-24-3] fix test timeouts (#11958)
alexd65536 Nov 25, 2024
ed811cc
24-3: Add fallback to ssl port on ydb driver init (#12004)
Enjection Nov 26, 2024
8390fc8
24-3: Fix bulk operations breaking frozen locks (#12018)
snaury Nov 27, 2024
e3c90fd
ticket parser: Add priority to access service requests (#11775)
molotkov-and Nov 27, 2024
b9bd17d
Store flag AuthorizeByCertificate to local db of node broker (#11315)…
molotkov-and Nov 27, 2024
dc30efa
Fixed base statistics for global indexes (#11942) (#12037)
andrewstalin Nov 27, 2024
6861fcc
Optimize HtmlApp for PQ tablet (#12056)
nshestakov Nov 28, 2024
5591125
Сlean trash on versions switching (#9679) (#11868)
fexolm Nov 29, 2024
466cfa4
24-3: Allow to describe index table through ydb cli (#12116)
CyberROFL Nov 29, 2024
83cc4da
Support read from timestamp for topics autopartitioning (#12125)
nshestakov Nov 29, 2024
c3d51bf
fix stream lookup bytes calculation (#12026) (#12101)
gridnevvvit Nov 29, 2024
985ff54
24-3: Make it possible to change in-memory setting for tables (#12139)
snaury Dec 2, 2024
9ea17dd
avoid changing shardstate reads list during iteration (#12150) (#12170)
gridnevvvit Dec 2, 2024
c7287ed
Index chooser bug merge stable 24 3 (#12169)
gridnevvvit Dec 2, 2024
d08116a
switch default channels mode to scalar in 24-3 (#12142)
gridnevvvit Dec 2, 2024
16451ba
fix broken ut (#12224)
gridnevvvit Dec 2, 2024
d91df89
Optimize CPU usage when read blob (#12153) (#12221)
nshestakov Dec 4, 2024
b2203a9
Fixed CBO Level 1 and Level 2 (#12321)
pavelvelikhov Dec 5, 2024
e6410e1
[stable-24-3] remove clang14 (#12338)
maximyurchuk Dec 5, 2024
21bf5e0
Dont consider prefix indices (#12315) (#12345)
ssmike Dec 6, 2024
c6c7c55
Merge stream lookup changes (#12292)
gridnevvvit Dec 6, 2024
17cc4d6
[24-3] Fix CompareRanges & acl for sink (#12275)
nikvas0 Dec 6, 2024
254d1a5
fix exception processing (#11728) (#12355)
gridnevvvit Dec 6, 2024
569841c
Revert "Added a flag to disable SimplifiedPlan generation that caused…
dcherednik Dec 9, 2024
986e97a
Revert "Stream 24 3 add logs to dsproxy (#11269)"
dcherednik Dec 10, 2024
a632243
Merge tag '24.3.14' into stream-nb-24-3-merge-24.3.14
dcherednik Dec 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/s3cmd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ runs:
debug)
folder+="-debug"
;;
release-*)
release*)
folder+="-${BUILD_PRESET/release-/}"
;;
*)
Expand Down
5 changes: 4 additions & 1 deletion .github/actions/test_ya/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ runs:
debug)
TESTMO_SOURCE="ya-${ARCH}-debug"
;;
release-*)
release*)
TESTMO_SOURCE="ya-${ARCH}-${BUILD_PRESET/release-/}"
;;
*)
Expand Down Expand Up @@ -180,6 +180,9 @@ runs:
relwithdebinfo)
params+=(--build "relwithdebinfo")
;;
release)
params+=(--build "release")
;;
release-asan)
params+=(
--build "release" --sanitize="address"
Expand Down
4 changes: 3 additions & 1 deletion .github/config/muted_ya.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ydb/core/external_sources *
ydb/core/quoter/ut QuoterWithKesusTest.PrefetchCoefficient
ydb/core/keyvalue/ut_trace TKeyValueTracingTest.*
ydb/core/kqp/provider/ut KikimrIcGateway.TestLoadBasicSecretValueFromExternalDataSourceMetadata
ydb/core/kqp/ut/join KqpJoinOrder.Chain65Nodes
ydb/core/kqp/ut/olap KqpOlapBlobsSharing.*
ydb/core/kqp/ut/olap KqpOlapStatistics.StatsUsageWithTTL
ydb/core/kqp/ut/pg KqpPg.CreateIndex
Expand All @@ -17,6 +18,7 @@ ydb/core/kqp/ut/tx KqpSnapshotRead.ReadOnlyTxWithIndexCommitsOnConcurrentWrite+w
ydb/core/kqp/ut/tx KqpSinkTx.InvalidateOnError
ydb/core/kqp/ut/query KqpLimits.QueryReplySize
ydb/core/kqp/ut/query KqpQuery.QueryTimeout
ydb/core/kqp/ut/service KqpQueryService.TableSink_OltpReplace+HasSecondaryIndex
ydb/core/kqp/ut/scan KqpRequestContext.TraceIdInErrorMessage
ydb/core/kqp/ut/scheme KqpOlapScheme.TenThousandColumns
ydb/core/kqp/ut/scheme KqpScheme.AlterAsyncReplication
Expand All @@ -26,9 +28,9 @@ ydb/core/kqp/ut/scheme [15/50]*
ydb/core/kqp/ut/scheme [44/50]*
ydb/core/kqp/ut/service KqpQueryService.ExecuteQueryPgTableSelect
ydb/core/kqp/ut/service KqpQueryService.QueryOnClosedSession
ydb/core/kqp/ut/service KqpQueryService.TableSink_OltpUpdate
ydb/core/kqp/ut/service KqpService.CloseSessionsWithLoad
ydb/core/kqp/ut/service [38/50]*
ydb/core/kqp/ut/service KqpQueryService.TableSink_OltpUpdate
ydb/core/kqp/ut/service KqpQueryService.TableSink_OltpReplace+HasSecondaryIndex
ydb/core/persqueue/ut [37/40] chunk chunk
ydb/core/persqueue/ut [38/40] chunk chunk
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build_preset: ["relwithdebinfo", "release-asan"]
build_preset: ["release", "relwithdebinfo", "release-asan"]
runs-on: [ self-hosted, auto-provisioned, "${{ format('build-preset-{0}', matrix.build_preset) }}" ]
name: Build and test ${{ matrix.build_preset }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build_preset: ["relwithdebinfo", "release-asan", "release-clang14"]
build_preset: ["relwithdebinfo", "release-asan"]
runs-on: [ self-hosted, auto-provisioned, "${{ format('build-preset-{0}', matrix.build_preset) }}" ]
name: Build and test ${{ matrix.build_preset }}
steps:
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
https://api.github.com/repos/${{github.repository}}/commits/${{github.event.pull_request.head.sha}}/status | \
jq -cr '.statuses | .[] | select(.state=="success") | select(.context | startswith("build_")) | .context' | \
wc -l )
if [[ $successbuilds == "3" ]];then
if [[ $successbuilds == "2" ]];then
integrated_status="success"
else
integrated_status="failure"
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
!*/
# Unignore all files inside canondata dir
!**/canondata/**
# Allow docker files
!Dockerfile

/canonization_show_res.log

Expand All @@ -26,6 +28,9 @@ __pycache__/
*.pb.h
*.pb.cc

# Other generated
*.fbs.h

# MacOS specific
.DS_Store

Expand All @@ -40,6 +45,7 @@ __pycache__/
.idea/
.vscode/
.clangd
.antlr/

# KDevelop IDE
*.kdev4
Expand Down Expand Up @@ -79,3 +85,6 @@ list_result.log
bin/config.json

.vs/

# handy for local junk, which is not intended to appear in the repo
junk/
22 changes: 22 additions & 0 deletions library/cpp/threading/future/core/future-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ namespace NThreading {
bool HasException() const {
return AtomicGet(State) == ExceptionSet;
}
bool IsReady() const {
return AtomicGet(State) != NotReady;
}

const T& GetValue(TDuration timeout = TDuration::Zero()) const {
AccessValue(timeout, ValueRead);
Expand Down Expand Up @@ -297,6 +300,9 @@ namespace NThreading {
bool HasException() const {
return AtomicGet(State) == ExceptionSet;
}
bool IsReady() const {
return AtomicGet(State) != NotReady;
}

void GetValue(TDuration timeout = TDuration::Zero()) const {
TAtomicBase state = AtomicGet(State);
Expand Down Expand Up @@ -583,6 +589,10 @@ namespace NThreading {
inline bool TFuture<T>::HasException() const {
return State && State->HasException();
}
template <typename T>
inline bool TFuture<T>::IsReady() const {
return State && State->IsReady();
}

template <typename T>
inline void TFuture<T>::Wait() const {
Expand Down Expand Up @@ -688,6 +698,9 @@ namespace NThreading {
inline bool TFuture<void>::HasException() const {
return State && State->HasException();
}
inline bool TFuture<void>::IsReady() const {
return State && State->IsReady();
}

inline void TFuture<void>::Wait() const {
EnsureInitialized();
Expand Down Expand Up @@ -823,6 +836,11 @@ namespace NThreading {
return State && State->HasException();
}

template <typename T>
inline bool TPromise<T>::IsReady() const {
return State && State->IsReady();
}

template <typename T>
inline void TPromise<T>::SetException(const TString& e) {
EnsureInitialized();
Expand Down Expand Up @@ -904,6 +922,10 @@ namespace NThreading {
return State && State->HasException();
}

inline bool TPromise<void>::IsReady() const {
return State && State->IsReady();
}

inline void TPromise<void>::SetException(const TString& e) {
EnsureInitialized();
State->SetException(std::make_exception_ptr(yexception() << e));
Expand Down
22 changes: 22 additions & 0 deletions library/cpp/threading/future/core/future.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ namespace NThreading {
void TryRethrow() const;
bool HasException() const;

// returns true if exception or value was set.
// allows to check readiness without locking cheker-thread
// NOTE: returns true even if value was extracted from promise
// good replace for HasValue() || HasException()
bool IsReady() const;

void Wait() const;
bool Wait(TDuration timeout) const;
bool Wait(TInstant deadline) const;
Expand Down Expand Up @@ -153,6 +159,11 @@ namespace NThreading {
void TryRethrow() const;
bool HasException() const;

// returns true if exception or value was set.
// allows to check readiness without locking cheker-thread
// good replace for HasValue() || HasException()
bool IsReady() const;

void Wait() const;
bool Wait(TDuration timeout) const;
bool Wait(TInstant deadline) const;
Expand Down Expand Up @@ -216,6 +227,12 @@ namespace NThreading {

void TryRethrow() const;
bool HasException() const;

// returns true if exception or value was set.
// allows to check readiness without locking cheker-thread
// NOTE: returns true even if value was extracted from promise
// good replace for HasValue() || HasException()
bool IsReady() const;
void SetException(const TString& e);
void SetException(std::exception_ptr e);
bool TrySetException(std::exception_ptr e);
Expand Down Expand Up @@ -256,6 +273,11 @@ namespace NThreading {

void TryRethrow() const;
bool HasException() const;

// returns true if exception or value was set.
// allows to check readiness without locking cheker-thread
// good replace for HasValue() || HasException()
bool IsReady() const;
void SetException(const TString& e);
void SetException(std::exception_ptr e);
bool TrySetException(std::exception_ptr e);
Expand Down
4 changes: 4 additions & 0 deletions library/cpp/threading/future/future_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ namespace {

future = MakeFuture(345);
UNIT_ASSERT(future.HasValue());
UNIT_ASSERT(future.IsReady());
UNIT_ASSERT_EQUAL(future.GetValue(), 345);
}

Expand All @@ -115,6 +116,7 @@ namespace {

TFuture<void> future = promise.GetFuture();
UNIT_ASSERT(future.HasValue());
UNIT_ASSERT(future.IsReady());

future = MakeFuture();
UNIT_ASSERT(future.HasValue());
Expand Down Expand Up @@ -523,6 +525,7 @@ namespace {
{
auto future1 = MakeErrorFuture<void>(std::make_exception_ptr(TFutureException()));
UNIT_ASSERT(future1.HasException());
UNIT_ASSERT(future1.IsReady());
UNIT_CHECK_GENERATED_EXCEPTION(future1.GetValue(), TFutureException);

auto future2 = MakeErrorFuture<int>(std::make_exception_ptr(TFutureException()));
Expand Down Expand Up @@ -563,6 +566,7 @@ namespace {
promise2.SetException("foo-exception");
wait.Wait();
UNIT_ASSERT(future2.HasException());
UNIT_ASSERT(!future1.IsReady());
UNIT_ASSERT(!future1.HasValue() && !future1.HasException());
}

Expand Down
26 changes: 25 additions & 1 deletion ydb/core/audit/audit_log_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void WriteLog(const TString& log, const TVector<THolder<TLogBackend>>& logBacken
log.length()
));
} catch (const yexception& e) {
LOG_W("WriteLog: unable to write audit log (error: " << e.what() << ")");
LOG_E("WriteLog: unable to write audit log (error: " << e.what() << ")");
}
}
}
Expand All @@ -91,6 +91,27 @@ TString GetJsonLog(const TEvAuditLog::TEvWriteAuditLog::TPtr& ev) {
return ss.Str();
}

TString GetJsonLogCompatibleLog(const TEvAuditLog::TEvWriteAuditLog::TPtr& ev) {
const auto* msg = ev->Get();
TStringStream ss;
NJsonWriter::TBuf json(NJsonWriter::HEM_DONT_ESCAPE_HTML, &ss);
{
auto obj = json.BeginObject();
obj
.WriteKey("@timestamp")
.WriteString(msg->Time.ToString().data())
.WriteKey("@log_type")
.WriteString("audit");

for (auto& [k, v] : msg->Parts) {
obj.WriteKey(k).WriteString(v);
}
json.EndObject();
}
ss << Endl;
return ss.Str();
}

TString GetTxtLog(const TEvAuditLog::TEvWriteAuditLog::TPtr& ev) {
const auto* msg = ev->Get();
TStringStream ss;
Expand Down Expand Up @@ -146,6 +167,9 @@ class TAuditLogActor final : public TActor<TAuditLogActor> {
case NKikimrConfig::TAuditConfig::TXT:
WriteLog(GetTxtLog(ev), logBackends.second);
break;
case NKikimrConfig::TAuditConfig::JSON_LOG_COMPATIBLE:
WriteLog(GetJsonLogCompatibleLog(ev), logBackends.second);
break;
default:
WriteLog(GetJsonLog(ev), logBackends.second);
break;
Expand Down
4 changes: 0 additions & 4 deletions ydb/core/audit/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,4 @@ PEERDIR(
ydb/core/base
)

RESOURCE(
ydb/core/kqp/kqp_default_settings.txt kqp_default_settings.txt
)

END()
5 changes: 5 additions & 0 deletions ydb/core/base/blobstorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ struct TEvBlobStorage {
EvInplacePatch,
EvAssimilate,

EvGetQueuesInfo, // for debugging purposes

//
EvPutResult = EvPut + 512, /// 268 632 576
EvGetResult,
Expand All @@ -502,6 +504,8 @@ struct TEvBlobStorage {
EvInplacePatchResult,
EvAssimilateResult,

EvQueuesInfo, // for debugging purposes

// proxy <-> vdisk interface
EvVPut = EvPut + 2 * 512, /// 268 633 088
EvVGet,
Expand Down Expand Up @@ -871,6 +875,7 @@ struct TEvBlobStorage {
EvRunActor = EvPut + 15 * 512,
EvVMockCtlRequest,
EvVMockCtlResponse,
EvDelayedMessageWrapper,

// incremental huge blob keeper
EvIncrHugeInit = EvPut + 17 * 512,
Expand Down
12 changes: 11 additions & 1 deletion ydb/core/base/ticket_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,24 @@ namespace NKikimr {

struct TError {
TString Message;
TString LogMessage;
bool Retryable = true;

bool empty() const {
return Message.empty();
return Message.empty() && LogMessage.empty();
}

bool HasMessage() const {
return !Message.empty();
}

bool HasLogMessage() const {
return !LogMessage.empty();
}

void clear() {
Message.clear();
LogMessage.clear();
Retryable = true;
}

Expand Down
Loading
Loading