Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5599

contrib/fb303 does not compile after C++ library refactorings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.13.0, 0.14.0, 0.15.0, 0.14.1, 0.14.2, 0.16.0
    • 0.17.0
    • Contributed
    • None

    Description

      contrib/fb303 no longer compiles after THRIFT-4730 removed ReadWriteMutex.

      The ReadWriteMutex used by fb303 is protecting counter statistics. These are very write-heavy and read-light (these are read only when the Service methods getCounters() or getCounter() are called). Because of this, retaining a read-write mutex to protect these counters is unjustified and we can safely swap this out for a normal Mutex.

      Compilation also fails after THRIFT-5168 removed generation of *_constants.cpp and *_constants.h generation because the fb303 Makefile explicitly depends on these unnecessary files

      Attachments

        Issue Links

          Activity

            People

              mleinart Michael Leinartas
              mleinart Michael Leinartas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m