The pseudocode for my business logic is as follows. I encountered an issue where I couldn’t join the ongoing transaction. This problem specifically occurs in MSSQL and only affects Jira Server version 9.9.0. It was functioning properly in versions 9.8.x and earlier.
databaseAcesss.runInNewTransaction(databaseConnection->{
.......
.......
.......
label = insetLable(databaseConnection,...)
addLabelToCache(label)
.......
.......
.......
return null;
});
void addLabelToCache(label){
boolean isEmpty = cache.hasKey("lable");
if(isEmpty){
List<Label> labelList = databaseAcesss.run(databaseConnection->{
// return [query to get the labels]
}
}
cache.addToCache(lable)
}
The program is stuck while getting the label list in the pseudocode provided above.