Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15688

IgniteClient.close shouldn't throw Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.12
    • thin client
    • None
    • Release Notes Required

    Description

      IgniteClient interface currently doesn't override close() from AutoClosable. Because of that, it inherits `close() throws Exception` forcing all users to catch Exception when using IgniteClient.

       

      In fact, this shouldn't be required. `TcpIgniteClient implements IgniteClient` currently throws Exception but it doesn't need to - its code doesn't throw any checked exceptions.

       

      Proposal:

      1. Add `@Overrides public void close()` with no `throws` to IgniteClient.
      2. Remove `throws Exception` from `TcpIgniteClient::close`

      Note: this change is fully backwards-compatible. It is legal to narrow the scope of `throws` in a new version of a method.

      Attachments

        Issue Links

          Activity

            People

              slukyanov Stanislav Lukyanov
              slukyanov Stanislav Lukyanov
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m