Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Therefore, the producer should add configuration flag 'metadata.evictionmax.periodidle.ms' (default: 5 minutes) to control topic eviction.

...

Adds producer configuration flag metadata.evictionmax.periodidle.ms (default: 5 minutes) to control topic eviction duration.

Code Block
languagejava
/** <code>metadata.evictionmax.periodidle.ms</code> */
public static final String METADATA_EVICTIONMAX_PERIODIDLE_MS_CONFIG = "metadata.evictionmax.periodidle.ms";
private static final String METADATA_EVICTIONMAX_PERIODIDLE_MS_DOC =
        "Controls how long the producer will cache metadata for a topic that's idle. notIf beingthe accessed.elapsed " +
        "If the elapsed time since a topic was last produceproduced to exceeds the metadata evictionidle duration, then the topic's " +
        "thenmetadata theis topic'sremoved metadatafrom isthe forgottencache and the next access to it will force a metadata " +
        "fetch request.";

...
    .define(METADATA_EVICTIONMAX_PERIODIDLE_MS_CONFIG,
            Type.LONG,
            5 * 60 * 1000,
            atLeast(5000),
            Importance.LOW,
            METADATA_EVICTIONMAX_PERIODIDLE_MS_DOC)


Compatibility, Deprecation, and Migration Plan

...