Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5382

Geode TransactionManagerImpl.commit() does not throw Exception when notifyAfterCompletion failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • transactions
    • None

    Description

      Currently, commit() method only logs the exception.

          try {
            ((TransactionImpl) transactionImpl).notifyAfterCompletion(status = gtx.getStatus());
          } catch (Exception ge) {
            LogWriterI18n writer = TransactionUtils.getLogWriterI18n();
            if (writer.infoEnabled())
              writer.info(
                  LocalizedStrings.TransactionManagerImpl_EXCEPTION_IN_NOTIFY_AFTER_COMPLETION_DUE_TO__0,
                  ge.getMessage(), ge);
          }
      

      It should throw exception to user application so that application can decide whether retry. Currently, data inconsistency could occur but applicate does not even notice about it.

      Attachments

        Activity

          People

            eshu Eric Shu
            eshu Eric Shu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: