13761103808 commented on issue #1925:
URL: 
https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-882016059


   @sunkai-cai @TeslaCN 
   
   Hello  !
   
   We can modify the method  getChildrenKeys of 
ZookeeperRegistryCenter.getChildrenKeys.
   We need sort by ctime in zk  ,now is sorted by name  string.
   
   ``@Override
       public List<String> getChildrenKeys(final String key) {
           try {
               List<String> result = client.getChildren().forPath(key);
               Collections.sort(result, new Comparator<String>() {
                   
                   @Override
                   public int compare(final String o1, final String o2) {
                       return o2.compareTo(o1);
                   }
               });
               return result;
            //CHECKSTYLE:OFF
           } catch (final Exception ex) {
           //CHECKSTYLE:ON
               RegExceptionHandler.handleException(ex);
               return Collections.emptyList();
           }
       }


-- 
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]


Reply via email to