Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4234

Add support for binary files in ZooKeeper.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.4, 6.0
    • SolrCloud
    • None

    Description

      I was attempting to get the ShowFileHandler to show a .png file, and it was failing. But in non-ZK mode it worked just fine! It took a while, but it seems that we upload to zk as a text, and download as well. I've attached a unit test that demonstrates the problem, and a fix. You have to have a binary file in the conf directory to make the test work, I put solr.png in the collection1/conf/velocity directory.

      Attachments

        1. binary_upload_download.patch
          4 kB
          Eric Pugh
        2. fix_show_file_handler_with_binaries.patch
          2 kB
          Eric Pugh
        3. solr.png
          8 kB
          Eric Pugh
        4. SOLR4234_binary_files.patch
          7 kB
          Eric Pugh

        Activity

          People

            markrmiller@gmail.com Mark Miller
            epugh Eric Pugh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: