strapdata / elassandra

Elassandra = Elasticsearch + Apache Cassandra
http://www.elassandra.io
Apache License 2.0
1.71k stars 198 forks source link

Elassandra Starting Error on cpu.stat #401

Open jmhrrrptvj opened 2 years ago

jmhrrrptvj commented 2 years ago

Hi

When we are starting the elassandra service

Some error was thrown at OSProbe.java at line number : 415

assert lines != null && lines.size() == 3;

The method in OSProbe.java is:

  @SuppressForbidden(reason = "access /sys/fs/cgroup/cpu")
List<String> readSysFsCgroupCpuAcctCpuStat(final String controlGroup) throws IOException {
    final List<String> lines = Files.readAllLines(PathUtils.get("/sys/fs/cgroup/cpu", controlGroup, "cpu.stat"));
    assert lines != null && lines.size() == 3;
    return lines;
}

The cpu.stat file has the following lines:

/sys/fs/cgroup/cpu/cpu.stat file

nr_periods 0 nr_throttled 0 throttled_time 0 (We ran the cat command)

After reboot, in the following file there are two more entries getting added, and some of our servers are not getting rebooted due to this. Could you please help us why this cpu.stat file is having two more entries. As this file is Read only file, we are not able to edit the same. Could you please help us on this.

On /sys/fs/cgroup/cpu/cpu.stat file

nr_bursts 0 burst_time 0

The nr_bursts and burst_time if it's present in this file our Cassandra service is not getting rebooted/sys/fs/cgroup/cpu/cpu.stat file

nr_periods 0 nr_throttled 0 throttled_time 0 (We ran the cat command)

After reboot, in the following file there are two more entries getting added, and some of our servers are not getting rebooted due to this. Could you please help us why this cpu.stat file is having two more entries. As this file is Read only file, we are not able to edit the same. Could you please help us on this.

On /sys/fs/cgroup/cpu/cpu.stat file

nr_bursts 0 burst_time 0

The nr_bursts and burst_time if it's present in this file our Cassandra service is not getting rebooted

Could you please help us on this