Coder Social home page Coder Social logo

craft-atom's People

Contributors

mindwind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

craft-atom's Issues

Redis master slave switch may throw exception

Some cases may throw RedisDataException

try {
       s.slaveof(m.host(), m.port());
     } catch (RedisConnectionException e) {
    LOG.warn("[CRAFT-ATOM-REDIS] {} slaveof {} failed", s.toString(), m.toString());
}

craft-atom-rpc

sorry,I doesn't install lombok plugin so some method seems doesn't exist.

@craft-atom-redis jedis instance leak under JedisDataException occur

As follows, the key code block

    Jedis j = jedis();
    try {
        // invoke jedis api to execute redis command
    } catch (Exception e) {
        RedisException re = handleException(e, j, args);
        j = null;
        throw re;
    } finally {
       release(j);
    }
    RedisException handleException(Exception e, Jedis j, Object... args) {
        unbind();

        if (e instanceof JedisConnectionException) {
            if (j != null) {
                pool.returnBrokenResource(j);
            }
            return new RedisConnectionException(String.format("Connect to redis server<host=%s, port=%s> failed.", host, port), e);
        }

        if (e instanceof JedisDataException) {
            return new RedisDataException(String.format("Redis data <args=%s> process failed.", Arrays.toString(args)), e);
        }

        return new RedisException(e);
    }
    private void release(Jedis j) {
        if (isBound()) {
            // in transaction context don't return jedis connection to pool.
            return;
        } else {
            if (j != null) {
                pool.returnResource(j);
            }
        }
    }

When a JedisDataException occur, jump into catch block.
In the handleException() method, we don't return jedis instance back to pool, just throw a RedisDataException, in catch block set j = null, but in the release() method, when j is null skip the returnResource(j), so jedis instance is leaky.

Upgrade latest jedis version 2.6.1 to support latest redis 2.8.18 new features and commands

From redis 2.8.5 to 2.8.18 we miss theses new features and commands

NEW     - CLIENT PAUSE
NEW     - ZLEXCOUNT
NEW     - ZRANGEBYLEX
NEW     - ZREMRANGEBYLEX
NEW     - ROLE command added
NEW     - BITPOS
NEW     - DEBUG ERROR
NEW     - CLIENT KILL new form to kill by client type and ID
NEW     - CLIENT LIST new unique incremental ID to every client.
NEW     - The COMMAND command, exposing the Redis command table as an API.
NEW     - The new latency monitoring feature, as documented at http://redis.io/topics/latency-monitor
NEW     - Pub/Sub PING
NEW     - DEBUG POPULATE
NEW     - Total and instantaneous Network bandwidth tracking in INFO.

关于放在eclipse中,目录很深的问题

你好大神,很激动能看到你写的这么短小精悍的Java轮子,刚刚导入到了我的eclipse中,准备研读研读,然后就发现一个小问题,如图:

image

有可能是我使用工具不熟,但是我想往常一样调了一下package presentation,发现还是不行[汗]。。。
Google了一下发现不对,所以过来请教一下是啥原因,烦请大神告知,感激不尽。。。

email:[email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.