{"record":{"id":"2623d94fab695a2b","repo":"alibaba/canal","slug":"unsupported-operation","errorCode":null,"errorMessage":"unsupported operation","messagePattern":"unsupported operation","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/OuterAdapter.java","lineNumber":48,"sourceCode":"     * 往适配器中同步数据\n     *\n     * @param dmls 数据包\n     */\n    void sync(List<Dml> dmls);\n\n    /**\n     * 外部适配器销毁接口\n     */\n    void destroy();\n\n    /**\n     * Etl操作\n     *\n     * @param task 任务名, 对应配置名\n     * @param params etl筛选条件\n     */\n    default EtlResult etl(String task, List<String> params) {\n        throw new UnsupportedOperationException(\"unsupported operation\");\n    }\n\n    /**\n     * 计算总数\n     *\n     * @param task 任务名, 对应配置名\n     * @return 总数\n     */\n    default Map<String, Object> count(String task) {\n        throw new UnsupportedOperationException(\"unsupported operation\");\n    }\n\n    /**\n     * 通过task获取对应的destination\n     *\n     * @param task 任务名, 对应配置名\n     * @return destination\n     */","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/alibaba/canal/blob/87be50e87686a3e8af08c368d0e1ffd1f59eb04a/client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/OuterAdapter.java#L30-L66","documentation":"Error \"unsupported operation\" thrown in alibaba/canal.","triggerScenarios":"Thrown at client-adapter/common/src/main/java/com/alibaba/otter/canal/client/adapter/OuterAdapter.java:48 when the library encounters an invalid state.","commonSituations":"Base adapter method invoked that the concrete adapter does not implement. Keep the default throwing implementation so unsupported operations fail loudly instead of no-op.","solutions":["This default method is intentionally unsupported; call the adapter-specific implementation (init/destroy/sync) instead of the base OuterAdapter method.","Check you are invoking the operation on the concrete adapter instance, not through an unimplemented SPI default."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"87be50e87686a3e8af08c368d0e1ffd1f59eb04a","analyzedAt":"2026-08-14T04:30:11.918Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}