I am curious, does there exist a Riemann integrable function $f: [a,b] \to \mathbb{R}$ that satisfies the following three criteria?
$\hspace{20pt}$ $1$. $f$ is a positive function, that is, $f(x) \geqslant 0$ for all $x \in [a,b]$
$\hspace{20pt}$ $2$. There exists an infinite subset $I$ of $[a, b]$ such that $f(x) > 0$ for each $x \in E$
$\hspace{20pt}$ $3$. $\int_a^b f(x)dx=0$
I was initially thinking about a constant function, but then the integral is greater than $0$ if criteria $2$ is met. If such a function exists, what is an elementary example?