traceId丟失的乙個case

2021-10-13 12:33:55 字數 447 閱讀 5335

/**

執行緒池的拒絕策略是在當前執行緒繼續執行

剛開始traceid = 123

提交任務, 等待任務結束, 當前執行緒的traceid也沒了

原因就是他是在當前執行緒執行, 而包裝策略是run方法執行完清掉變數, 所以當前執行緒的變數就沒有了

*/// 建立任務, 包裝任務

runnable task =

newrunnable()

finally}}

// 提交執行

executor.

submit

(task)

;// join

task.

join()

;mdc.

get(

"traceid"

)== null

join後再獲取執行緒變數發現沒了,

尋找第乙個丟失的正數

given an unsorted integer array,find the first missing positive integer.for example,given 1,2,0 return3,and 3,4,1,1 return2.your algorithm should run ...

找到第乙個丟失的正數

given an unsorted integer array,find the first missing positive integer.for example,given 1,2,0 return3,and 3,4,1,1 return2.此題關鍵在於理解first missing posi...

丟失乙個資料檔案

1.先進行備份 2.進入資料庫,改為歸檔模式 oracle oracle oracle sqlplus as sysdba sql startup mount sql alter database archivelog 資料庫已更改。進入rman檢視下備份 檢視下備份 3.進入目錄下刪除dbf or...