Skip to content

Commit

Permalink
r
Browse files Browse the repository at this point in the history
  • Loading branch information
mymeiyi committed Nov 30, 2024
1 parent d4c71b2 commit bfade56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,9 @@ private void finishCalcDeleteBitmap(AgentTask task, TFinishTaskRequest request)
CalcDeleteBitmapTask calcDeleteBitmapTask = (CalcDeleteBitmapTask) task;
if (request.getTaskStatus().getStatusCode() != TStatusCode.OK) {
calcDeleteBitmapTask.countDownToZero(request.getTaskStatus().getStatusCode(),
"backend: " + task.getBackendId() + ", error_tablet_size: "
+ request.getErrorTabletIdsSize() + ", err_msg: "
+ request.getTaskStatus().getErrorMsgs().toString());
"backend: " + task.getBackendId() + ", error_tablet_size: " + request.getErrorTabletIdsSize()
+ ", error_tablets: " + request.getErrorTabletIds()
+ ", err_msg: " + request.getTaskStatus().getErrorMsgs().toString());
} else if (request.isSetRespPartitions()
&& calcDeleteBitmapTask.isFinishRequestStale(request.getRespPartitions())) {
LOG.warn("get staled response from backend: {}, report version: {}. calcDeleteBitmapTask's"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !select1 --
10 20 35 40
10 20 30 40

-- !select2 --
10 20 40 35
10 20 37 40
11 20 37 40

Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ import org.codehaus.groovy.runtime.IOGroovyMethods

suite("test_schema_change_and_compaction", "nonConcurrent") {
def tableName = "test_schema_change_and_compaction"

def getAlterTableState = { job_state ->
def retry = 0
def last_state = ""
while (true) {
sleep(2000)
def state = sql " show alter table column where tablename = '${tableName}' order by CreateTime desc limit 1"
logger.info("alter table state: ${state}")
last_state = state[0][9]
if (state.size() > 0 && state[0][9] == job_state) {
return
}
Expand Down Expand Up @@ -95,7 +98,9 @@ suite("test_schema_change_and_compaction", "nonConcurrent") {
sql """ insert into ${tableName} values(10, 20, 33, 40); """
sql """ insert into ${tableName} values(10, 20, 34, 40); """
sql """ insert into ${tableName} values(10, 20, 35, 40); """
order_qt_select1 """ select * from ${tableName}; """
// in local mode, the txn is committed, not visible, retry publish until the schema change is finished: 10, 20, 30, 40
// in cloud mode, the
// order_qt_select1 """ select * from ${tableName}; """

// trigger compaction
def backendId_to_backendIP = [:]
Expand Down Expand Up @@ -135,6 +140,8 @@ suite("test_schema_change_and_compaction", "nonConcurrent") {

// unblock
unblock()
sql """ insert into ${tableName} values(10, 20, 36, 40), (11, 20, 36, 40); """
sql """ insert into ${tableName} values(10, 20, 37, 40), (11, 20, 37, 40); """
getAlterTableState("FINISHED")
order_qt_select2 """ select * from ${tableName}; """
}

0 comments on commit bfade56

Please sign in to comment.