everyhook1 opened a new issue #80:
URL: https://github.com/apache/dubbo-spi-extensions/issues/80


   code branch : master
   file :  org.apache.dubbo.remoting.etcd.option.OptionUtil prefixEndOf
   line :32 
   
https://github.com/apache/dubbo/blob/84d355fb1b553c7c5f01357069b13d434f60e53c/dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/option/OptionUtil.java#L32
   commit message 👍 
   [Dubbo-808] Support etcd registry (#3605)  * Merge 
https://github.com/dubbo/dubbo-registry-etcd into incubator-dubbo  * Add UT to 
ConfigurationUtilsTest
   
   code:
   public static final ByteSequence prefixEndOf(ByteSequence prefix) {
           byte[] endKey = prefix.getBytes().clone();
           for (int i = endKey.length - 1; i >= 0; i--) {
               if (endKey[i] < 0xff) {  //which is always true, please fix it 
                   endKey[i] = (byte) (endKey[i] + 1);
                   return ByteSequence.from(Arrays.copyOf(endKey, i + 1));
               }
           }
           return ByteSequence.from(NO_PREFIX_END);
       }
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to