Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5019

Redis Sink - Check if client is not null before closing it

    XMLWordPrintable

Details

    • False
    • None
    • False

    Description

      From line 92:

       @PreDestroy
          void close() {
              try {
                  client.close();
              }
              catch (Exception e) {
                  LOGGER.warn("Exception while closing Jedis: {}", client, e);
              }
              finally {
                  client = null;
              }
          }
      

      If statement should be added before trying to close the client to avoid a redundant warning.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yossish Yossi Shirizli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: