Lucene - Core
  1. Lucene - Core
  2. LUCENE-6368

FST.save can truncate output (BufferedOutputStream may be closed after the underlying stream)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1, 5.3, 6.0
    • Component/s: core/other
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Are used in save (Path) method of FST class, BufferedOutputStream has not been closed.
      When create a dictionary, there is a possibility that the buffered data is not written out.

      1. LUCENE-6368.patch
        0.7 kB
        Ippei Matsushima

        Activity

        Hide
        Dawid Weiss added a comment -

        Nice catch, Ippei, thanks!

        Show
        Dawid Weiss added a comment - Nice catch, Ippei, thanks!
        Hide
        Timothy Potter added a comment -

        Bulk close after 5.1 release

        Show
        Timothy Potter added a comment - Bulk close after 5.1 release

          People

          • Assignee:
            Dawid Weiss
            Reporter:
            Ippei Matsushima
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development