Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,23 @@ suite("test_query_sys_rowsets", "query,p0") {
);
"""

List<List<Object>> rowsets_table_name_tablets = sql """ show tablets from ${rowsets_table_name} """
order_qt_rowsets1 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} group by START_VERSION,END_VERSION order by START_VERSION,END_VERSION; """
List<List<Object>> rowsets_table_name_tablets = sql """ show tablets from ${rowsets_table_name} """
def tabletId = rowsets_table_name_tablets[0][0]
logger.info("Tablet metadata after creation: ${rowsets_table_name_tablets}")
// information_schema.rowsets is a distributed BE snapshot. Retry the observation
// of the synchronously created initial rowset before validating the full result.
awaitUntil(30) {
def visibleRowsets = sql """
select BACKEND_ID, ROWSET_ID, START_VERSION, END_VERSION,
CREATION_TIME, NEWEST_WRITE_TIMESTAMP
from information_schema.rowsets
where TABLET_ID = ${tabletId}
"""
logger.info("Visible rowsets for tablet ${tabletId}: ${visibleRowsets}")
return visibleRowsets != null
&& visibleRowsets.any { rowset -> rowset[2] == 0 && rowset[3] == 1 }
}
order_qt_rowsets1 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${tabletId} group by START_VERSION,END_VERSION order by START_VERSION,END_VERSION; """
sql """ insert into ${rowsets_table_name} values (1,0,"abc"); """
order_qt_rowsets2 """ select START_VERSION,END_VERSION from information_schema.rowsets where TABLET_ID=${rowsets_table_name_tablets[0][0]} group by START_VERSION,END_VERSION order by START_VERSION,END_VERSION; """
sql """ insert into ${rowsets_table_name} values (2,1,"hello world"); """
Expand Down
Loading