Debug fuzzer failures (#61062)

This commit is contained in:
Nikita Mikhaylov 2024-03-08 21:27:56 +01:00 committed by GitHub
parent afc1bc6766
commit 6b4867f746
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 20 additions and 4 deletions

View File

@ -343,10 +343,9 @@ quit
# which is confusing.
task_exit_code=$fuzzer_exit_code
echo "failure" > status.txt
{ rg -ao "Found error:.*" fuzzer.log \
|| rg -ao "Exception:.*" fuzzer.log \
|| echo "Fuzzer failed ($fuzzer_exit_code). See the logs." ; } \
| tail -1 > description.txt
echo "Achtung!" > description.txt
echo "Fuzzer went wrong with error code: ($fuzzer_exit_code). Its process died somehow when the server stayed alive. The server log probably won't tell you much so try to find information in other files." >>description.txt
{ rg -ao "Found error:.*" fuzzer.log || rg -ao "Exception:.*" fuzzer.log; } | tail -1 >>description.txt
fi
if test -f core.*; then

View File

@ -634,6 +634,7 @@ void ASTAlterQuery::formatQueryImpl(const FormatSettings & settings, FormatState
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}
else if (alter_object == AlterObjectType::DATABASE && database)

View File

@ -53,6 +53,7 @@ protected:
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}

View File

@ -52,6 +52,7 @@ void ASTCreateIndexQuery::formatQueryImpl(const FormatSettings & settings, Forma
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}

View File

@ -337,6 +337,7 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
if (uuid != UUIDHelpers::Nil)
@ -370,6 +371,7 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
if (uuid != UUIDHelpers::Nil)

View File

@ -40,6 +40,7 @@ void ASTDeleteQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
formatOnCluster(settings);

View File

@ -47,6 +47,7 @@ void ASTDropIndexQuery::formatQueryImpl(const FormatSettings & settings, FormatS
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}

View File

@ -76,6 +76,7 @@ void ASTDropQuery::formatQueryImpl(const FormatSettings & settings, FormatState
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}

View File

@ -74,6 +74,7 @@ void ASTInsertQuery::formatImpl(const FormatSettings & settings, FormatState & s
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}

View File

@ -15,6 +15,7 @@ void ASTOptimizeQuery::formatQueryImpl(const FormatSettings & settings, FormatSt
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
formatOnCluster(settings);

View File

@ -1,5 +1,6 @@
#pragma once
#include <base/defines.h>
#include <Parsers/IAST.h>
#include <Parsers/ASTQueryWithOutput.h>
#include <Core/UUID.h>
@ -61,6 +62,7 @@ protected:
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}
};

View File

@ -127,6 +127,7 @@ protected:
settings.ostr << '.';
}
chassert(it->from.table);
it->from.table->formatImpl(settings, state, frame);
settings.ostr << (settings.hilite ? hilite_keyword : "") << (exchange ? " AND " : " TO ") << (settings.hilite ? hilite_none : "");
@ -137,6 +138,7 @@ protected:
settings.ostr << '.';
}
chassert(it->to.table);
it->to.table->formatImpl(settings, state, frame);
}

View File

@ -114,6 +114,7 @@ void ASTSystemQuery::formatImpl(const FormatSettings & settings, FormatState & s
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
return settings.ostr;
};

View File

@ -36,6 +36,7 @@ void ASTUndropQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
}

View File

@ -52,6 +52,7 @@ protected:
settings.ostr << '.';
}
chassert(table);
table->formatImpl(settings, state, frame);
if (is_watch_events)