Skip to content

[Question] <shenyu-admin modify the rule sync gateway error> #4798

@LBJWt

Description

@LBJWt

Question

org.apache.shenyu.plugin.divide.handler.DividePluginDataHandler#handlerRule

public void handlerRule(final RuleData ruleData) {
        Optional.ofNullable(ruleData.getHandle()).ifPresent(s -> {
            DivideRuleHandle divideRuleHandle = GsonUtils.getInstance().fromJson(s, DivideRuleHandle.class);
            CACHED_HANDLE.get().cachedHandle(CacheKeyUtils.INST.getKey(ruleData), divideRuleHandle);
            // the update is also need to clean, but there is no way to
            // distinguish between crate and update, so it is always clean
            MetaDataCache.getInstance().clean();
        });
    }

The ruleData.getHandle() here is a list pushed from the shenyu-admin, which is received by a single object, and an exception will be reported here

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions