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

Add support for binary files in ZooKeeper.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.4, 6.0
    • Component/s: SolrCloud
    • Labels:
      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. solr.png
          8 kB
          David Eric Pugh
        2. SOLR4234_binary_files.patch
          7 kB
          David Eric Pugh
        3. fix_show_file_handler_with_binaries.patch
          2 kB
          David Eric Pugh
        4. binary_upload_download.patch
          4 kB
          David Eric Pugh

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              epugh David Eric Pugh

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment