Skip to content

Feat: Support refresh table routing info in Client #49

@MichaelLeeHZ

Description

@MichaelLeeHZ

Description

I found table routeCache will not refresh when routeCache size is too small.

   if (this.routeCache.size() < this.opts.getMaxCachedSize() * CLEAN_CACHE_THRESHOLD) {
            LOG.info("Now that the number of cached entries is {}.", this.routeCache.size());
            return times;
        }

The problem is:
Request will be routed to wrong server after table is recreated.

Proposal

Support refresh table routing info in Client periodly

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions