cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-12998) Remove a silly hint.isLive() check in HintsService.write()
Date Mon, 05 Dec 2016 17:01:00 GMT
Aleksey Yeschenko created CASSANDRA-12998:

             Summary: Remove a silly hint.isLive() check in HintsService.write()
                 Key: CASSANDRA-12998
             Project: Cassandra
          Issue Type: Bug
          Components: Local Write-Read Paths
            Reporter: Aleksey Yeschenko
            Assignee: Aleksey Yeschenko
            Priority: Trivial
             Fix For: 3.0.x, 3.x

Somehow made it to the final version of the codebase, this can practically never return false.
The {{bufferPool.write()}} call should be unconditional.

    public void write(Iterable<UUID> hostIds, Hint hint)
        if (isShutDown)
            throw new IllegalStateException("HintsService is shut down and can't accept new

        // we have to make sure that the HintsStore instances get properly initialized - otherwise
dispatch will not trigger

        if (hint.isLive())
            bufferPool.write(hostIds, hint);;

This message was sent by Atlassian JIRA

View raw message