You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/10/30 05:13:30 UTC

[shardingsphere] branch master updated: Add unsupported exception on NacosRepository (#21847)

This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new fc150bcd61e Add unsupported exception on NacosRepository (#21847)
fc150bcd61e is described below

commit fc150bcd61e9a81ccbcfee089dcee92f4a9d5464
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun Oct 30 13:13:22 2022 +0800

    Add unsupported exception on NacosRepository (#21847)
---
 .../shardingsphere/mode/repository/cluster/nacos/NacosRepository.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mode/type/cluster/repository/provider/nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/NacosRepository.java b/mode/type/cluster/repository/provider/nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/NacosRepository.java
index 24b514cd787..ed3094320f3 100644
--- a/mode/type/cluster/repository/provider/nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/NacosRepository.java
+++ b/mode/type/cluster/repository/provider/nacos/src/main/java/org/apache/shardingsphere/mode/repository/cluster/nacos/NacosRepository.java
@@ -127,12 +127,13 @@ public final class NacosRepository implements ClusterPersistRepository {
     @Override
     public boolean tryLock(final String lockKey, final long timeoutMillis) {
         // TODO
-        return false;
+        throw new UnsupportedOperationException("Can not support tryLock on Nacos yet.");
     }
     
     @Override
     public void unlock(final String lockKey) {
         // TODO
+        throw new UnsupportedOperationException("Can not support unlock on Nacos yet.");
     }
     
     @Override