Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-555

short session data can only be written to a specific partition

    XMLWordPrintableJSON

Details

    Description

      When a user uses a short session to write data, it starts from 0 each time, so the data can only be written to a fixed partition, which causes an imbalance problem.

      className:

      RoundRobinPartitionRouter.class

      code:

      ```

      AtomicInteger newCounter = new AtomicInteger(0);

      ```

      solution:

      ```

      AtomicInteger newCounter = new AtomicInteger(new Random().nextInt());

      ```

      Attachments

        Activity

          People

            leno xianle cao
            leno xianle cao
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 2h 20m
                2h 20m