rahulgoswami commented on PR #2593:
URL: https://github.com/apache/solr/pull/2593#issuecomment-2283163304

   Ok, so 6.iii) is a non-issue. The zk destination was missing a trailing '/' 
and the zk cp command works fine for a file once the destination ends in a '/' 
to indicate a parent znode.
   solr zk cp "C:\Work\Git\command-testing\test-file.txt" zk:/uploads/data/ -z 
localhost:9983   ==> Works
   
   Although in traditional filesystems I would expect the command to work if 
the destination is a directory despite missing a file separator at the end, in 
case of Zk getting this to work might be tricky. Given the fact that there is 
no concept of file and directory in Zookeeper, and everything is just a znode, 
I could not find a reliable check to establish whether an empty znode 
destination should be classified as "file" or "directory". This is where the 
trailing '/' helps clarify things. 
   
   I want to say we are done with the zk commands here at least from Windows 
POV. 


-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to