We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22703cd commit b11e50aCopy full SHA for b11e50a
src/client/table/table.cpp
@@ -1365,13 +1365,15 @@ TScanQueryPartIterator::TScanQueryPartIterator(
1365
{}
1366
1367
TAsyncScanQueryPart TScanQueryPartIterator::ReadNext() {
1368
- if (ReaderImpl_->IsFinished())
+ if (!ReaderImpl_ || ReaderImpl_->IsFinished()) {
1369
+ if (!IsSuccess())
1370
+ RaiseError(TStringBuilder() << "Attempt to perform read on an unsuccessful result "
1371
+ << GetIssues().ToString());
1372
RaiseError("Attempt to perform read on invalid or finished stream");
1373
+ }
1374
return ReaderImpl_->ReadNext(ReaderImpl_);
1375
}
1376
-
1377
static bool IsSessionStatusRetriable(const TCreateSessionResult& res) {
1378
switch (res.GetStatus()) {
1379
case EStatus::OVERLOADED:
0 commit comments