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

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

XMLWordPrintable

    • False
    • None
    • False

      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.

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

              Created:
              Updated:
              Resolved: