xianlongbai commented on issue #1927: HeuristicMessage NoClassDefFoundError
URL: 
https://github.com/apache/incubator-shardingsphere/issues/1927#issuecomment-602041782
 
 
    @Transactional
       public void testTrans() {
           TransactionTypeHolder.set(TransactionType.XA);
           for (int i = 0; i < 100; i++) {
               Order order = new Order();
               order.setOrderId((long)i+1);
               int number = new Random().nextInt(500) + 1;
               order.setUserId((long) number);
               if(i==50){
                   throw new RuntimeException(" 模拟抛出一个异常!!!");
               }
               orderDao.saveToOne(order);
           }
       }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to